Skip to content

Commit

Permalink
Merge pull request #1 from OpenC3/local_screen
Browse files Browse the repository at this point in the history
Use local_screen in inject_tlm script
  • Loading branch information
ryanmelt authored Jan 19, 2024
2 parents e6ffaa8 + 5ab2f00 commit d111d66
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 d111d66

Please sign in to comment.