Original Version of STM Board

Dependencies:   FastPWM mbed

Revision:
30:8d561f16383b
Parent:
29:69f3f5445d6d
Child:
32:4b8c0fedaf2c
diff -r 69f3f5445d6d -r 8d561f16383b CAN/function_CAN.h
--- a/CAN/function_CAN.h	Wed Oct 02 04:41:59 2019 +0000
+++ b/CAN/function_CAN.h	Fri Oct 04 11:58:18 2019 +0000
@@ -184,27 +184,27 @@
 class State 
 {
     public:
-        double sen;
-        double ref;
-        double ref_old;
-        double ref_diff;
-        double ref_home_pos;
-        double err;
-        double err_int;
-        double err_old;
-        double err_diff;
-        double err_sum;
+        float sen;
+        float ref;
+        float ref_old;
+        float ref_diff;
+        float ref_home_pos;
+        float err;
+        float err_int;
+        float err_old;
+        float err_diff;
+        float err_sum;
     public:
         State(){
-            sen = 0.0;
-            ref = 0.0;
-            ref_old = 0.0;
-            ref_diff = 0.0;
-            ref_home_pos = 0.0;
-            err = 0.0;
-            err_int = 0.0;
-            err_old = 0.0;
-            err_diff = 0.0;
+            sen = 0.0f;
+            ref = 0.0f;
+            ref_old = 0.0f;
+            ref_diff = 0.0f;
+            ref_home_pos = 0.0f;
+            err = 0.0f;
+            err_int = 0.0f;
+            err_old = 0.0f;
+            err_diff = 0.0f;
         }
 };
 
@@ -231,3 +231,4 @@
 
 #endif
 
+