From 7559ea0ce9449cf34829c0810459bed3b33ead48 Mon Sep 17 00:00:00 2001 From: zhoups <1013700083@qq.com> Date: Wed, 25 Aug 2021 16:36:30 +0800 Subject: [PATCH] fixed current feedback bug in version 1 --- src/protocol_v1/agilex_msg_parser_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_v1/agilex_msg_parser_v1.c b/src/protocol_v1/agilex_msg_parser_v1.c index 24abdcd..e05c000 100644 --- a/src/protocol_v1/agilex_msg_parser_v1.c +++ b/src/protocol_v1/agilex_msg_parser_v1.c @@ -79,7 +79,7 @@ bool DecodeCanFrameV1(const struct can_frame *rx_frame, AgxMessage *msg) { rx_frame->can_id - CAN_MSG_ACTUATOR1_STATE_ID; msg->body.v1_actuator_state_msg.current = ((((uint16_t)rx_frame->data[0]) << 8) | (uint16_t)rx_frame->data[1]) / - 0.1f; + 10.0f; msg->body.v1_actuator_state_msg.rpm = (int16_t)(( (((uint16_t)rx_frame->data[2]) << 8) | (uint16_t)rx_frame->data[3])); msg->body.v1_actuator_state_msg.driver_temp = rx_frame->data[4];