Modified Motor Driver Firmware to include Flash + Thermal

Dependencies:   FastPWM3 mbed-dev-STM-lean

Revision:
68:edfdbd0db876
Parent:
67:96a4052a1705
Child:
69:ba1c89835a54
diff -r 96a4052a1705 -r edfdbd0db876 CAN/CAN_com.cpp
--- a/CAN/CAN_com.cpp	Tue Feb 09 16:30:11 2021 +0000
+++ b/CAN/CAN_com.cpp	Tue Feb 09 16:33:00 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, -100, 100, 16);
+    int p_int = float_to_uint(p, P_MIN, P_MAX, 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;