Sungwoo Kim
/
HydraulicControlBoard_Rainbow_v1_2_copy
2011
Diff: CAN/function_CAN.cpp
- Revision:
- 35:34ce7b0347b8
- Parent:
- 33:91b17819ec30
- Child:
- 36:a46e63505ed8
diff -r bb2ca2fc2a8e -r 34ce7b0347b8 CAN/function_CAN.cpp --- a/CAN/function_CAN.cpp Tue Nov 19 13:13:28 2019 +0000 +++ b/CAN/function_CAN.cpp Wed Nov 20 12:55:18 2019 +0000 @@ -685,7 +685,7 @@ torq.ref = (double)temp_presdiff; } else if(address==CID_RX_REF_VOUT) { int16_t temp_PWM = (int16_t) (msg.data[0] | msg.data[1] << 8); - Vout.ref = (double)temp_PWM; + Vout.ref = (double)temp_PWM; } else if(address==CID_RX_REF_VALVE_POSITION) { int16_t temp_valve_pos = (int16_t) (msg.data[0] | msg.data[1] << 8); valve_pos.ref = (double)temp_valve_pos;