2015-05-13 00:16:45 -03:00
|
|
|
#include "Rover.h"
|
|
|
|
|
2014-03-10 05:45:26 -03:00
|
|
|
// called by update navigation at 10Hz
|
2012-04-30 04:17:14 -03:00
|
|
|
// --------------------
|
2015-05-12 02:03:23 -03:00
|
|
|
void Rover::update_commands(void)
|
2012-04-30 04:17:14 -03:00
|
|
|
{
|
2014-03-10 05:45:26 -03:00
|
|
|
if(control_mode == AUTO) {
|
2015-10-30 02:41:06 -03:00
|
|
|
if (home_is_set != HOME_UNSET && mission.num_commands() > 1) {
|
2014-03-10 05:45:26 -03:00
|
|
|
mission.update();
|
|
|
|
}
|
|
|
|
}
|
2012-04-30 04:17:14 -03:00
|
|
|
}
|