mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
Adding New Modules
Adding Actuators
- Append the actuator you want to add to the enum in the RobotModule flatbuffer definition
- Propagate this change to this repository in the flatbuffer component, and the Control library.
- Update any of the entries in the Constants module that depend on the module type (for instance,
MODULE_TO_NUM_CHANNELS_MAP). - Create a header file for the module, implementing
IActuator. - Implement the actuator
- Deserialize the control message with Flatbuffers to match the message sent by the control library.
- Do not block for too long in the
actuatefunction, as this will block the main control loop.
- Add the actuator to the
ActuatorFactory.