inav icon indicating copy to clipboard operation
inav copied to clipboard

No GPS Sats suddenly with 2.0 RC4

Open VoicOfReason opened this issue 8 years ago • 37 comments

I was Getting up to 18 sats and flying well but after RC4, the GPS coordinates DO display and cycle with different numbers as if it’s trying to get a sat fix, but it never even gets 1 satellite fix. No crashes. I even Swapped all the wiring and swapped the GPS for a new, identical GPS. I’m running RC4 with SP Racing F4 EVO. Was flying perfect.

VoicOfReason avatar Jul 23 '18 15:07 VoicOfReason

I have the same issue when on RC4. 9satelites , then 0 and again 9. So looks like communication problem.

pon., 23.07.2018, 17:07 użytkownik VoicOfReason [email protected] napisał:

I was Getting up to 18 sats and flying well but after RC4, the GPS coordinates DO display and cycle with different numbers as if it’s trying to get a sat fix, but it never even gets 1 satellite fix. No crashes. I even Swapped all the wiring and swapped the GPS for a new, identical GPS. I’m running RC4 with SP Racing F4 EVO. Was flying perfect.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3643, or mute the thread https://github.com/notifications/unsubscribe-auth/APlGQ4w-jcOPe3ymY9JyXdjV4RwPT-bvks5uJeavgaJpZM4VbKxF .

marbalon avatar Jul 23 '18 15:07 marbalon

I've seen this too. In the middle of swapping some hardware around; but I doubt that's the cause. MATEKF405.

stronnag avatar Jul 23 '18 15:07 stronnag

So maybe we can elevate this issue and get it looked at and fixed soon? I’m on a trip to the mountains and haven’t been able to fly at all because of this (my fault partly for using beta firmware).

VoicOfReason avatar Jul 23 '18 16:07 VoicOfReason

I tried RC4 on a Mateo F722 also and got the same exact issue.

VoicOfReason avatar Jul 23 '18 16:07 VoicOfReason

I'm in two (or more) minds on this one; it could just be the GPS having a 'bad hair day' image updated: add image with eph / epv

stronnag avatar Jul 23 '18 17:07 stronnag

I'm attempting to reproduce

digitalentity avatar Jul 23 '18 17:07 digitalentity

I tried 2 GPS’s and it 2 different parts of the country since I’m on a trip. First in Arkansas and then in Montana. Also tried different times of day.

On Mon, Jul 23, 2018 at 11:58 AM Konstantin Sharlaimov < [email protected]> wrote:

I'm attempting to reproduce

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3643#issuecomment-407146805, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq5OVLk1KsNtedlQVjb7_JANecoO3S9ks5uJg7GgaJpZM4VbKxF .

VoicOfReason avatar Jul 23 '18 18:07 VoicOfReason

When I get A chance to downgrade to RC3 I’ll also see if the problem resolves.

On Mon, Jul 23, 2018 at 12:07 PM Peter Freund [email protected] wrote:

I tried 2 GPS’s and it 2 different parts of the country since I’m on a trip. First in Arkansas and then in Montana. Also tried different times of day.

On Mon, Jul 23, 2018 at 11:58 AM Konstantin Sharlaimov < [email protected]> wrote:

I'm attempting to reproduce

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3643#issuecomment-407146805, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq5OVLk1KsNtedlQVjb7_JANecoO3S9ks5uJg7GgaJpZM4VbKxF .

-- W. Peter Freund Adjunct Instructor - Philosophy Northwest Arkansas Community College


“Hold no knowledge in contempt, blush to learn from no man, once you have attained knowledge, look down on no-one.” (St. Victor)

VoicOfReason avatar Jul 23 '18 18:07 VoicOfReason

And in the furtherance of statistics that prove nothing, here's my mwp logs for numsat = 0 (it's orders of magnitude easier to grep JSON than a binary log). There are definitely more instances later in the year; I'm not sure that is entirely weather / daylight related as I fly 3 - 5 times a week most of the year. It's also not hardware related as it spans 3 different machines.

