Extra baudrates for our NMAA 4800 default ublox

This commit is contained in:
Christophe De Wagter
2011-09-08 16:55:39 +02:00
parent b715f408f8
commit c97117efb6
4 changed files with 18 additions and 27 deletions
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE settings SYSTEM "settings.dtd">
<settings>
<dl_settings NAME="ublox">
<dl_settings name="ucenter">
<dl_setting MAX="255" MIN="0" STEP="1" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.sw_ver_h" shortname="sw_h"/>
<dl_setting MAX="255" MIN="0" STEP="1" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.sw_ver_l" shortname="sw_l"/>
<dl_setting MAX="255" MIN="0" STEP="1" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.hw_ver_h" shortname="hw_h"/>
<dl_setting MAX="255" MIN="0" STEP="1" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.hw_ver_l" shortname="hw_l"/>
<dl_setting MAX="115200" MIN="4800" STEP="100" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.baud_init" shortname="default"/>
<dl_setting MAX="115200" MIN="4800" STEP="100" module="gps/gps_ubx_ucenter" VAR="gps_ubx_ucenter.baud_run" shortname="baud"/>
</dl_settings>
</dl_settings>
</settings>
@@ -33,6 +33,7 @@
#define B1200 UART_BAUD(1200)
#define B2400 UART_BAUD(2400)
#define B4800 UART_BAUD(4800)
#define B9600 UART_BAUD(9600)
#define B19200 UART_BAUD(19200)
#define B38400 UART_BAUD(38400)
@@ -31,6 +31,7 @@
#include "std.h"
#define B4800 4800
#define B9600 9600
#define B38400 38400
#define B57600 57600
@@ -1,27 +0,0 @@
#define IGNORED 0
#define RESERVED 0
static bool_t user_gps_configure(bool_t cpt) {
switch (cpt) {
case 0:
/* mask: we set only fixMode and dyn */
UbxSend_CFG_NAV5(0x05, NAV5_DYN_AIRBORNE_2G, NAV5_3D_ONLY, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, RESERVED, RESERVED, RESERVED, RESERVED);
break;
case 1:
UbxSend_CFG_MSG(UBX_NAV_ID, UBX_NAV_POSLLH_ID, 1, 0, 0, 0);
break;
case 2:
UbxSend_CFG_MSG(UBX_NAV_ID, UBX_NAV_VELNED_ID, 1, 0, 0, 0);
break;
case 3:
UbxSend_CFG_MSG(UBX_NAV_ID, UBX_NAV_SVINFO_ID, 4, 0, 0, 0);
break;
case 4:
UbxSend_CFG_MSG(UBX_NAV_ID, UBX_NAV_SOL_ID, 8, 0, 0, 0);
break;
case 5:
UbxSend_CFG_RATE(250 /*ms*/, 0x0001, 0x0000);
return FALSE;
}
return TRUE; /* Continue, except for the last case */
}