Rover: rename update_commands to update_mission
This commit is contained in:
parent
56b0621994
commit
2640ec9ed9
@ -57,7 +57,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
|
||||
SCHED_TASK(update_wheel_encoder, 20, 50),
|
||||
SCHED_TASK(navigate, 10, 1600),
|
||||
SCHED_TASK(update_compass, 10, 2000),
|
||||
SCHED_TASK(update_commands, 10, 1000),
|
||||
SCHED_TASK(update_mission, 10, 1000),
|
||||
SCHED_TASK(update_logging1, 10, 1000),
|
||||
SCHED_TASK(update_logging2, 10, 1000),
|
||||
SCHED_TASK(gcs_retry_deferred, 50, 1000),
|
||||
|
@ -486,7 +486,7 @@ private:
|
||||
bool verify_wait_delay();
|
||||
bool verify_within_distance();
|
||||
bool verify_nav_set_yaw_speed();
|
||||
void update_commands(void);
|
||||
void update_mission(void);
|
||||
void delay(uint32_t ms);
|
||||
void mavlink_delay(uint32_t ms);
|
||||
void read_control_switch();
|
||||
|
@ -1,5 +1,15 @@
|
||||
#include "Rover.h"
|
||||
|
||||
// update mission including starting or stopping commands. called by scheduler at 10Hz
|
||||
void Rover::update_mission(void)
|
||||
{
|
||||
if (control_mode == &mode_auto) {
|
||||
if (home_is_set != HOME_UNSET && mission.num_commands() > 1) {
|
||||
mission.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/********************************************************************************/
|
||||
// Command Event Handlers
|
||||
/********************************************************************************/
|
||||
|
@ -1,12 +0,0 @@
|
||||
#include "Rover.h"
|
||||
|
||||
// called by update navigation at 10Hz
|
||||
// --------------------
|
||||
void Rover::update_commands(void)
|
||||
{
|
||||
if (control_mode == &mode_auto) {
|
||||
if (home_is_set != HOME_UNSET && mission.num_commands() > 1) {
|
||||
mission.update();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user