mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-10 00:32:26 +01:00
Add distance sensor and display
This commit is contained in:
@@ -25,10 +25,10 @@ std::vector<uint8_t> PositionalActuator1D::get_actuation_message() {
|
||||
}
|
||||
|
||||
void PositionalActuator1D::update_sensor_data(const Flatbuffers::sensor_value &value) {
|
||||
std::visit(overloaded{
|
||||
[this](Flatbuffers::target_angle a) { m_board_target_position = a.angle; },
|
||||
std::visit(
|
||||
overloaded{[this](Flatbuffers::target_angle a) { m_board_target_position = a.angle; },
|
||||
[this](Flatbuffers::current_angle a) { m_current_position = a.angle; },
|
||||
[this](Flatbuffers::current_text /*t*/) {},
|
||||
},
|
||||
value);
|
||||
[this](Flatbuffers::distance /*d*/) {}},
|
||||
value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user