-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
custom GPS commands #12239
Comments
Great idea, it could not only be used for baud-rates but also to set manual configs like GNSS eg. for modules without flash-memory like the BN-180. Such tutorials could be replaced with a single CLI-Command. My problem now 'using Beidou instead of Glonass' which seems to be perform lot better here (higher hdop) could be easily and permanently solved |
I agree that we need the possibility to setup a couple more options about gps directly in betaflight. I setup everything in u-center and it works perfectly, but after some hours betaflight cannot detect it at all... then I enable auto setup and it starts working again... but then the changes made in u-center are lost (as example.. Beidou instead of Glonass, exactly like fabi9163). Receiver settings have been moved to the receiver tab from "configure", what do you thing about doing the same for GPS? So, in configuration leave just "enable GPS" and the other settings could go in the GPS tab (so when you change something you see what happens in realtime). As said in Oscar's GPS tutorial, it's useful to change port settings and speed, refresh rate, sats constellations (Beidou, glonass,..), power (not shure it makes a difference), dynamic platform (portable), maybe even assistnow... An alternative could be a simpler setup by country (around europe Beidou seems to be better than glonass), but let choose a couple more details could be better. |
Moving expert settings for gps to the gps tab makes totally sense. But why do I need to enable gps in configuration, when I also need to setup a port? |
@nightflasher - with the change I made if you enable GPS in ports tab it will enable GPS feature. This change makes moving GPS configuration to GPS tab possible as this is on my todo.
|
Please test https://github.com/betaflight/betaflight-configurator-nightlies/releases/tag/v20230208.381 Did not add custom command yet. |
For now about three days purely getting my gps sets to work (didn't expect to take so much time) as they should, i was reading the betaflight gps c/h and sensors sources, to find the NMEA thing is quite simple to setup: I've now a list of testet commands (GK9501, GY-NEO6MV2, GTPA010, MT3337), which i tested using arduino terminal (send command) and MiniGPS1.7.1 (verify settings): |
I started to read gps.c/gps.h and made a PR for changing nav mode to PORTABLE. #12587 |
Your PR isn't related to this issue, but I like your idea and smart changes. Does it improve something, or is it just "the correct form of configuration"? |
I can't test now but based on Oscar Liang's tutorial it has smaller deviation. Should I make a similar PR for power mode? |
I'm just thinking here loudly. I try to make the NEMA custom command in cli now. |
@nightflasher can you test this PR? I don't have NMEA gps. |
for the B&T BG01 from AliExpress and similar GK chipsets I've also updated a the commands list for users to test: //GK NMEA OUTPUT |
Is your feature request related to a problem? Please describe
when using older GPS modules or non-ublox (GK or MT) which only speak NMEA, and don't save settings, you have to configure the GPS every time you power up the miniKwad. Most of those GPS modules start with 9600 baud and have only 1 Hz update/refresh rate.
in my case, betaflight detects 57600 baud, which isn't working even you've tried to configure the module. so i've configured it to 38400 baud and set up 5 Hz, which is working. But after a while without power, the settings in the module are reset to 9600 baud &1 Hz.
Describe the solution you'd like
two input fields for manual expert configuration for the GPS that is sent to the GPS if the check for the set baudrate (e.g. 38400) in ports tab failed to get valid input.
baudrate: 3800 ($PMTK251,38400*27\r\n)
refresh: 5 ($PMTK220,200*2C\r\n)
Describe alternatives you've considered
as you already search for the correct settings in gps.c from line 120 and follows (and set those again?) you could fallback to 9600 and set the "saver" and most commonly available baudrate which supports 5 Hz.
Other information
No response
The text was updated successfully, but these errors were encountered: