mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: make APM_BUILD_TYPE() valid under arduino IDE
This commit is contained in:
parent
36b854fa98
commit
c09c86868f
|
@ -59,6 +59,7 @@ public:
|
|||
#define APM_BUILD_ArduCopter 2
|
||||
#define APM_BUILD_ArduPlane 3
|
||||
#define APM_BUILD_AntennaTracker 4
|
||||
#define APM_BUILD_UNKNOWN 5
|
||||
|
||||
/*
|
||||
using this macro catches cases where we try to check vehicle type on
|
||||
|
@ -66,6 +67,8 @@ public:
|
|||
*/
|
||||
#ifdef APM_BUILD_DIRECTORY
|
||||
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY)
|
||||
#else
|
||||
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_UNKNOWN)
|
||||
#endif
|
||||
|
||||
#endif // AP_VEHICLE_H
|
||||
|
|
Loading…
Reference in New Issue