You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say I have a stepper motor driver, and I want to keep track of the total number of steps that I have commanded to the motor. Is there a way to have the 'motor move' command packet update a TLM packet that will accumulate the number of steps across the command sender and various scripts?
It seems like I could do this using a write conversion and a virtual TLM packet. I am unsure of how I to access the TLM packet from the conversion however. I am also unsure of how I could reset this TLM value without actually sending a command to my motor driver board...
Is this possible and if so am I on the right track?
The text was updated successfully, but these errors were encountered:
You can certainly do this with "fake" telemetry packets and by calling inject_tlm to update it. However I would recommend using the Stash API which was created for just this use case. Store something internally and then retrieve it.
Like is there a way to implement a custom telemetry item like RECIVED_COUNT that gets updated based on things that happen in COSMOS rather than by info in the packet.
Lets say I have a stepper motor driver, and I want to keep track of the total number of steps that I have commanded to the motor. Is there a way to have the 'motor move' command packet update a TLM packet that will accumulate the number of steps across the command sender and various scripts?
It seems like I could do this using a write conversion and a virtual TLM packet. I am unsure of how I to access the TLM packet from the conversion however. I am also unsure of how I could reset this TLM value without actually sending a command to my motor driver board...
Is this possible and if so am I on the right track?
The text was updated successfully, but these errors were encountered: