Closed jhayes-apl closed 1 year ago
It looks like the command is getting processed once by the Interface and then once by our Decommutation logic. This is actually by design because processors are typically used to process and generate telemetry, not to have side effects like sending commands. I'd recommend implementing this in a Custom Protocol.
I have a PROCESSOR attached to a telemetry packet. On receipt of the packet, the PROCESSOR sends a command back to the instrument. However, instead of a single command sent, the PROCESSOR sends two, a few milliseconds apart. Here are two commands from the log (CmdTlmServer):
It's as if the PROCESSOR is called twice. Is this a COSMOS bug, or am I doing something silly?
Here is the telemetry packet and PROCESSOR:
Here is time_service.rb (some comments deleted):
I am using COSMOS 5.0.3 Linux.