autohotkey/procedures/collect_util.rb in cosmos-3.0.1 vs autohotkey/procedures/collect_util.rb in cosmos-3.1.0

- old
+ new

@@ -1,14 +1,14 @@ -require_utility 'clear_util.rb' - -def collect (type, duration, call_clear = false) - # Get the current collects telemetry point - collects = tlm('INST HEALTH_STATUS COLLECTS') - - #Command the collect - cmd("INST COLLECT with TYPE #{type}, DURATION #{duration}") - - #Wait for telemetry to update - wait_check("INST HEALTH_STATUS COLLECTS == #{collects + 1}", 10) - - clear_collects() if call_clear -end +require_utility 'clear_util.rb' + +def collect (type, duration, call_clear = false) + # Get the current collects telemetry point + collects = tlm('INST HEALTH_STATUS COLLECTS') + + #Command the collect + cmd("INST COLLECT with TYPE #{type}, DURATION #{duration}") + + #Wait for telemetry to update + wait_check("INST HEALTH_STATUS COLLECTS == #{collects + 1}", 10) + + clear_collects() if call_clear +end