ardupilot/APMrover2/commands_process.cpp

13 lines
276 B
C++
Raw Normal View History

2015-05-13 00:16:45 -03:00
#include "Rover.h"
// called by update navigation at 10Hz
// --------------------
void Rover::update_commands(void)
{
2017-07-18 23:19:08 -03:00
if (control_mode == &mode_auto) {
if (home_is_set != HOME_UNSET && mission.num_commands() > 1) {
mission.update();
}
}
}