Skip to content

Commit

Permalink
[modules] gps_ubx_ucenter: USB support
Browse files Browse the repository at this point in the history
closes #569
  • Loading branch information
benlaurie authored and flixr committed Oct 28, 2013
1 parent 3fe72e2 commit 5f3b16b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sw/airborne/modules/gps/gps_ubx_ucenter.c
Expand Up @@ -27,7 +27,6 @@
*
*/


#include "gps_ubx_ucenter.h"

//////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -295,6 +294,9 @@ static inline void gps_ubx_ucenter_config_port(void)
#if GPS_PORT_ID == GPS_PORT_UART1 || GPS_PORT_ID == GPS_PORT_UART2
UbxSend_CFG_PRT(GPS_PORT_ID, 0x0, 0x0, 0x000008D0, 38400, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0);
#endif
#if GPS_PORT_ID == GPS_PORT_USB
UbxSend_CFG_PRT(GPS_PORT_ID, 0x0, 0x0, 0x0, 0, UBX_PROTO_MASK, UBX_PROTO_MASK, 0x0, 0x0);
#endif
}

#define GPS_SBAS_ENABLED 0x01
Expand All @@ -319,6 +321,9 @@ static inline void gps_ubx_ucenter_enable_msg(uint8_t class, uint8_t id, uint8_t
#if GPS_PORT_ID == GPS_PORT_UART2
UbxSend_CFG_MSG(class, id, 0, 0, rate, 0);
#endif
#if GPS_PORT_ID == GPS_PORT_USB
UbxSend_CFG_MSG(class, id, 0, 0, 0, rate);
#endif
#if GPS_PORT_ID == GPS_PORT_DDC
UbxSend_CFG_MSG(class, id, rate, 0, 0, 0);
#endif
Expand Down Expand Up @@ -419,7 +424,3 @@ static bool_t gps_ubx_ucenter_configure(uint8_t nr)
}
return TRUE; // Continue, except for the last case
}




0 comments on commit 5f3b16b

Please sign in to comment.