|
@@ -1,12 +1,12 @@
|
|
|
-/* auto gen 2023/9/2 14:57:59*/
|
|
|
|
|
|
|
+/* auto gen 2023/9/6 15:15:17*/
|
|
|
#ifndef _AUTOGEN_CONFIG_H__
|
|
#ifndef _AUTOGEN_CONFIG_H__
|
|
|
#define _AUTOGEN_CONFIG_H__
|
|
#define _AUTOGEN_CONFIG_H__
|
|
|
|
|
|
|
|
#define CONFIG_Version 1
|
|
#define CONFIG_Version 1
|
|
|
-#define CONFIG_Motor_Poles 5
|
|
|
|
|
-#define CONFIG_Motor_Ld 4.5E-05f
|
|
|
|
|
-#define CONFIG_Motor_Lq 9.6E-05f
|
|
|
|
|
-#define CONFIG_Motor_Rs 0.008f
|
|
|
|
|
|
|
+#define CONFIG_Motor_Poles 4
|
|
|
|
|
+#define CONFIG_Motor_Ld 3.2E-05f
|
|
|
|
|
+#define CONFIG_Motor_Lq 7.3E-05f
|
|
|
|
|
+#define CONFIG_Motor_Rs 0.009f
|
|
|
#define CONFIG_Motor_Flux 0.019f
|
|
#define CONFIG_Motor_Flux 0.019f
|
|
|
#define CONFIG_Motor_PLLBand 200
|
|
#define CONFIG_Motor_PLLBand 200
|
|
|
#define CONFIG_Motor_EpmPLL 400
|
|
#define CONFIG_Motor_EpmPLL 400
|
|
@@ -16,7 +16,7 @@
|
|
|
#define CONFIG_Motor_GearRatio 6.25f
|
|
#define CONFIG_Motor_GearRatio 6.25f
|
|
|
#define CONFIG_Motor_MaxFwDCurr 100
|
|
#define CONFIG_Motor_MaxFwDCurr 100
|
|
|
#define CONFIG_Motor_MaxTorque 200
|
|
#define CONFIG_Motor_MaxTorque 200
|
|
|
-#define CONFIG_Motor_EncOffset 0
|
|
|
|
|
|
|
+#define CONFIG_Motor_EncOffset -103
|
|
|
#define CONFIG_Foc_MaxDCVol 110
|
|
#define CONFIG_Foc_MaxDCVol 110
|
|
|
#define CONFIG_Foc_MinDCVol 70
|
|
#define CONFIG_Foc_MinDCVol 70
|
|
|
#define CONFIG_Foc_MaxPhaseCurr 300
|
|
#define CONFIG_Foc_MaxPhaseCurr 300
|
|
@@ -33,7 +33,7 @@
|
|
|
#define CONFIG_Foc_ThroEndVol 4.15f
|
|
#define CONFIG_Foc_ThroEndVol 4.15f
|
|
|
#define CONFIG_Foc_ThroMinVol 0.4f
|
|
#define CONFIG_Foc_ThroMinVol 0.4f
|
|
|
#define CONFIG_Foc_ThroMaxVol 4.6f
|
|
#define CONFIG_Foc_ThroMaxVol 4.6f
|
|
|
-#define CONFIG_Foc_CurrCtrlBandWith 200
|
|
|
|
|
|
|
+#define CONFIG_Foc_CurrCtrlBandWith 800
|
|
|
#define CONFIG_Foc_ThroDecTime 10
|
|
#define CONFIG_Foc_ThroDecTime 10
|
|
|
#define CONFIG_Foc_PID_VelLim_Kp 0.5f
|
|
#define CONFIG_Foc_PID_VelLim_Kp 0.5f
|
|
|
#define CONFIG_Foc_PID_VelLim_Ki 2.5f
|
|
#define CONFIG_Foc_PID_VelLim_Ki 2.5f
|
|
@@ -211,4 +211,8 @@
|
|
|
#define CONFIG_EnergyRecovery_Level8_Time 200
|
|
#define CONFIG_EnergyRecovery_Level8_Time 200
|
|
|
#define CONFIG_EnergyRecovery_Level9_Torque 40
|
|
#define CONFIG_EnergyRecovery_Level9_Torque 40
|
|
|
#define CONFIG_EnergyRecovery_Level9_Time 200
|
|
#define CONFIG_EnergyRecovery_Level9_Time 200
|
|
|
|
|
+#define CONFIG_CrossZero_Low 1
|
|
|
|
|
+#define CONFIG_CrossZero_High 7
|
|
|
|
|
+#define CONFIG_CrossZero_MinStep 0.03f
|
|
|
|
|
+#define CONFIG_CrossZero_NorStep 5
|
|
|
#endif /* _AUTOGEN_CONFIG_H__ */
|
|
#endif /* _AUTOGEN_CONFIG_H__ */
|