mirror of https://github.com/ArduPilot/ardupilot
AP_Avoidance: handle condition where avoid is disabled while avoiding
This commit is contained in:
parent
c06b63b4cd
commit
330c63b010
|
@ -153,6 +153,7 @@ void AP_Avoidance::deinit(void)
|
||||||
delete [] _obstacles;
|
delete [] _obstacles;
|
||||||
_obstacles = nullptr;
|
_obstacles = nullptr;
|
||||||
_obstacles_allocated = 0;
|
_obstacles_allocated = 0;
|
||||||
|
handle_recovery(AP_AVOIDANCE_RECOVERY_RTL);
|
||||||
}
|
}
|
||||||
_obstacle_count = 0;
|
_obstacle_count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue