mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_GPS: Ensure that all ublox configuration failure reasons have a description
This commit is contained in:
parent
da2cf627d8
commit
833bc8f12a
@ -1335,8 +1335,10 @@ static const char *reasons[] = {"navigation rate",
|
|||||||
"navigation settings",
|
"navigation settings",
|
||||||
"GNSS settings",
|
"GNSS settings",
|
||||||
"SBAS settings",
|
"SBAS settings",
|
||||||
"PVT rate"};
|
"PVT rate",
|
||||||
|
"time pulse settings"};
|
||||||
|
|
||||||
|
static_assert((1 << ARRAY_SIZE(reasons)) == CONFIG_LAST, "UBLOX: Missing configuration description");
|
||||||
|
|
||||||
void
|
void
|
||||||
AP_GPS_UBLOX::broadcast_configuration_failure_reason(void) const {
|
AP_GPS_UBLOX::broadcast_configuration_failure_reason(void) const {
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
#define CONFIG_SBAS (1<<12)
|
#define CONFIG_SBAS (1<<12)
|
||||||
#define CONFIG_RATE_PVT (1<<13)
|
#define CONFIG_RATE_PVT (1<<13)
|
||||||
#define CONFIG_TP5 (1<<14)
|
#define CONFIG_TP5 (1<<14)
|
||||||
|
#define CONFIG_LAST (1<<15) // this must always be the last bit
|
||||||
|
|
||||||
#define CONFIG_REQUIRED_INITIAL (CONFIG_RATE_NAV | CONFIG_RATE_POSLLH | CONFIG_RATE_STATUS | CONFIG_RATE_VELNED)
|
#define CONFIG_REQUIRED_INITIAL (CONFIG_RATE_NAV | CONFIG_RATE_POSLLH | CONFIG_RATE_STATUS | CONFIG_RATE_VELNED)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user