mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Update CommunicationRouter.cpp
This commit is contained in:
@@ -137,14 +137,11 @@ std::pair<std::vector<uint8_t>, std::vector<Orientation>> CommunicationRouter::g
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < MAX_WIRED_CONNECTIONS; i++) {
|
// if (const auto id = connected_module_ids[0]; 0 == id) {
|
||||||
const auto id = connected_module_ids[i];
|
// connected_module_orientations[0] = Orientation_Deg0;
|
||||||
// if (const auto id = connected_module_ids[i]; 0 == id) {
|
// } else {
|
||||||
// connected_module_orientations[i] = Orientation_Deg0;
|
connected_module_orientations[0] = OrientationDetection::get_orientation(0);
|
||||||
// } else {
|
// }
|
||||||
connected_module_orientations[i] = OrientationDetection::get_orientation(id);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
return { connected_module_ids, connected_module_orientations };
|
return { connected_module_ids, connected_module_orientations };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user