mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
saved work on v1 protocol parser
This commit is contained in:
@@ -50,6 +50,7 @@ typedef struct {
|
||||
bool clear_all_error;
|
||||
float linear;
|
||||
float angular;
|
||||
float lateral;
|
||||
} MotionCommandMessageV1;
|
||||
|
||||
typedef struct {
|
||||
@@ -133,7 +134,8 @@ typedef struct {
|
||||
uint8_t motor_id;
|
||||
float current;
|
||||
int16_t rpm;
|
||||
float temperature;
|
||||
float driver_temp;
|
||||
float motor_temp;
|
||||
} ActuatorStateMessageV1;
|
||||
|
||||
/***************** Sensor messages ******************/
|
||||
|
||||
@@ -97,6 +97,12 @@ class ScoutBase : public AgilexBase<Parser>, public ScoutInterface {
|
||||
.actuator_ls_state[status_msg.body.actuator_ls_state_msg.motor_id] =
|
||||
status_msg.body.actuator_ls_state_msg;
|
||||
break;
|
||||
}
|
||||
case AgxMsgActuatorStateV1: {
|
||||
// std::cout << "actuator v1 feedback received" << std::endl;
|
||||
state.actuator_state[status_msg.body.v1_actuator_state_msg.motor_id] =
|
||||
status_msg.body.v1_actuator_state_msg;
|
||||
break;
|
||||
}
|
||||
// case AgxMsgRcState: {
|
||||
// state.rc_state = status_msg.body.rc_state_msg;
|
||||
|
||||
Reference in New Issue
Block a user