BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

COSMOS 5 SYSTEM META TLM #1725

Closed vidfare closed 2 years ago

vidfare commented 2 years ago

Is it possible to use the SYSTEM META TLM in COSMOS 5 and make it available for other targets?

In COSMOS 4 it was defined like this in targets/SYSTEM/cmd_tlm/meta_tlm.txt

TELEMETRY SYSTEM META BIG_ENDIAN "System Meta Data Telemetry Packet"
  APPEND_ID_ITEM PKTID 8 UINT 1 "Packet Id"
  APPEND_ITEM CONFIG 256 STRING "Configuration Name"
  APPEND_ITEM COSMOS_VERSION 240 STRING "COSMOS Version"
    META READ_ONLY
  APPEND_ITEM USER_VERSION 240 STRING "User Project Version"
    META READ_ONLY
  APPEND_ITEM RUBY_VERSION 240 STRING "Ruby Version"
    META READ_ONLY
...
jmthomas commented 2 years ago

Yes you can define a separate plugin with a SYSTEM packet and telemetry just like you describe. You can set this telemetry by using the set_tlm() api method