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:
@@ -26,8 +26,13 @@ SerializedMessage SensorMessageBuilder::build_sensor_message(std::vector<sensor_
|
||||
values_vec.push_back(Messaging::CreateCurrentAngle(builder_, a.angle).Union());
|
||||
sensor_values_vec.push_back(Messaging::SensorValue_CurrentAngle);
|
||||
},
|
||||
[&](target_text t) {
|
||||
auto text_offset = builder_.CreateString(t.text);
|
||||
values_vec.push_back(Messaging::CreateCurrentText(builder_, text_offset).Union());
|
||||
sensor_values_vec.push_back(Messaging::SensorValue_CurrentText);
|
||||
}
|
||||
},
|
||||
v);
|
||||
v);
|
||||
}
|
||||
|
||||
auto values_fb_vec = builder_.CreateVector(values_vec);
|
||||
|
||||
Reference in New Issue
Block a user