mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM l Prevent pre-mature finish of mission
This commit is contained in:
parent
95b6b4eb2d
commit
ecf7e0e8bf
@ -189,7 +189,7 @@ static void verify_commands(void)
|
|||||||
static int16_t find_next_nav_index(int16_t search_index)
|
static int16_t find_next_nav_index(int16_t search_index)
|
||||||
{
|
{
|
||||||
Location tmp;
|
Location tmp;
|
||||||
while(search_index < g.command_total - 1) {
|
while(search_index < g.command_total) {
|
||||||
tmp = get_cmd_with_index(search_index);
|
tmp = get_cmd_with_index(search_index);
|
||||||
if(tmp.id <= MAV_CMD_NAV_LAST) {
|
if(tmp.id <= MAV_CMD_NAV_LAST) {
|
||||||
return search_index;
|
return search_index;
|
||||||
@ -200,7 +200,6 @@ static int16_t find_next_nav_index(int16_t search_index)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void exit_mission()
|
static void exit_mission()
|
||||||
{
|
{
|
||||||
// we are out of commands
|
// we are out of commands
|
||||||
|
Loading…
Reference in New Issue
Block a user