iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.12k stars 1.47k forks source link

Big difference in GPS precision when using INAV compared to u-center #2913

Closed swemonstro closed 6 years ago

swemonstro commented 6 years ago

Board and Version

Omnibus F4 Pro V3 (https://www.unmannedtechshop.co.uk/omnibus-f4-pro-flight-controller-v3/)

INAV/OMNIBUSF4PRO 1.9.0 Mar 5 2018 / 00:15:43 (dc4ef594f)

GPS: https://www.banggood.com/NEO-M8N-GPS-Module-for-PX4-PIX-APM2_52_6-Built-inCompass-p-974360.html?cur_warehouse=CN

_

Behavior

I was during my first flights with GPS hold experiencing some unexpected lateral movement when using Nav PosHold. and after looking deeper at the logs from (another groundtest) I discovered that there was some drops in GPS covering where the GPS lost all of the signals (I did this test with Tethered Logging) and I could see three drops of all satellites and three jumps in position. not very strange. Also the signal is very noisy and untrustful as the picture will display. Position thru INAV

I did more testing and now I connected the GPS thru an arduino to my computer and running u-center to display the data, and here to my surprise the signal was much much better, less noise and no glitches Position thru u-center.

Another finding (when doing the test from my balcony, due to bad weather, where only the east part of the sky is visible) I found out that the approximate position is moved around 40-50 meters in a east-east-norht direction. Wrong Position

All tests was with the quad stationary on the edge of the balcony.

Does anybody have any idea why the INAV understanding of the GPS data can be so much worse that the u-center.

shellixyz commented 6 years ago

It is likely due to RF interference with other equipment on your aircraft or noise in the power supply to the GPS unit.

swemonstro commented 6 years ago

the GPS is powerd directl from the FC connector, perhaps I should power it directly from a PDB?

shellixyz commented 6 years ago

You can try that. Also make sure your GPS receiver is as far away as possible from everything else particularly your receiver and VTX.

swemonstro commented 6 years ago

it is mounted exactly the same on both test.. and the wires going to the arduino is in the same position just as when they are going to the FC.

But I will make a fast test and power the GPS from PDB directly..

will be back

shellixyz commented 6 years ago

OK but were all your aircraft equipments powered up when you did the test with the Arduino ?

digitalentity commented 6 years ago

Also note that most GPSes that don't have a battery default to Pedestrian model which offers higher accuracy and requires less satellites, however doesn't allow high speeds and introduces considerable delay to the data. INAV configures Ublox GPS to "Airborne 1G" model which requires better satellite coverage.

swemonstro commented 6 years ago

Yes the quad was powered up with motors on low throttle..

But perhaps it is the current from the FC that is a bit dirty.. will be back in 30 min with another test!

swemonstro commented 6 years ago

Now I have the GPS powered directly from the PDB and I can say that the initial test from the same position looks much better. It has only been a couple of minutes but it looks much better! and the absolute position of the quad is much more accurate! I will let it run for about an hour to get a good amount of data.

If successful I will take it to a more open position and do a final test with motors running for an hour or so...

thanks for pointing me in the right direction...

swemonstro commented 6 years ago

Here is an screenshot of the GPS track during about 30 minutes of tracking, on a quite open place in a city... Think it start to look good enough to trust...
with_power_from_pdb

It turned out to be a very good Idea to power the GPS from an PDB instead of the FC!!

shellixyz commented 6 years ago

Indeed deviation looks "normal" now. The HDOP value should give you a good indication if the GPS can be used for navigation. Below 1.5 should be safe.

stronnag commented 6 years ago

This support discussion appears to have run its course, closing.