mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: define GPS_BLENDED_INSTANCE any time AP_GPS_BLENDED_ENABLED
otherwise someone can explicity ebable it but not have a blended instance ID
This commit is contained in:
parent
a1ff3871f7
commit
864a7a2a4b
|
@ -35,15 +35,16 @@
|
|||
|
||||
#if !defined(AP_GPS_BLENDED_ENABLED) && defined(GPS_MAX_INSTANCES)
|
||||
#define AP_GPS_BLENDED_ENABLED AP_GPS_BACKEND_DEFAULT_ENABLED && GPS_MAX_INSTANCES > GPS_MAX_RECEIVERS
|
||||
#if AP_GPS_BLENDED_ENABLED
|
||||
#define GPS_BLENDED_INSTANCE GPS_MAX_RECEIVERS // the virtual blended GPS is always the highest instance (2)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef AP_GPS_BLENDED_ENABLED
|
||||
#define AP_GPS_BLENDED_ENABLED 0
|
||||
#endif
|
||||
|
||||
#if AP_GPS_BLENDED_ENABLED
|
||||
#define GPS_BLENDED_INSTANCE GPS_MAX_RECEIVERS // the virtual blended GPS is always the highest instance (2)
|
||||
#endif
|
||||
|
||||
#ifndef AP_GPS_DRONECAN_ENABLED
|
||||
#define AP_GPS_DRONECAN_ENABLED AP_GPS_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue