-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Set 10Hz update rate for M9 and M10 gps devices by default and allow higher refresh rates #9103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update rate of M9 devices was limited to 5Hz to enable tracking of more than 16 satellites. The number of tracked satellites is limited by the update rate in M8 devices as well, but we allow those to run in 10Hz mode. This will change the behavior of M9 and newer devices to match M5-8, enabling 10Hz when using UBLOX7 and limiting it to 5Hz when using regular UBLOX.
|
With M8 on 10Hz, I get c. 30 satellites .... |
|
I don't think I have seen that many on mine, but it could be where I am. I considered making it an option, but ublox/ublox7 already has the same effect. |
|
BTW, documentation on m10 mentions that maximum satellites is related to update rate, but does not go into detail as it can be affected by performance settings on the device and enabled constellations as well. |
|
Just a data point that I never saw a reduction in satellites on M8 5Hz v. 10Hz, whereas Konstantin obviously did for M9 from the comment in the code. I'm in no way opposed to this PR ... |
|
I think I recall seeing reports of low satellite acquisition with m8 before, maybe it was some kind of interference and I don't recall ever seeing more than 16 on my m8. I will probably head to rooftop with some aircraft to test both m10 and m8 with a clear view o the skies. |
|
Can confirm m10 can see more than 16 satellites in 10hz mode. |
|
@mmosca Great addition! The Satellite count was comparable at both 5Hz and 10Hz. Today it was averaging 27 Sats, with a HDOP of 1.1. It certainly appears that INAV requires the higher refresh rate to maintain a higher level of estimation precision. (on small quads anyway). |
That is great news. It would be good to test it with M9 as well. I wonder if the gains from higher update rate compensate for the possible loss from being limited to 16 satellites. Worse case scenario, I can make the 10Hz in UBLOX7 a config setting that defaults to 10Hz. |
Default to 10Hz, supports 5-200Hz.
stronnag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/defautl/default/
|
I Added gps_ublox_nav_hz variable to set ublox7 navigation rate. Default is 10, this should address #9087 |
Mention 10Hz as safe for M8 and newer and 25Hz being supported by some devices. When setting it too high, the GPS stops sending navigation updates.
This should make it even safer for the end user. Enter an invalid value for you gps module, fallback to minimum frequency of 5Hz.
Set 10Hz update rate for M9 and M10 gps devices by default and allow higher refresh rates
Set 10Hz update rate for M9 and M10 gps devices by default and allow higher refresh rates
Set 10Hz update rate for M9 and M10 gps devices by default and allow higher refresh rates
|
Any idea if there is a way to update the refresh rate when a GPS is connected over MSP? I have a very jittery Quad in Poshold using a Matek M10Q-3100. The compass accuracy is excellent and I don't really have a problem getting a good number of sats >15... but it is quite jittery (no the accelerometer is not causing it). Would be great to push that to 10Mhz too |
10Mhz is waaaaaay too high. Not supported by the gps. |
|
Sorry, I meant 10Hz, not 10Mhz. just trying to bump for MSP the same way it is for Ublox |
|
Set it to ublox7. 10hz is the default for that. []s,Marcelo Bezerra ***@***.***>On 27 Jun 2024, at 15:22, trenth00 ***@***.***> wrote:
Sorry, I meant 10hz, not 10Mhz
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
The GPS can only be connected via CAN bus or MSP (over Uart). |
The rate for this device is set by the device firmware. You should ask manufacturer. |
|
ok, thanks |



Update rate of M9 was limited to 5Hz to enable tracking of more than 16 satellites but m10 does not appear to have such limitation.
Position hold also seems to work better with an update rate of 10Hz.
This will change the behavior of M9 and newer devices to match M5-8, enabling 10Hz when using UBLOX7 and limiting it to 5Hz when using regular UBLOX.
Is it also possible to set a custom navigation update rate in UBLOX7 to support even higher update rates, like 25Hz on M10 devices, or 5Hz for M9 devices.
In case the user specified a refresh rate that is rejected by the GPS module it will fall back to 5Hz.