Velocity Closed Loop Dynamic error correction

Dependencies:   mbed QEI PID DmTftLibraryEx

Revision:
39:be7055a0e9a4
Parent:
23:b9d23a2f390e
--- a/SWPos/SWPos.h	Tue Apr 12 07:55:59 2022 +0000
+++ b/SWPos/SWPos.h	Fri Apr 15 07:01:02 2022 +0000
@@ -3,8 +3,8 @@
 struct in_sPosizionatoreSW {
     bool    b_AxisPowered;
     bool    b_ACPos_Homed;
-    int32_t     i32_Max_Speed;
-    int32_t     i32_ZeroSpeed;
+    float   f_Max_Speed;
+    float   f_ZeroSpeed;
 
     bool    b_JogMode;
     bool    b_JogFW;
@@ -32,25 +32,25 @@
 };
 
 struct out_sPosizionatoreSW {
-    int64_t   i64_StartPosition;
-    int64_t   i64_Distance;
+    int64_t i64_StartPosition;
+    int64_t i64_Distance;
 
-    bool   b_Accelerating;                   // LA:  bACPos_Accelerating
-    bool   b_MaxSpeedReached;
+    bool    b_Accelerating;                   // LA:  bACPos_Accelerating
+    bool    b_MaxSpeedReached;
     //
-    bool   b_Decelerating;                   //      bACPos_Decelerating
-    bool   b_InPosition;
-    bool   b_InToleranceFW;
-    bool   b_InToleranceBW;
+    bool    b_Decelerating;                   //      bACPos_Decelerating
+    bool    b_InPosition;
+    bool    b_InToleranceFW;
+    bool    b_InToleranceBW;
 
-    int32_t    i32_ATVSpeed;
-    bool   b_ATVDirectionFW;
-    bool   b_ATVDirectionBW;
+    float   f_ATVSpeed;
+    bool    b_ATVDirectionFW;
+    bool    b_ATVDirectionBW;
     //
-    bool   b_STW1_On;
-    bool   b_STW1_NoCStop;
-    bool   b_STW1_NoQStop;
-    bool   b_STW1_Enable;
+    bool    b_STW1_On;
+    bool    b_STW1_NoCStop;
+    bool    b_STW1_NoQStop;
+    bool    b_STW1_Enable;
 
     // LA:  Disposizioni transitorie e finali
     //