-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathuBloxHABceiling.c
26 lines (20 loc) · 1.25 KB
/
uBloxHABceiling.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// From some conversations, ramblings and postings on the u-Blox forum
// https://portal.u-blox.com/s/question/0D52p00009AaEleCAF/-gps-setting-querying-settings-for-airborne-mode
//****************************************************************************
// If you happen into the lads from Uputronics or Bodnar Electronics tell them Clive says Hello..
// Setting AIRBOURNE 1G (DYNAMIC=6), 80 KM VERTICAL, 100 M/S HORIZONTAL DYNAMICS uBlox Series 7 and 8
uint8_t ubx_cfg_nav5[] = { // CFG-NAV5 (06 24)
0xB5,0x62,0x06,0x24,0x24,0x00, // Header/Command/Size
0x01,0x00,0x06,0x00,0x00,0x00,0x00,0x00, // Payload data (Dynamics flag, and Dynamic setting)
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x55,0xB4 }; // Checksum (Fletcher) of preceeding packet
SendUBLOX(hUARTGPS, sizeof(ubx_cfg_nav5), ubx_cfg_nav5);
// For Ardunio use the form Serial.write(buffer, sizeof(buffer));
// to send checksumed packets to the receiver.
uint8_t ubx_cfg_valset_dyn6[] = { // Series 9 and 10
0xB5,0x62,0x06,0x8A,0x09,0x00, // Header/Command/Size UBX-CFG-VALSET (RAM)
0x00,0x01,0x00,0x00,0x21,0x00,0x11,0x20,0x06, // Payload data (0x20110021 CFG-NAVSPG-DYNMODEL = 6)
0xF2,0x4F };