🚚 Renames controller data

This commit is contained in:
Rune Harlyk
2026-01-03 18:00:13 +01:00
committed by nikguin04
parent 3a393375fd
commit 7cb5c06524
9 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ DEFINE_MESSAGE_TRAITS(KinematicData, kinematic_data)
DEFINE_MESSAGE_TRAITS(IMUCalibrateData, imu_calibrate)
DEFINE_MESSAGE_TRAITS(I2CScanData, i2c_scan)
DEFINE_MESSAGE_TRAITS(PeripheralSettingsData, peripheral_settings)
DEFINE_MESSAGE_TRAITS(HumanInputData, human_input_data)
DEFINE_MESSAGE_TRAITS(ControllerData, controller_data)
DEFINE_MESSAGE_TRAITS(WalkGaitData, walk_gait)
DEFINE_MESSAGE_TRAITS(IMUCalibrateExecute, imu_calibrate_execute)
DEFINE_MESSAGE_TRAITS(I2CScanDataRequest, i2c_scan_data_request)
+1 -1
View File
@@ -5,7 +5,7 @@
struct CommandMsg {
float lx, ly, rx, ry, h, s, s1;
void fromProto(const socket_message_HumanInputData& data) {
void fromProto(const socket_message_ControllerData& data) {
lx = data.has_left ? data.left.x : 0;
ly = data.has_left ? data.left.y : 0;
rx = data.has_right ? data.right.x : 0;
+1 -1
View File
@@ -23,7 +23,7 @@ class MotionService {
void handleAngles(const socket_message_AnglesData& data);
void handleInput(const socket_message_HumanInputData& data);
void handleInput(const socket_message_ControllerData& data);
void handleWalkGait(const socket_message_WalkGaitData& data);