stratux icon indicating copy to clipboard operation
stratux copied to clipboard

UBX-CFG-RATE Payload is incorrect for ublox 8

Open VirusPilot opened this issue 5 years ago • 2 comments

This the ublox 7 configuration:

updatespeed := []byte{0x64, 0x00, 0x01, 0x00, 0x01, 0x00} // 10Hz=100ms, cycle=1

and this is the ublox 8 configuration:

updatespeed = []byte{0x06, 0x00, 0xF4, 0x01, 0x01, 0x00} //

These bytes don't make any sense to me unless I missed something, 2Hz would mean 500ms -> 0xF4 0x01, followed by 0x01, 0x00 for cycle=1

corrected:

updatespeed := []byte{0xF4, 0x01, 0x01, 0x00, 0x01, 0x00} // 2Hz=500ms, cycle=1

https://github.com/cyoung/stratux/blob/50e2b3c9973ad004c9d88281cd811663c7a495ff/main/gps.go#L313

VirusPilot avatar Apr 18 '19 19:04 VirusPilot

After quite some testing I suggest the following:

// 100ms & 1 cycle -> 10Hz Navigation Update rate p.Write(makeUBXCFG(0x06, 0x08, 6, []byte{0x64, 0x00, 0x01, 0x00, 0x01, 0x00}))

which works fine for both GSP/SBAS (e.g ublox 7) and GPS/GALILEO/GLONASS (ublox 8). In fact disabling SBAS for ublox 8 enhances accuracy.

VirusPilot avatar Apr 25 '19 05:04 VirusPilot

Why not add a button to the settings page to enable/disable SBAS? (We can only add it to developer mode if we think it is to much detail for normal users)

PepperJo avatar Apr 25 '19 07:04 PepperJo

resolved since Stratux Europe Edition release

VirusPilot avatar Aug 14 '23 14:08 VirusPilot