From 138fce8df5e26a026436b050d2234837954e685f Mon Sep 17 00:00:00 2001 From: satoshi_ikari Date: Thu, 3 Aug 2023 05:52:06 +0900 Subject: [PATCH] Add test for julian day setting --- .../UserDefined/AOCS/test_aocs_manager.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/src_user/Test/test/src_user/Applications/UserDefined/AOCS/test_aocs_manager.py b/src/src_user/Test/test/src_user/Applications/UserDefined/AOCS/test_aocs_manager.py index 98f84dfc..3d64f8c0 100644 --- a/src/src_user/Test/test/src_user/Applications/UserDefined/AOCS/test_aocs_manager.py +++ b/src/src_user/Test/test/src_user/Applications/UserDefined/AOCS/test_aocs_manager.py @@ -34,5 +34,18 @@ def test_target_quaternion(): assert tlm_AOBC_HK_ALGO["AOBC_HK_ALGO.QUATERNION.TARGET_I2T_Z"] == 0.0 assert tlm_AOBC_HK_ALGO["AOBC_HK_ALGO.QUATERNION.TARGET_I2T_W"] == 1.0 +@pytest.mark.real +@pytest.mark.sils +def test_julian_day(): + assert "SUC" == wings.util.send_rt_cmd_and_confirm( + ope, + c2a_enum.Cmd_CODE_APP_AOCS_MANAGER_SET_REFERENCE_TIME, + (2459933.0,), + c2a_enum.Tlm_CODE_AOBC_HK_GEN, + ) + time.sleep(1.0) + tlm_AOBC_HK_ALGO = ope.get_latest_tlm(c2a_enum.Tlm_CODE_AOBC_HK_ALGO)[0] + assert tlm_AOBC_HK_ALGO["AOBC_HK_ALGO.TIME.REFERENCE_jday"] >= 2459933.0 + if __name__ == "__main__": pass