Skip to content

Commit

Permalink
Use local_screen in inject_tlm script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 17, 2024
1 parent e6ffaa8 commit 5ab2f00
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions targets/FAKESAT/procedures/set_override_inject_tlm.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
set_line_delay(1)
screen_def = '
SCREEN AUTO AUTO 0.1 FIXED
VERTICAL
VERTICALBOX
LABELVALUE FAKESAT HEALTH_STATUS MODE
END
END
'
# Here we pass in the screen definition as a string
local_screen("TESTING", screen_def)
prompt("Watch the screen for mode changes ...")

cmd("FAKESAT SET_MODE with MODE SAFE")
wait_check("FAKESAT HEALTH_STATUS MODE == 'SAFE'", 5)

prompt("Ensure Packet Viewer is open to INST HEALTH_STATUS and watch MODE")

# Call set_tlm twice to ensure it gets processed as real tlm flows
set_tlm("FAKESAT HEALTH_STATUS MODE = 'OPERATE'")
wait 0.2
Expand Down

0 comments on commit 5ab2f00

Please sign in to comment.