-
Hello, I would like to press a button on a telemetry screen and run an api.cmd a set number of times. I tried a number of variations using a syntax like the one outlined below but have had no luck. Any ideas? Thank You. BUTTON 'Get <%= target_name %> General Telemetry' 'for (var i =0; i< 3; i++) {api.cmd("INST GET_GENERAL_TELEMETRY")}' COSMOS 5.0.4 |
Beta Was this translation helpful? Give feedback.
Answered by
dlackner
Jul 13, 2022
Replies: 1 comment 1 reply
-
Answer: BUTTON 'Get <%= target_name %> General Telemetry' 'for (var i =0; i<100; i++) {api.cmd("INST GET_GENERAL_TELEMETRY");}' You need the extra ; at the end. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dlackner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answer: BUTTON 'Get <%= target_name %> General Telemetry' 'for (var i =0; i<100; i++) {api.cmd("INST GET_GENERAL_TELEMETRY");}'
You need the extra ; at the end.