-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
NAV - Use raw GPS velocity in calculations #14
Comments
This can be done by using |
GPS data validity addressed in 6375c485a53eea080cd23bf85c0b0b3a75548305 |
you 'can' disable everything. depends on what you like. |
The navigation code should not depend on a specific hardware feature (in your example an UBLOX GPS module). If GPS for whatever reason does not provide velocity information, navigation code must still function properly. |
i just take what works - ublox does and the rest is not so reliable. |
Sticking with ublox-specific features would effectively remove support for nmea-only gps receivers. We can detect provided information and use what's best - that would be velocity info if available and coordinate difference as a fallback. This will improve things for ublox users and will not break anything for others. |
Done in 05c115ba6edb79f5f64f8c756c2787d14e1336d0. Untested. |
Did a test today. Didn't work as good as I thought it will be. However the test was done on poorly tuned copter, so it could be vibration messing up with velocity calculation from accelerometer. Need to re-tune and re-test. If it will work less reliable than coordinate derivative - this will be removed. |
Did another test today. Was working MUCH worse than plain old coordinate derivative. Closing. |
the current approach sucks. |
@bubi-007 |
first i am integrating altitude hold using gps and accelerometer. |
@bubi-007 |
Timeout issue at exit/switch ESC channel fixed
Current code calculates GPS velocity from coordinate difference. @bubi-007 suggested that raw velocity from GPS unit should be used instead. I think it's worth trying out.
The text was updated successfully, but these errors were encountered: