AC_Avoidance: don't build avoidance on plane

this catches uses of avoidance which cause it to be linked in
This commit is contained in:
Andrew Tridgell 2022-01-05 21:26:07 +11:00
parent 6e5bb1eb23
commit 2435c9451c
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@
#include <AP_Logger/AP_Logger.h>
#include <stdio.h>
#if !APM_BUILD_TYPE(APM_BUILD_ArduPlane)
#if APM_BUILD_TYPE(APM_BUILD_Rover)
# define AP_AVOID_BEHAVE_DEFAULT AC_Avoid::BehaviourType::BEHAVIOR_STOP
#else
@ -1466,3 +1468,5 @@ AC_Avoid *ac_avoid()
}
}
#endif // !APM_BUILD_Arduplane