[GPS] bebop 2 gps fix for parrot app

enable NMEA protocol for receiving config commands so the native bebop2 app can reconfigure it
This commit is contained in:
bartremes
2016-02-16 15:41:24 +01:00
committed by Felix Ruess
parent fdb133051c
commit 89560dc84f
+4 -4
View File
@@ -393,7 +393,7 @@ static inline void gps_ubx_ucenter_config_port(void)
// I2C Interface // I2C Interface
case GPS_PORT_DDC: case GPS_PORT_DDC:
#ifdef GPS_I2C #ifdef GPS_I2C
UbxSend_CFG_PRT(gps_ubx_ucenter.dev, gps_ubx_ucenter.port_id, 0x0, 0x0, GPS_I2C_SLAVE_ADDR, 0x0, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0); UbxSend_CFG_PRT(gps_ubx_ucenter.dev, gps_ubx_ucenter.port_id, 0x0, 0x0, GPS_I2C_SLAVE_ADDR, 0x0, UBX_PROTO_MASK | NMEA_PROTO_MASK, UBX_PROTO_MASK| NMEA_PROTO_MASK, 0x0, 0x0);
#else #else
DEBUG_PRINT("WARNING: Please include the gps_i2c module.\n"); DEBUG_PRINT("WARNING: Please include the gps_i2c module.\n");
#endif #endif
@@ -403,14 +403,14 @@ static inline void gps_ubx_ucenter_config_port(void)
case GPS_PORT_UART2: case GPS_PORT_UART2:
UbxSend_CFG_PRT(gps_ubx_ucenter.dev, UbxSend_CFG_PRT(gps_ubx_ucenter.dev,
gps_ubx_ucenter.port_id, 0x0, 0x0, gps_ubx_ucenter.port_id, 0x0, 0x0,
UBX_UART_MODE_MASK, UART_SPEED(gps_ubx_ucenter.baud_target), UBX_PROTO_MASK, UBX_UART_MODE_MASK, UART_SPEED(gps_ubx_ucenter.baud_target), UBX_PROTO_MASK | NMEA_PROTO_MASK,
UBX_PROTO_MASK, 0x0, 0x0); UBX_PROTO_MASK| NMEA_PROTO_MASK, 0x0, 0x0);
break; break;
// USB Interface // USB Interface
case GPS_PORT_USB: case GPS_PORT_USB:
UbxSend_CFG_PRT(gps_ubx_ucenter.dev, UbxSend_CFG_PRT(gps_ubx_ucenter.dev,
gps_ubx_ucenter.port_id, 0x0, 0x0, 0x0, 0x0, gps_ubx_ucenter.port_id, 0x0, 0x0, 0x0, 0x0,
UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0); UBX_PROTO_MASK | NMEA_PROTO_MASK, UBX_PROTO_MASK| NMEA_PROTO_MASK, 0x0, 0x0);
break; break;
case GPS_PORT_SPI: case GPS_PORT_SPI:
DEBUG_PRINT("WARNING: ublox SPI port is currently not supported.\n"); DEBUG_PRINT("WARNING: ublox SPI port is currently not supported.\n");