Some variables, such as m_battpos, c_battpos, ... should be forward propagated, not linearly interpolated. While Xarray's interpolation methods don't include "previous" or "next" in its method, scipy's does.
This issue bites when I'm projecting from flight time onto science time. When I'm working through motor activation, I work solely in the flight computer's time space, then project onto the science computer's time space. This is a case where I do back propagation. Consider:
We have flight times t0, t1, and t2, which are roughly spaced 5 seconds apart. We notice the pitch battery starts to move at t1.
We have t_sci in the interval [t0, t2], which are roughly spaced 1 second apart. The choices for choosing which t_sci is the time the pitch battery started to move include:
- The t_sci just before t1
- The t_sci just after t0
I have chosen to use (2) since this is conservative. (This is syncing the two clocks.)
The reason for choice is I would rather toss data that may be contaminated than include contaminated data.
Conversely, at the stopping of an action, say at tn, then I forward propagate up to tn+1.
Some variables, such as m_battpos, c_battpos, ... should be forward propagated, not linearly interpolated. While Xarray's interpolation methods don't include "previous" or "next" in its method, scipy's does.
This issue bites when I'm projecting from flight time onto science time. When I'm working through motor activation, I work solely in the flight computer's time space, then project onto the science computer's time space. This is a case where I do back propagation. Consider:
We have flight times t0, t1, and t2, which are roughly spaced 5 seconds apart. We notice the pitch battery starts to move at t1.
We have t_sci in the interval [t0, t2], which are roughly spaced 1 second apart. The choices for choosing which t_sci is the time the pitch battery started to move include:
I have chosen to use (2) since this is conservative. (This is syncing the two clocks.)
The reason for choice is I would rather toss data that may be contaminated than include contaminated data.
Conversely, at the stopping of an action, say at tn, then I forward propagate up to tn+1.