mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
added time stamp to robot states
This commit is contained in:
@@ -182,11 +182,11 @@ bool DecodeCanFrameV2(const struct can_frame *rx_frame, AgxMessage *msg) {
|
||||
((uint16_t)(frame->driver_voltage.low_byte) |
|
||||
(uint16_t)(frame->driver_voltage.high_byte) << 8) *
|
||||
0.1;
|
||||
msg->body.actuator_ls_state_msg.driver_temperature =
|
||||
(int16_t)((uint16_t)(frame->driver_temperature.low_byte) |
|
||||
(uint16_t)(frame->driver_temperature.high_byte) << 8);
|
||||
msg->body.actuator_ls_state_msg.motor_temperature =
|
||||
frame->motor_temperature;
|
||||
msg->body.actuator_ls_state_msg.driver_temp =
|
||||
(int16_t)((uint16_t)(frame->driver_temp.low_byte) |
|
||||
(uint16_t)(frame->driver_temp.high_byte) << 8);
|
||||
msg->body.actuator_ls_state_msg.motor_temp =
|
||||
frame->motor_temp;
|
||||
msg->body.actuator_ls_state_msg.driver_state = frame->driver_state;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user