AR_WPNav: move AC_Avoidance defines into libraries

This commit is contained in:
Peter Barker 2024-03-09 13:35:25 +11:00 committed by Peter Barker
parent 1e0c56b5b9
commit 277a7c1bec
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ extern const AP_HAL::HAL& hal;
// update navigation
void AR_WPNav_OA::update(float dt)
{
#if AP_OAPATHPLANNER_ENABLED
// exit immediately if no current location, origin or destination
Location current_loc;
float speed;
@ -142,6 +143,7 @@ void AR_WPNav_OA::update(float dt)
_desired_turn_rate_rads = 0.0f;
return;
}
#endif // AP_OAPATHPLANNER_ENABLED
// call parent update
AR_WPNav::update(dt);