2015-05-13 00:16:45 -03:00
|
|
|
#include "Rover.h"
|
|
|
|
|
2017-08-02 22:33:33 -03:00
|
|
|
// update mission including starting or stopping commands. called by scheduler at 10Hz
|
|
|
|
void Rover::update_mission(void)
|
|
|
|
{
|
|
|
|
if (control_mode == &mode_auto) {
|
2018-12-11 20:10:20 -04:00
|
|
|
if (ahrs.home_is_set() && mode_auto.mission.num_commands() > 1) {
|
|
|
|
mode_auto.mission.update();
|
2017-08-02 22:33:33 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|