AP_Avoidance: handle condition where avoid is disabled while avoiding

This commit is contained in:
Tom Pittenger 2016-08-16 08:33:58 -07:00
parent c06b63b4cd
commit 330c63b010
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ void AP_Avoidance::deinit(void)
delete [] _obstacles;
_obstacles = nullptr;
_obstacles_allocated = 0;
handle_recovery(AP_AVOIDANCE_RECOVERY_RTL);
}
_obstacle_count = 0;
}