Modified Motor Driver Firmware to include Flash + Thermal

Dependencies:   FastPWM3 mbed-dev-STM-lean

Revision:
69:ba1c89835a54
Parent:
68:edfdbd0db876
Child:
70:2ea6c555a2cb
--- a/CAN/CAN_com.cpp	Tue Feb 09 16:33:00 2021 +0000
+++ b/CAN/CAN_com.cpp	Wed Feb 10 21:29:13 2021 +0000
@@ -25,7 +25,7 @@
 /// 3: [velocity[3-0], current[11-8]]
 /// 4: [current[7-0]]
 void pack_reply(CANMessage *msg, float p, float v, float t){
-    int p_int = float_to_uint(p, P_MIN, P_MAX, 16);
+    int p_int = float_to_uint(p, -100, 100, 16);
     int v_int = float_to_uint(v, V_MIN, V_MAX, 12);
     int t_int = float_to_uint(t, -T_MAX, T_MAX, 12);
     msg->data[0] = CAN_ID;