You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
574 B
21 lines
574 B
14 years ago
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||
|
|
||
10 years ago
|
#include "Plane.h"
|
||
11 years ago
|
|
||
11 years ago
|
// called by update navigation at 10Hz
|
||
14 years ago
|
// --------------------
|
||
10 years ago
|
void Plane::update_commands(void)
|
||
14 years ago
|
{
|
||
13 years ago
|
if(control_mode == AUTO) {
|
||
10 years ago
|
if (home_is_set != HOME_UNSET) {
|
||
11 years ago
|
if(mission.state() == AP_Mission::MISSION_RUNNING) {
|
||
|
mission.update();
|
||
11 years ago
|
} else {
|
||
11 years ago
|
// auto_rtl_command should have been set to MAV_CMD_NAV_LOITER_UNLIM by exit_mission
|
||
11 years ago
|
verify_command(auto_rtl_command);
|
||
11 years ago
|
}
|
||
13 years ago
|
}
|
||
|
}
|
||
14 years ago
|
}
|
||
|
|