From 5ab2f007d19a92ff103b0e665333aeed8ed88db8 Mon Sep 17 00:00:00 2001 From: Jason Thomas Date: Wed, 17 Jan 2024 11:09:57 -0700 Subject: [PATCH] Use local_screen in inject_tlm script --- .../FAKESAT/procedures/set_override_inject_tlm.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/targets/FAKESAT/procedures/set_override_inject_tlm.rb b/targets/FAKESAT/procedures/set_override_inject_tlm.rb index e1da4f7..0ec66ee 100644 --- a/targets/FAKESAT/procedures/set_override_inject_tlm.rb +++ b/targets/FAKESAT/procedures/set_override_inject_tlm.rb @@ -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