Closed taldcroft closed 4 months ago
From the recent data, it seems fine to set spm eclipse enable using this 135 sec check, as, indeed, spm was enabled. However, these data don't tell me about the cases where we want kadi to correctly not enable spm because the time from eclipse entry back to battery connect was longer. Has that happened at 136 seconds or ?
I'm hoping to avoid spending too much more time on this (i.e. digging through command history and telemetry to answer your question). The FOT engineers have stated that 135 sec is a good value so I'm accepting their recommendation face value.
Sure, I basically just didn't want to see this break just as many times the other way. If the engineering input is that is unlikely, that's fine.
Description
The matching time threshold of 125 seconds between battery connect time and eclipse entry appears to be too low. Eclipses on 2024:043 and 2024:046 had a delta of 129 to 130 seconds. This results in the
sun_pos_mon
remaining disabled coming out of eclipse.This PR changes that value to 135 sec. This has been confirmed as an acceptable value with FOT eng. See the email thread "Criteria for SPM auto-enable following eclipse" around 2024-Feb-17 for details.
Interface impacts
None
Testing
Unit tests
kadi/commands/tests/test_commands.py ....................................................................................... [ 37%] kadi/commands/tests/test_states.py .......................x..............................................x....................... [ 77%] [ 77%] kadi/commands/tests/test_validate.py .................... [ 86%] kadi/tests/test_events.py .......... [ 90%] kadi/tests/test_occweb.py ...................... [100%]
ska3-jeanconn-fido> git rev-parse HEAD f37a897bdf0d8906766f5e8308cd9ce00b2fe0e1 ska3-jeanconn-fido> pytest ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.2.1, pluggy-1.0.0 rootdir: /proj/sot/ska/jeanproj/git, configfile: pytest.ini plugins: anyio-3.6.2, timeout-2.1.0 collected 233 items
kadi/commands/tests/test_commands.py ................................... [ 15%] .................................................... [ 37%] kadi/commands/tests/test_states.py .......................x............. [ 53%] .................................x....................... [ 77%] kadi/commands/tests/test_validate.py .................... [ 86%] kadi/tests/test_events.py .......... [ 90%] kadi/tests/test_occweb.py ...................... [100%]
=============================== warnings summary