$ grep -lr --include \*2018\*.log 'numsat":0' . | sort
./2018-02-19_custom/mwp_2018-02-19_145504.log
./2018-03-10_tri/mwp_2018-03-10_161526.log
./2018-04-28_tri/mwp_2018-04-28_135125.log
./2018-05-13_quad/mwp_2018-05-13_135807.log
./2018-05-25_quad/mwp_2018-05-25_160803.log
./2018-06-10_custom/mwp_2018-06-10_141039.log
./2018-06-10_custom/mwp_2018-06-10_143039.log
./2018-06-11_custom/mwp_2018-06-11_162553.log
./2018-06-11_custom/mwp_2018-06-11_164129.log
./2018-06-13_custom/mwp_2018-06-13_141741.log
./2018-06-13_custom/mwp_2018-06-13_142756.log
./2018-06-13_custom/mwp_2018-06-13_162034.log
./2018-06-29_tri/mwp_2018-06-29_152051.log
./2018-07-01_tri/mwp_2018-07-01_143721.log
./2018-07-04_custom/mwp_2018-07-04_142518.log
./2018-07-08_tri/mwp_2018-07-08_145235.log
./2018-07-11_custom/mwp_2018-07-11_151909.log
./2018-07-11_custom/mwp_2018-07-11_164118.log
./2018-07-16_custom/mwp_2018-07-16_162619.log
./2018-07-22_tri/mwp_2018-07-22_143707.log
./2018-07-22_tri/mwp_2018-07-22_151631.log

There are 21 instances this year (all development branch) of the 597 logs for 2018 (so 3.5%). Two of instances predate development being tagged as 2.0.0.

This is probably not helpful, but good luck in reproducing.

stronnag avatar Jul 23 '18 18:07 stronnag

Unable to reproduce. 1 hour of rock-solid fix with 8-11 sats.

digitalentity avatar Jul 23 '18 19:07 digitalentity

That doesn't surprise me, I can fly for days without issue; then bang either random sat behaviour or #3267 like behaviour (on craft that have been flying iNav stably for several years). Maybe the hardware has gone bad, ~but at the moment I have very little confidence in 2.0.0 (and you will appreciate how much it pains me to write that)~. Further hardware fiddling and downgrades to follow. Yup, it was bad hardware. iNav 2.0.0 has my unbridled confidence again.

stronnag avatar Jul 23 '18 19:07 stronnag

So, stronag, you are seeing 0 sats issue also? Wasn’t sure if you confirmed this.

On Mon, Jul 23, 2018 at 1:18 PM stronnag [email protected] wrote:

That doesn't surprise me, I can fly for days without issue; then bang either random sat behaviour or #3267 https://github.com/iNavFlight/inav/issues/3267 like behaviour (on craft that have been flying iNav stably for several years). Maybe the hardware has gone bad, but at the moment I have very little confidence in 2.0.0 (and you will appreciate how much it pains me to write that). Further hardware fiddling and downgrades to follow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3643#issuecomment-407170603, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq5Ofs1Y4xjS4sqLAgYzbH-GdBTSfLVks5uJiFzgaJpZM4VbKxF .

VoicOfReason avatar Jul 23 '18 19:07 VoicOfReason

Here’s what it looks like on my taranis. Stays this way indefinitely. Like I said, tried it in several states and different days/times:

https://youtu.be/iEzS3n7tzyY

VoicOfReason avatar Jul 23 '18 20:07 VoicOfReason

@VoicOfReason don't see the described issue. GPS just don't have a fix yet OR problem is sat count reporting via telemetry.

digitalentity avatar Jul 24 '18 17:07 digitalentity

The issue that I and @marbalon are reporting appears to a the case where the GPS loses the fix.

In the analysis following, 488 blackbox files (just my 2018 records:), comprising 680 flight logs results in 35 zero-satellite reports. None of these outages last more than 300ms and the GPS recovers.

The zero-sat reports are obviously from the GPS, as the fixtype (0) and HDOP (9999) are consistent with raw data from the GPS (not synthesised by iNav).

The evidence demonstrates that mid-flight occurrence of "X satellites ... 0 satellites ... X satellites" is not an iNav issue, it's a transient GPS issue that iNav reports correctly.

$ inav_0sat.rb $(find /t/inav -ipath "*2018*TXT")
****** /t/inav/2018-06-29_tri/LOG00007.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=10.63s
 Resume: numsats=18, fixtype=2, hdop=109, time=10.71s
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=12.91s
 Resume: numsats=19, fixtype=2, hdop=105, time=13.03s
****** /t/inav/2018-07-22_custom/LOG00005.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=407.79s
 Resume: numsats=19, fixtype=2, hdop=105, time=407.91s
****** /t/inav/2018-07-01_tri/LOG00008.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=2.33s
 Resume: numsats=17, fixtype=2, hdop=130, time=2.45s
****** /t/inav/2018-05-25_quad/BBL_2018-05-25_170232.TXT index = 2
 GPS 0-sat event for 0.24s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=16.88s
 Resume: numsats=16, fixtype=2, hdop=123, time=17.12s
****** /t/inav/2018-03-10_tri/LOG00007.TXT index = 1
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=5.29s
 Resume: numsats=16, fixtype=2, hdop=136, time=5.49s
****** /t/inav/2018-06-10_custom/BBL_2018-06-10_160130.TXT index = 3
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.99s
 Resume: numsats=13, fixtype=2, hdop=122, time=4.07s
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=31.97s
 Resume: numsats=15, fixtype=2, hdop=109, time=32.09s
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=206.05s
 Resume: numsats=16, fixtype=2, hdop=101, time=206.13s
****** /t/inav/2018-06-10_custom/BBL_2018-06-10_160130.TXT index = 6
 GPS 0-sat event for 0.28s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=230.60s
 Resume: numsats=13, fixtype=2, hdop=125, time=230.88s
****** /t/inav/2018-02-19_custom/LOG00003.TXT index = 1
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=4.03s
 Resume: numsats=13, fixtype=2, hdop=138, time=4.23s
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=4.35s
 Resume: numsats=10, fixtype=2, hdop=193, time=4.43s
****** /t/inav/2018-07-08_tri/LOG00005.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=7.70s
 Resume: numsats=19, fixtype=2, hdop=107, time=7.82s
****** /t/inav/2018-01-26_tri/LOG00007.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=4.07s
 Resume: numsats=16, fixtype=2, hdop=109, time=4.19s
****** /t/inav/2018-07-16_custom/LOG00007.TXT index = 1
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.67s
 Resume: numsats=18, fixtype=2, hdop=117, time=3.87s
****** /t/inav/2018-01-28_tri/LOG00006.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=4.86s
 Resume: numsats=18, fixtype=2, hdop=114, time=4.94s
****** /t/inav/2018-07-22_tri/LOG00006.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=8.94s
 Resume: numsats=20, fixtype=2, hdop=108, time=9.06s
****** /t/inav/2018-06-25_custom/BBL_2018-06-25_194112.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=78.00s
 Resume: numsats=14, fixtype=2, hdop=135, time=78.12s
****** /t/inav/2018-06-11_custom/BBL_2018-06-11_171855.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=308.37s
 Resume: numsats=15, fixtype=2, hdop=157, time=308.45s
****** /t/inav/2018-06-11_custom/BBL_2018-06-11_171855.TXT index = 3
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.20s
 Resume: numsats=16, fixtype=2, hdop=118, time=3.32s
****** /t/inav/2018-04-28_tri/LOG00003.TXT index = 1
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=12.41s
 Resume: numsats=17, fixtype=2, hdop=130, time=12.53s
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=236.58s
 Resume: numsats=17, fixtype=2, hdop=128, time=236.66s
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=617.04s
 Resume: numsats=18, fixtype=2, hdop=119, time=617.16s
****** /t/inav/2018-07-04_custom/BBL_2018-07-04_144518.TXT index = 4
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=113.53s
 Resume: numsats=13, fixtype=2, hdop=154, time=113.73s
****** /t/inav/2018-07-04_custom/BBL_2018-07-04_152802.TXT index = 4
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=111.20s
 Resume: numsats=16, fixtype=2, hdop=124, time=111.28s
****** /t/inav/2018-07-04_custom/BBL_2018-07-04_152802.TXT index = 6
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=106.16s
 Resume: numsats=17, fixtype=2, hdop=121, time=106.28s
****** /t/inav/2018-01-14_tri/LOG00005.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=4.45s
 Resume: numsats=17, fixtype=2, hdop=117, time=4.53s
****** /t/inav/2018-06-13_custom/BBL_2018-06-13_165848.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=381.39s
 Resume: numsats=16, fixtype=2, hdop=115, time=381.47s
****** /t/inav/2018-06-13_custom/BBL_2018-06-13_161833.TXT index = 2
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=152.91s
 Resume: numsats=16, fixtype=2, hdop=104, time=152.99s
****** /t/inav/2018-06-13_custom/BBL_2018-06-13_161833.TXT index = 3
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=30.47s
 Resume: numsats=15, fixtype=2, hdop=107, time=30.55s
****** /t/inav/2018-06-13_custom/BBL_2018-06-13_161833.TXT index = 5
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.47s
 Resume: numsats=13, fixtype=2, hdop=135, time=3.67s
****** /t/inav/2018-06-13_custom/BBL_2018-06-13_161833.TXT index = 6
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.53s
 Resume: numsats=14, fixtype=2, hdop=122, time=3.73s
