Comments (13)
This can be done by using GPS_speed
and GPS_ground_course
, but code MUST check that GPS unit provide these values - it is not a GGA message, it's a RMC message and it can be disabled in GPS module for some reason.
from inav.
GPS data validity addressed in 6375c485a53eea080cd23bf85c0b0b3a75548305
from inav.
you 'can' disable everything.
but you can subscribe for the velocities in the ned frame:
0xB5,0x62, // Header Turn On UBLOX NAV-VELNED Msg
0x06,0x01, // ID
0x03,0x00, // Length
0x01, // Msg Class NAV
0x12, // Msg ID VELNED
0x01, // Rate 1
0x1E,0x67, // CK_A, CK_B
depends on what you like.
from inav.
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.
from inav.
i just take what works - ublox does and the rest is not so reliable.
from inav.
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.
from inav.
Done in 05c115ba6edb79f5f64f8c756c2787d14e1336d0. Untested.
Edit: It just occured to me that this patch also prevents a possible bug with polled GPS (i.e.I2C-NAV). When no new data is available a polled gps module would return previous data, Coordinate difference would then yield zero velocity which will probably be incorrect. Using last known velocity is a better option IMO.
from inav.
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.
from inav.
Did another test today. Was working MUCH worse than plain old coordinate derivative. Closing.
from inav.
the current approach sucks.
bf and cf need a complete rewrite on this subject.
from inav.
@bubi-007
Please assist in getting this working,
from inav.
first i am integrating altitude hold using gps and accelerometer.
then i go into navigation.
from inav.
@bubi-007
Can you please share your code?
from inav.
Related Issues (20)
- Inav 7.1 keeps giving runtime calibration HOT 3
- [Target Bug] FlywooF745Nano - Wrong Motor Resource. HOT 2
- Arteficial horizon not showing up in osd HOT 4
- Slow OSD (WTFOS) refresh rate HOT 7
- High FF and low mechanic respond oscillation. Need a way to lower FF respond speed HOT 8
- iNav F405-WING v2 with CRSF receiver not indicating inputs on Receiver page HOT 3
- Continous Auto Trim active during maneuvers HOT 1
- Wiki::Telemetry::LTM::Tuning_frame format broken HOT 1
- Fixed wing craft fails to disarm after autoland mission HOT 15
- Option to change telemetry speed output between gps and air speed for crsf HOT 1
- INAV Black Box logging issue - H7 flight controller HOT 6
- Low battery alarm beeps when board connected to pc without battery HOT 1
- Servos Freeze when both sticks moving, even when Armed using INAV 7.1 on Speedybee F405 Wing with FLYSKY i6X via IBUS HOT 6
- multiple include file
- INAV 7.1 the "Battery left" value which I send as telemetry data (FrSky) to my Tx is not working anymore HOT 2
- How to setup inav 7.1 for 6 inch propeller HOT 1
- Option to send airspeed instead of gps speed for CRSF radios
- When I use angle mode during idle, the PID doesn't work HOT 8
- Wrong Motor Resource Flywoo F405 Pro HOT 1
- JHEMCUF745 output assignment skips 2 timers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inav.