mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 04:45:37 +08:00
[ucenter] easier configuration flag to disable NMEA with ucenter module
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user