read more motor data

This commit is contained in:
wangzheqie
2021-04-23 15:07:31 +08:00
parent 74d2c7e894
commit 7520f1fd32
3 changed files with 15 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ typedef struct {
int8_t var_a;
} RcStateMessage;
// 0x251 - 0x254
// 0x251 - 0x258
typedef struct {
uint8_t motor_id;
int16_t rpm;

View File

@@ -24,10 +24,12 @@ struct RangerState {
MotionStateMessage motion_state;
LightStateMessage light_state;
RcStateMessage rc_state;
ActuatorHSStateMessage actuator_hs_state[4];
ActuatorLSStateMessage actuator_ls_state[4];
ActuatorHSStateMessage actuator_hs_state[8];
ActuatorLSStateMessage actuator_ls_state[8];
// sensor data
OdometryMessage odometry;