Flight Lab / Flight software & commanding / 06
Lesson 06 of 08 · about 5 min
COSMOS keeps a dictionary of commands and telemetry. A command definition names the opcode and the legal range of each argument. A verification says which telemetry item must reach which value, and how long the ground waits.
Define HEATER_ON. The opcode is 0x21. Duration is legal from 1 to 60 seconds. Success is HEATER_STATE equal to 1 within 2 seconds. This page writes the dictionary. The send itself is the first lesson.