-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix problems that came up in pitch/roll-comp
when using real-time data
#250
Conversation
Does this need a unit test? |
If no unit test is required, it would be nice to specify the functional test done (meaning the exact code run and the expected output in flight and this branch). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to change my review to "this probably deserves a unit test or updated unit test unless there's a good explanation about why that's too hard or not possible"
Here is a demonstration of one type of failure that is seen in flight ska 2023.1, done at around 14:50z on 2023:190. Unfortunately I'm still working on a reproducible demo, since this one stopped happening later on (presumably related to the MAUDE archive filling in).
|
I did roughly the same thing using this branch a few minutes later and saw no problem. But I can't absolutely confirm that this PR fixed things since flight ska started working OK at some point as well. |
For the missing-data fix, is the hypothesis now that this happens if the MAUDE data for some of the quaternions isn't available (either missing 1 or more of 4 or have some new data but not some older data?). It seems like those cases could be constructed to show the new code works better, but it isn't clear to me what MAUDE would be doing. |
Description
Using MAUDE data just after a comm for the
pitch_comp
androll_comp
computed MSIDs was failing for a couple of reasons:state_intervals
. This was fixed by specifying thestart
andstop
times (enabled by Improve pitch/roll_comp, logical_intervals, state_intervals, get_ofp_states, get_telem_table #249).pitch
orroll
to 0.0. Instead the data points need to be removed entirely. The updated code does this now.Interface impacts
None
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
Using this branch I ran a fetch query for
pitch_comp
about one hour after BOT. The query started before the comm and ended at the current time (after the comm). Before the fix this either failed completely (without the CONLOFP fix) or returned a bunch of 0.0 values at the end. After the fix I saw the expected pitch values.