Forigo / Mbed 2 deprecated FORIGO_Modula_V7_3_VdcStep_Modula2021

Dependencies:   mbed X_NUCLEO_IHM03A1_for

Revision:
24:2b5e749e26b2
Parent:
23:ccd253b36733
Child:
25:4461bc76aaab
--- a/main.cpp	Sat May 04 15:24:56 2019 +0000
+++ b/main.cpp	Wed May 08 05:44:20 2019 +0000
@@ -573,9 +573,15 @@
                 double lowLim=-50.0f;
                 double higLim = 50.0f;
                 double divide= 100.0f;
-                // double lowLim=-500.0f; pneumatico Alessandria
-                // double higLim= 130.0f; pneumatico Alessandria
-                // double divide= 25.0f; pneumatico Alessandria
+                if (drumSelect==false){
+                    lowLim=-50.0f;
+                    higLim = 50.0f;
+                    divide= 100.0f;
+                }else{
+                    lowLim=-500.0f; //pneumatico Alessandria
+                    higLim= 130.0f; //pneumatico Alessandria
+                    divide= 25.0f;  //pneumatico Alessandria
+                }
                 if (pickNumber <= 5) {
                     lowLim=-500.0f;
                     higLim= 500.0f;
@@ -583,8 +589,11 @@
                 } else {
                     lowLim=-10.0f;
                     higLim= 130.0f;
-                    // divide= 20.0f; pneumatico Alessandria
-                    divide= 100.0f;
+                    if (drumSelect==false){
+                        divide= 100.0f;
+                    }else{
+                        divide= 20.0f; //pneumatico Alessandria
+                    }
                 }
                 if (posError>higLim) {
                     posError=higLim;
@@ -1185,9 +1194,9 @@
                     seedSensorEnable=false;
                 }
                 if ((flags&0x08)==0x08) {
-                    stendiNylonEnable=true;
+                    drumSelect=true;     // usare per selezione del tamburo =0 meccanico =1 PNEUMATICO
                 } else {
-                    stendiNylonEnable=false;
+                    drumSelect=false;
                 }
                 if ((flags&0x10)==0x10) {
                     canDataCheckEnable=true;