-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add an option to enable Galileo for UBLOX #2583
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
|
Currently, this allocates GNSS channels as:
Usually gives me between 24 and 27 satellites. |
|
Why do you need to use UBLOX7? I'm using GALILEO as configured via u-center and it is working perfectly at 5Hz. |
|
Expedience mainly. No reason other than I've not yet got further in defining the exact criterion (e.g. GPS firmware version). One of the several reasons why it is currently marked "Do not merge". |
|
I've a BN880, among the others, that like 50% of the times fails to be auto-configured with UBLOX7 at boot time and it falls back to standard UBLOX at 5Hz. Do you ever experienced this? So that module is likely to miss GALILEO most of the times. I think I should configure it via u-center and don't use auto-configure on it.. but :P |
|
Ucenter doesn't help users with units without non-volatile storage. It is not auto-configuration; it is user preference via the CLI, with a sanity check. If your unit is broken, don't use it. It uses exactly the same setup stanza as ucenter, so is as likely to be successful. |
|
Maybe I don't have explained the issue clearly. Configuration changes that I do via u-center are sticky. My sole issue with that module if that if I choose UBLOX7 protocol in the configuration tab, I'm getting 5Hz updates via POSLLH most of the times instead of getting NAV-PVT at 10Hz. It like an auto-configuration issue. If I enable NAV-PVT from u-center and disable auto-configuration in INAV of all works just fine at 10Hz all the times. |
Changed the CLI variable to `gps_ublox_use galileo` for consistency with other GPS variables Changed the eligibility test to M8N hardware and v3 firmware (or later)
|
Tested with M8N, Galileo capable but not enabled in EEPROM.
|
src/main/fc/settings.yaml
Outdated
| enum: gpsDynModel_e | ||
| - name: gps_ublox_use_galileo | ||
| values: ["OFF", "ON"] | ||
| enum: gpsUbloxUseGalileo_e |
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.
Can you remove this table? It seems it does nothing now.
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.
I think the error is that gps_ublox.c no longer references the related configure variable, which was not intended when I changed the criteria.
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.
If I'm understanding it correctly, a boolean without any table seems like the best option. Do you plan to add more states to the variable in the future?
|
No just following similar examples. Please educate me / update the PR if there is a better way |
|
TLDR: Your setting definition is correct. There's just a small issue with the field definition in the I really need to document the settings file format better, sorry about that. For now, let me briefly explain the concepts relevant to this PR:
|
src/main/io/gps.h
Outdated
| gpsAutoConfig_e autoConfig; | ||
| gpsAutoBaud_e autoBaud; | ||
| gpsDynModel_e dynModel; | ||
| gpsUbloxUseGalileo_e ubloxUseGalileo; |
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.
I'd just use a boolean here. Having an enum for just 0 and 1 complicates the code and it seems unlikely that we'll want to add more states to this field in the future.
|
I think I will write an 'adding a new CLI option' wiki page after this. |
…t, improve in code documentation
|
As this has been independently tested on a new 'no eeprom' GPS, I'm merging. |

As yet untested (other than seeing that the Cli option is present)