eeprom_test

Dependencies:   mbed FastPWM

Revision:
60:8855962234b0
Parent:
59:0ad14153b58f
Child:
62:851cf7b7aa7a
--- a/CAN/function_CAN.cpp	Tue Mar 10 04:50:04 2020 +0000
+++ b/CAN/function_CAN.cpp	Wed Apr 08 05:36:22 2020 +0000
@@ -719,8 +719,8 @@
         int16_t temp_vel = (int16_t) (msg.data[2] | msg.data[3] << 8);
         
         int16_t temp_torq = (int16_t) (msg.data[4] | msg.data[5] << 8);
-        pos.ref = (double)temp_pos * 4.0f;
-        vel.ref = (double)temp_vel * 100.0f;
+        pos.ref = (double)temp_pos * 10.0f;
+        vel.ref = (double)temp_vel * 256.0f;
         torq.ref = (double)temp_torq * 0.1f;
     } else if(address==CID_RX_REF_VALVE_POS) {
         int16_t temp_ref_valve_pos = (int16_t) (msg.data[0] | msg.data[1] << 8);