Skip to content

Commit

Permalink
Add test for julian day setting
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Aug 2, 2023
1 parent 2f5f01b commit 138fce8
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 138fce8

Please sign in to comment.