Forigo / Mbed 2 deprecated FORIGO_Modula_V7_3_VdcStep_DICEMBRE2020

Dependencies:   mbed X_NUCLEO_IHM03A1_for

Revision:
18:7c978f69cc51
Parent:
17:9629eb019892
Child:
28:0534c86365ec
--- a/powerstep.hpp	Fri Apr 05 07:52:39 2019 +0000
+++ b/powerstep.hpp	Fri Apr 12 12:20:05 2019 +0000
@@ -30,10 +30,17 @@
   POWERSTEP01_WD_EN_DISABLE, // External clock watchdog, enum powerstep01_WdEn_t  
   POWERSTEP01_TBLANK_375ns, // Duration of the blanking time via enum powerstep01_TBlank_t 375
   POWERSTEP01_TDT_125ns, // Duration of the dead time via enum powerstep01_Tdt_t 125
-  93.60, // KVAL Hold torque in mV, range from 0.0mV to 0.996 mV 
-  273.00, // KVAL RUN torque in mV, range from 0.0mV to 0.996 mV 
-  273.00, // KVAL ACC torque in mV, range from 0.0mV to 0.996 mV 
-  273.00, // KVAL DEC torque in mV, range from 0.0mV to 0.996 mV 
+  #if defined(provaStepper)
+      93.60, // KVAL Hold torque in mV, range from 0.0mV to 0.996 mV 
+      233.00, // KVAL RUN torque in mV, range from 0.0mV to 0.996 mV 
+      233.00, // KVAL ACC torque in mV, range from 0.0mV to 0.996 mV 
+      233.00, // KVAL DEC torque in mV, range from 0.0mV to 0.996 mV 
+  #else
+      93.60, // KVAL Hold torque in mV, range from 0.0mV to 0.996 mV 
+      273.00, // KVAL RUN torque in mV, range from 0.0mV to 0.996 mV 
+      273.00, // KVAL ACC torque in mV, range from 0.0mV to 0.996 mV 
+      273.00, // KVAL DEC torque in mV, range from 0.0mV to 0.996 mV 
+  #endif
   POWERSTEP01_TOFF_FAST_28us, //Maximum fast decay time , enum powerstep01_ToffFast_t 8
   POWERSTEP01_FAST_STEP_28us, //Maximum fall step time , enum powerstep01_FastStep_t 12
   3.0, // Minimum on-time in us, range 0.5us to 64us 3.0
@@ -45,7 +52,7 @@
   POWERSTEP01_CONFIG_OC_SD_DISABLE, // Over current shutwdown enabling, enum powerstep01_ConfigOcSd_t
   POWERSTEP01_CONFIG_UVLOVAL_LOW, // UVLO Threshold via powerstep01_ConfigUvLoVal_t
   POWERSTEP01_CONFIG_VCCVAL_7_5V, // VCC Val, enum powerstep01_ConfigVccVal_t
-  POWERSTEP01_CONFIG_TSW_048us, // Switching period, enum powerstep01_ConfigTsw_t 48
+  POWERSTEP01_CONFIG_TSW_124us, // Switching period, enum powerstep01_ConfigTsw_t 048
   POWERSTEP01_CONFIG_PRED_ENABLE // Predictive current enabling , enum powerstep01_ConfigPredEn_t 
 };
 /* Motor Control Component. */