opensailing / nautic_net_web

Phoenix 1.7 web server for NauticNet real-time tracker and analysis
2 stars 0 forks source link

When sample data is not available for a given second we should just dampen to previous value #52

Open bcardarella opened 1 year ago

bcardarella commented 1 year ago

See the purple boat, it's pointing directly North 0 degrees. This is because if you see the second image there is no data for the magnetic heading. Two seconds later there is and the heading is corrected on the visualization

Screenshot 2023-08-11 at 2 07 45 PM Screenshot 2023-08-11 at 2 07 52 PM Screenshot 2023-08-11 at 2 07 58 PM
schrockwell commented 1 year ago

NauticNet.Playback.fill_latest_samples/2 looks for samples up to 5 seconds in the past, for query performance reasons. If no sample is found within the past 5 seconds, this ^ occurs. We should verify that this function is working as expected, and if so, consider making it look further in the past.

bcardarella commented 1 year ago

hmmm... if we're not getting sensor data for a 5 second period that's concerning

schrockwell commented 1 year ago

Confirmed that the data dropped out for 18 seconds, which is beyond the 5 second threshold.

image

bcardarella commented 1 year ago

Let's look at why we have such large gaps from the samples first before trying to address this in the app. Dampening over an 18 second period is pretty crappy

bcardarella commented 1 year ago

I think we should look at the loggers and see what can be addressed there. The gaps are too large to address in the app via a dampening