Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interpolation of heading #32

Open
callumrollo opened this issue Nov 4, 2021 · 4 comments
Open

interpolation of heading #32

callumrollo opened this issue Nov 4, 2021 · 4 comments

Comments

@callumrollo
Copy link
Collaborator

Heading of the seaexplorer is recorded at a lower temporal resolution than science sensors, approx. 20 seconds between measurements. Current solution is to interpolate onto the timebase of the science sensors. This could cause some unintended results when glider is heading around north, e.g. interpolation of 180 between two values of 355 and 005.

There must be a smart way to fix this. Maybe using deg2rad and some kind of normalisation?

@callumrollo callumrollo changed the title interolation of heading interpolation of heading Nov 4, 2021
@richardsc
Copy link
Collaborator

Good point. I've handled this kind of thing in the past by searching for large jumps, and then adding (or subtracting) 180 degrees before interpolating. Not sure if that would work here.

Another option is to just hold the measured heading during the 20s period, only updating when a new value is measured.

@callumrollo
Copy link
Collaborator Author

Yeah, I'm thinking some kind of nearest neighbour method, rather than the currrent linear interpolation, might be a better solution to resampling the nav data to science data. This could also make it clearer to the end user that the high apparent sampling rate or pitch, roll, heading is just an artefact of processing

@richardsc
Copy link
Collaborator

Yes I agree. Better to keep things closer to what was measured than make up a whole bunch of new data. The nav depths that get recorded in the payload files are similar -- the nav-measured depths are just repeated on the payload timebase until a new measurement is available.

@jklymak
Copy link
Member

jklymak commented Nov 4, 2021

One way to interpolate headings is to interpolate cos head and sin head. That will interpolate across the jumps correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants