Mstrens hat jetzt die GPS-Initialisierung um Galileo und SBAS erweitert. Damit sollte die Positionsgenauigkeit noch besser werden. Noch nicht getestet ..... Edit: getestet und funktoniert "OXSX" auf einem 4m Weg
Code:
// send config commands to GPS at 9600 bds (default baud rate)
void OXS_GPS::setupGps( ) {
const static uint8_t initGps1[] PROGMEM = {
// Here the code to activate galileo sat. (This has not yet been tested and is based on I-NAV code)
0xB5,0x62,0x06,0x3E, 0x3C, 0x00, // GNSS + number of bytes= 60 dec = 003C in HEx
0x00, 0x00, 0x20, 0x07, // GNSS / min / max / enable
0x00, 0x08, 0x10, 0x00, 0x01, 0x00, 0x01, 0x01, // GPS / 8 / 16 / Y
0x01, 0x01, 0x03, 0x00, 0x01, 0x00, 0x01, 0x01, // SBAS / 1 / 3 / Y
0x02, 0x04, 0x08, 0x00, 0x01, 0x00, 0x01, 0x01, // Galileo / 4 / 8 / Y
0x03, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x01, // BeiDou / 8 / 16 / N
0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x01, // IMES / 0 / 8 / N
0x05, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, // QZSS / 0 / 3 / N
0x06, 0x08, 0x0e, 0x00, 0x01, 0x00, 0x01, 0x01, // GLONASS / 8 / 14 / Y
0x30, 0xD8, // checksum
// Here the code to activate SBAS for Europe (This has not yet been tested and is based on I-NAV code)
0xB5,0x62,0x06,0x16, 0x08, 0x00, // SBAS + number of bytes = 8
0x03, 0x03, 0x03, 0x00, // mode = test + enabled, usage=range+diffcorr, max =3, scanmode2=0
0x00, 0x00, 0x08, 0x51, // scanmode1 120,124, 126, 131
0x86, 0x2C, //checksum
// Here other code
0xB5,0x62,0x06,0x01,0x08,0x00,0x01,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x13,0xBE, // activate NAV-POSLLH message
0xB5,0x62,0x06,0x01,0x08,0x00,0x01,0x06,0x00,0x01,0x00,0x00,0x00,0x00,0x17,0xDA, // NAV-SOL
0xB5,0x62,0x06,0x01,0x08,0x00,0x01,0x12,0x00,0x01,0x00,0x00,0x00,0x00,0x23,0x2E, // NAV-VELNED
Zuletzt bearbeitet: