2012-04-30 04:17:14 -03:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
|
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) {
|
|
|
|
if(home_is_set == true && mission.num_commands() > 1) {
|
|
|
|
mission.update();
|
|
|
|
}
|
|
|
|
}
|
2012-04-30 04:17:14 -03:00
|
|
|
}
|