🚚 Renames controller data
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user