mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Display control code
This commit is contained in:
@@ -101,6 +101,8 @@ void DCMotorActuator::setup_encoder() {
|
||||
}
|
||||
|
||||
void DCMotorActuator::actuate(uint8_t *cmd) {
|
||||
// todo: Do we want to verify flatbuffers here?
|
||||
// Will introduce latency, and means that we need to also send the size to the actuate function.
|
||||
const auto *angleControlCmd =
|
||||
Flatbuffers::AngleControlMessageBuilder::parse_angle_control_message(cmd);
|
||||
this->m_target_angle = angleControlCmd->angle();
|
||||
|
||||
Reference in New Issue
Block a user