OpenC3/cosmos

View on GitHub
openc3-cosmos-init/plugins/packages/openc3-cosmos-demo/targets/TEMPLATED/cmd_tlm/templated_cmds.txt

Summary

Maintainability
Test Coverage
COMMAND <%= target_name %> SETPT_VOLTAGE BIG_ENDIAN "Templated string command"
  APPEND_ID_PARAMETER CMD_ID 8 UINT 0 0 0 "Command Id"
  APPEND_PARAMETER VOLTAGE 64 FLOAT MIN_FLOAT64 MAX_FLOAT64 3.14 "Voltage setting"
  APPEND_PARAMETER CHANNEL 8 UINT 1 4 1 "Desired channel"
  APPEND_PARAMETER CMD_TEMPLATE 1024 STRING "SOUR:VOLT <VOLTAGE>, (@<CHANNEL>)"

COMMAND <%= target_name %> GET_SETPT_VOLTAGE BIG_ENDIAN "Templated string command with response"
  DISABLE_MESSAGES
  APPEND_ID_PARAMETER CMD_ID 8 UINT 1 1 1 "Command Id"
  APPEND_PARAMETER CHANNEL 8 UINT 1 4 1 "Desired channel"
  APPEND_PARAMETER CMD_TEMPLATE 512 STRING "SOUR:VOLT?, (@<CHANNEL>)"
  APPEND_PARAMETER RSP_TEMPLATE 512 STRING "<VOLTAGE>"
  APPEND_PARAMETER RSP_PACKET 512 STRING "READ_VOLTAGE"