Adding Time Delay Functionality to CmdDispatcher #4510
-
|
Hello everyone, I'm implementing a scheduler component in fprime to dispatch commands after specified delays, using a priority queue and rate handler. I'm unsure how other components should send commands to the scheduler, and how the scheduler forwards them to the CmdDispatcher for routing. I would greatly appreciate any insights or pointers to documentation about using command buffers for inter-component command passing and best practices for scheduler and CmdDispatcher integration. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Typically we don't do this.
Sequencers read command buffers assembled on the ground from a file and dispatch them. Our usual pattern is to define both a port and a command for a feature that is needed in both ground and flight, then have each delegate to a helper function that contains shared implementation. On one project I've supported, we though about a command builder and then dispatch pattern, but deemed it too complex and we reverted to the port and command pattern. However, to answer your specific question. I believe the format Extreme care must be taken that the opcode match the argument format. Arguments use the native F Prime serialization for the type. |
Beta Was this translation helpful? Give feedback.
Typically we don't do this.
portsare used for inter-component communication, andcommandsare used for ground to flight communication. The only components that send command buffers to command dispatch are:Sequencers read command buffers assembled on the ground from a file and dispatch them.
Our usual pattern is to define both a port and a command for a feature that is needed in both ground and flight, then have each delegate to a helper function that contains shared implementation.
On one project I've supported, we though about a command builder and then dispatch pattern, but deemed it too complex and we reverted to the port and command pattern.
H…