****** /t/inav/2018-07-21_custom/LOG00011.TXT index = 1
 GPS 0-sat event for 0.08s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=2.50s
 Resume: numsats=18, fixtype=2, hdop=117, time=2.58s
****** /t/inav/2018-07-11_custom/BBL_2018-07-11_170806.TXT index = 3
 GPS 0-sat event for 0.12s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=3.51s
 Resume: numsats=16, fixtype=2, hdop=126, time=3.63s
****** /t/inav/2018-07-11_custom/BBL_2018-07-11_162725.TXT index = 2
 GPS 0-sat event for 0.20s duration
 Event : numsats=0, fixtype=0, hdop=9999, time=286.11s
 Resume: numsats=17, fixtype=2, hdop=110, time=286.31s
Files 488, Flight logs 680, Zero-sat records 35

stronnag avatar Jul 24 '18 17:07 stronnag

That was my conclusion as well - most likely GPS-related issue, not INAV-related.

digitalentity avatar Jul 24 '18 17:07 digitalentity

Indeed, just to make it even more blindingly obvious, here's a short rerun with the "immediately before" state as well.

****** /t/inav/2018-06-29_tri/LOG00007.TXT index = 1
 GPS 0-sat event of 0.08s duration
 Before : numsats=17, fixtype=2, hdop=120, time=10.63s
 Event : numsats=0, fixtype=0, hdop=9999, time=10.63s
 Resume: numsats=18, fixtype=2, hdop=109, time=10.71s
 GPS 0-sat event of 0.12s duration
 Before : numsats=19, fixtype=2, hdop=105, time=12.91s
 Event : numsats=0, fixtype=0, hdop=9999, time=12.91s
 Resume: numsats=19, fixtype=2, hdop=105, time=13.03s
****** /t/inav/2018-07-22_custom/LOG00005.TXT index = 1
 GPS 0-sat event of 0.12s duration
 Before : numsats=19, fixtype=2, hdop=105, time=407.78s
 Event : numsats=0, fixtype=0, hdop=9999, time=407.79s
 Resume: numsats=19, fixtype=2, hdop=105, time=407.91s

stronnag avatar Jul 24 '18 18:07 stronnag

Ok everyone, I have an update. I can absolutely confirm that RC4 is responsible for 0 sats (forever) on my quad. I tried 4-5 times on my trip out west (in different locations across the country from Arkansas to Montana) to get even 1 satellite on RC4. No matter how long it sat, it never got a sat. I even messed around with all kinds of settings in iNav. Tonight, I finally downgraded to RC1 and then tried RC2 using my kid's Chromebook. Boom! No config changes. GPS worked again. Got 4 sats within 1 minute! Up to 9 GPS just sitting in front of the window, in my hotel room. Everything is fixed. So, there is absolutely a serious issue going on here.

Here's my setup: BN-880 SP Racing F4 EVO DJI Occusync Air MSP Another MSP port for MobileFlight data via Crossfire Micro (channels 3-4) Crossfire Micro Tx 2.0 TBS G2 frame 32bit ESC

If there is any other information/data you need from me, let me know. No doubt, RC3 would have fixed it, as well, since I was flying stable on RC3 before my trip, but iNav on Chromebook only showed RC1 and RC2 as options to downgrade to.

VoicOfReason avatar Jul 25 '18 05:07 VoicOfReason

@VoicOfReason diff between RC3 and RC4 is quite small and doesn't touch anything GPS-related: https://github.com/iNavFlight/inav/compare/2.0.0-RC3...2.0.0-RC4

I strongly doubt it's an RC4-specific issue. Still unable to reproduce.

digitalentity avatar Jul 25 '18 18:07 digitalentity

I’ll keep looking into the issue and update here if I find The cause.

On Wed, Jul 25, 2018 at 12:06 PM Konstantin Sharlaimov < [email protected]> wrote:

@VoicOfReason https://github.com/VoicOfReason diff between RC3 and RC4 is quite small and doesn't touch anything GPS-related: 2.0.0-RC3...2.0.0-RC4 https://github.com/iNavFlight/inav/compare/2.0.0-RC3...2.0.0-RC4

I strongly doubt it's an RC4-specific issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3643#issuecomment-407844798, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq5OXLuk4ploSbOoeBaMSW5VDdklZI3ks5uKLObgaJpZM4VbKxF .

VoicOfReason avatar Jul 25 '18 21:07 VoicOfReason