[ucenter] easier configuration flag to disable NMEA with ucenter module

This commit is contained in:
Gautier Hattenberger
2026-04-01 14:33:41 +02:00
parent a625c75e70
commit 2cb12e1cf4
3 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -39,7 +39,9 @@
*/
/** NMEA enabled to keep the original firmware working */
#define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
#ifndef GPX_UBX_UCENTER_ENABLE_NMEA
#define GPX_UBX_UCENTER_ENABLE_NMEA TRUE
#endif
/** For using serial devices via USB to serial converter electronics
* E.g. a XBee modem, a 3DR radio modem, Serial Stereocam etc. etc.
+4 -1
View File
@@ -29,7 +29,10 @@
/** UART connected to GPS internally */
#define UART1_DEV /dev/ttyPA1
#define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
/** NMEA enabled to keep the original firmware working */
#ifndef GPX_UBX_UCENTER_ENABLE_NMEA
#define GPX_UBX_UCENTER_ENABLE_NMEA TRUE
#endif
/** For using serial devices via USB to serial converter electronics
* E.g. a XBee modem, a 3DR radio modem, Serial Stereocam etc. etc.
+3 -1
View File
@@ -352,7 +352,9 @@ static bool gps_ubx_ucenter_autobaud(uint8_t nr)
#define GPS_UBX_NAV5_DYNAMICS NAV5_DYN_AIRBORNE_2G
#endif
#ifndef GPS_UBX_ENABLE_NMEA_DATA_MASK
#if GPS_UBX_UCENTER_ENABLE_NMEA
#define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
#else
#define GPS_UBX_ENABLE_NMEA_DATA_MASK 0x00
#endif