mirror of https://github.com/ArduPilot/ardupilot
AP_Mission: Remove unused rewind param from set_current_cmd() (NFC)
This commit is contained in:
parent
c9a3cb13c1
commit
12642b5793
|
@ -538,7 +538,7 @@ int32_t AP_Mission::get_next_ground_course_cd(int32_t default_angle)
|
||||||
}
|
}
|
||||||
|
|
||||||
// set_current_cmd - jumps to command specified by index
|
// set_current_cmd - jumps to command specified by index
|
||||||
bool AP_Mission::set_current_cmd(uint16_t index, bool rewind)
|
bool AP_Mission::set_current_cmd(uint16_t index)
|
||||||
{
|
{
|
||||||
// read command to check for DO_LAND_START
|
// read command to check for DO_LAND_START
|
||||||
Mission_Command cmd;
|
Mission_Command cmd;
|
||||||
|
@ -546,10 +546,8 @@ bool AP_Mission::set_current_cmd(uint16_t index, bool rewind)
|
||||||
_flags.in_landing_sequence = false;
|
_flags.in_landing_sequence = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mission command has been set and not as rewind command, don't track history.
|
// mission command has been set, don't track history.
|
||||||
if (!rewind) {
|
|
||||||
reset_wp_history();
|
reset_wp_history();
|
||||||
}
|
|
||||||
|
|
||||||
// sanity check index and that we have a mission
|
// sanity check index and that we have a mission
|
||||||
if (index >= (unsigned)_cmd_total || _cmd_total == 1) {
|
if (index >= (unsigned)_cmd_total || _cmd_total == 1) {
|
||||||
|
|
|
@ -601,7 +601,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// set_current_cmd - jumps to command specified by index
|
// set_current_cmd - jumps to command specified by index
|
||||||
bool set_current_cmd(uint16_t index, bool rewind = false);
|
bool set_current_cmd(uint16_t index);
|
||||||
|
|
||||||
// restart current navigation command. Used to handle external changes to mission
|
// restart current navigation command. Used to handle external changes to mission
|
||||||
// returns true on success, false if current nav command has been deleted
|
// returns true on success, false if current nav command has been deleted
|
||||||
|
|
Loading…
Reference in New Issue