ericberman / MyFlightbookiOS

Repository for the iOS app for MyFlightbook
GNU General Public License v3.0
12 stars 4 forks source link

New code: appending a ton of existing points #300

Closed ericberman closed 1 year ago

ericberman commented 1 year ago

I landed at 10:35am, then look at the jump at 10:35:14 - back up to PAE and every subsequent point (4,250 samples!) all repeated at the exact same time, with most of them saying "Takeoff". Why? And why do they suddenly say "Takeoff" for all of them?

45.24905043 -122.7653967 196 0.1 5 2023-04-14 10:35:07 420 45.24905043 -122.7653967 196 0 5 2023-04-14 10:35:08 420 45.24905043 -122.7653967 196 0.1 5 2023-04-14 10:35:08 420 47.904095 -122.279655 553 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0 5 2023-04-14 10:35:14 420 47.90409333 -122.2796567 554 0.1 5 2023-04-14 10:35:14 420 47.90409333 -122.279655 554 0.1 5 2023-04-14 10:35:14 420

ericberman commented 1 year ago

Might have been bad-elf logging? I'm not able to reproduce this (possibly the fix above fixed it), but I am seeing instances where recorded data extends to before the engine was started. Possibly queued up location reports?

ericberman commented 1 year ago

Actually it looks to start recording at first takeoff event, even if engine start hasn't happened yet. And it continues to record until submission of the flight. Debug mode issue - does this happen in release mode? Otherwise, will need to add a bunch of NSLog logging to try to figure out what's going on.