Sha256: 615a1fec6e645e7283d8afa6ed762b08cd73c42a1874406f3fa8170296101e88

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 Bytes

Contents

from openc3.script import *

load_utility("<%= target_name %>/procedures_py/utilities/clear.py")


def collect(type, duration, call_clear=False):
    # Get the current collects telemetry point
    collects = tlm("<%= target_name %> HEALTH_STATUS COLLECTS")

    # Command the collect
    cmd(f"<%= target_name %> COLLECT with TYPE {type}, DURATION {duration}")

    # Wait for telemetry to update
    wait_check(f"<%= target_name %> HEALTH_STATUS COLLECTS == {collects + 1}", 10)

    if call_clear:
        clear()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openc3-cosmos-demo-5.11.3 targets/INST/procedures_py/utilities/collect.py
openc3-cosmos-demo-5.11.2 targets/INST/procedures_py/utilities/collect.py
openc3-cosmos-demo-5.11.1 targets/INST/procedures_py/utilities/collect.py
openc3-cosmos-demo-5.11.0 targets/INST/procedures_py/utilities/collect.py
openc3-cosmos-demo-5.10.1 targets/INST/procedures_py/utilities/collect.py
openc3-cosmos-demo-5.10.0 targets/INST/procedures_py/utilities/collect.py