asdgas
Dependencies: mbed Eigen FastPWM
Diff: CAN/function_CAN.cpp
- Revision:
- 65:549e0426cd91
- Parent:
- 63:376a20d2fbfd
diff -r 368bcd2a230a -r 549e0426cd91 CAN/function_CAN.cpp --- a/CAN/function_CAN.cpp Tue May 12 06:24:31 2020 +0000 +++ b/CAN/function_CAN.cpp Mon May 18 00:39:31 2020 +0000 @@ -720,7 +720,7 @@ vel.ref = (double)temp_vel * 256.0f; } - torq.ref = (double)temp_torq * 0.1f; + torq.ref = (double)temp_torq * 0.1f / (float)(TORQUE_SENSOR_PULSE_PER_TORQUE); } else if(address==CID_RX_REF_VALVE_POS) { int16_t temp_ref_valve_pos = (int16_t) (msg.data[0] | msg.data[1] << 8);