/* auto gen 2023/9/6 15:15:17*/
#ifndef _AUTOGEN_CONFIG_H__
#define _AUTOGEN_CONFIG_H__

#define CONFIG_Version 1
#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_PLLBand  200
#define CONFIG_Motor_EpmPLL  400
#define CONFIG_Motor_PosPLL  500
#define CONFIG_Motor_VehicleW  190
#define CONFIG_Motor_WheelC  145
#define CONFIG_Motor_GearRatio  6.25f
#define CONFIG_Motor_MaxFwDCurr  100
#define CONFIG_Motor_MaxTorque  200
#define CONFIG_Motor_EncOffset  -103
#define CONFIG_Foc_MaxDCVol  110
#define CONFIG_Foc_MinDCVol  70
#define CONFIG_Foc_MaxPhaseCurr  300
#define CONFIG_Foc_MaxRPM  9000
#define CONFIG_Foc_MaxEPMRPM  300
#define CONFIG_Foc_MaxEPMTorque  100
#define CONFIG_Foc_MaxEPMRPMBk  170
#define CONFIG_Foc_MaxEPMTorqueBk  80
#define CONFIG_Foc_MaxTorque  200
#define CONFIG_Foc_MaxEbrkTorque  40
#define CONFIG_Foc_MaxIDC  100
#define CONFIG_Foc_MaxAutoHoldTorque  100
#define CONFIG_Foc_ThroStartVol  0.85f
#define CONFIG_Foc_ThroEndVol  4.15f
#define CONFIG_Foc_ThroMinVol  0.4f
#define CONFIG_Foc_ThroMaxVol  4.6f
#define CONFIG_Foc_CurrCtrlBandWith  800
#define CONFIG_Foc_ThroDecTime  10
#define CONFIG_Foc_PID_VelLim_Kp 0.5f
#define CONFIG_Foc_PID_VelLim_Ki 2.5f
#define CONFIG_Foc_PID_VelLim_Kd 0
#define CONFIG_Foc_PID_VelCtrl_Kp 0.1f
#define CONFIG_Foc_PID_VelCtrl_Ki 3.5f
#define CONFIG_Foc_PID_VelCtrl_Kd 0
#define CONFIG_Foc_PID_Autohold_Kp 0.01f
#define CONFIG_Foc_PID_Autohold_Ki 0.2f
#define CONFIG_Foc_PID_Autohold_Kd 0
#define CONFIG_Foc_PID_IDCLim_Kp 5
#define CONFIG_Foc_PID_IDCLim_Ki 15
#define CONFIG_Foc_PID_IDCLim_Kd 0
#define CONFIG_Settings_AutoHold  1
#define CONFIG_Settings_BrkShutPower  1
#define CONFIG_Settings_TcsEnable  0
#define CONFIG_Gear0_MaxSpeed 1000
#define CONFIG_Gear0_MaxTorque 100
#define CONFIG_Gear0_MaxIdc 30
#define CONFIG_Gear0_ZeroAccl 500
#define CONFIG_Gear0_NormalAccl 100
#define CONFIG_Gear0_Torque0 100
#define CONFIG_Gear0_Torque1 100
#define CONFIG_Gear0_Torque2 100
#define CONFIG_Gear0_Torque3 100
#define CONFIG_Gear0_Torque4 100
#define CONFIG_Gear0_Torque5 100
#define CONFIG_Gear0_Torque6 100
#define CONFIG_Gear0_Torque7 100
#define CONFIG_Gear0_Torque8 0
#define CONFIG_Gear0_Torque9 0
#define CONFIG_Gear1_MaxSpeed 1000
#define CONFIG_Gear1_MaxTorque 100
#define CONFIG_Gear1_MaxIdc 30
#define CONFIG_Gear1_ZeroAccl 500
#define CONFIG_Gear1_NormalAccl 100
#define CONFIG_Gear1_Torque0 100
#define CONFIG_Gear1_Torque1 100
#define CONFIG_Gear1_Torque2 100
#define CONFIG_Gear1_Torque3 100
#define CONFIG_Gear1_Torque4 100
#define CONFIG_Gear1_Torque5 100
#define CONFIG_Gear1_Torque6 100
#define CONFIG_Gear1_Torque7 100
#define CONFIG_Gear1_Torque8 0
#define CONFIG_Gear1_Torque9 0
#define CONFIG_Gear2_MaxSpeed 1000
#define CONFIG_Gear2_MaxTorque 100
#define CONFIG_Gear2_MaxIdc 30
#define CONFIG_Gear2_ZeroAccl 500
#define CONFIG_Gear2_NormalAccl 100
#define CONFIG_Gear2_Torque0 100
#define CONFIG_Gear2_Torque1 100
#define CONFIG_Gear2_Torque2 100
#define CONFIG_Gear2_Torque3 100
#define CONFIG_Gear2_Torque4 100
#define CONFIG_Gear2_Torque5 100
#define CONFIG_Gear2_Torque6 100
#define CONFIG_Gear2_Torque7 100
#define CONFIG_Gear2_Torque8 0
#define CONFIG_Gear2_Torque9 0
#define CONFIG_Gear3_MaxSpeed 1000
#define CONFIG_Gear3_MaxTorque 100
#define CONFIG_Gear3_MaxIdc 30
#define CONFIG_Gear3_ZeroAccl 500
#define CONFIG_Gear3_NormalAccl 100
#define CONFIG_Gear3_Torque0 100
#define CONFIG_Gear3_Torque1 100
#define CONFIG_Gear3_Torque2 100
#define CONFIG_Gear3_Torque3 100
#define CONFIG_Gear3_Torque4 100
#define CONFIG_Gear3_Torque5 100
#define CONFIG_Gear3_Torque6 100
#define CONFIG_Gear3_Torque7 100
#define CONFIG_Gear3_Torque8 0
#define CONFIG_Gear3_Torque9 0
#define CONFIG_GearLow0_MaxSpeed 1000
#define CONFIG_GearLow0_MaxTorque 100
#define CONFIG_GearLow0_MaxIdc 30
#define CONFIG_GearLow0_ZeroAccl 500
#define CONFIG_GearLow0_NormalAccl 100
#define CONFIG_GearLow0_Torque0 100
#define CONFIG_GearLow0_Torque1 100
#define CONFIG_GearLow0_Torque2 100
#define CONFIG_GearLow0_Torque3 100
#define CONFIG_GearLow0_Torque4 100
#define CONFIG_GearLow0_Torque5 100
#define CONFIG_GearLow0_Torque6 100
#define CONFIG_GearLow0_Torque7 100
#define CONFIG_GearLow0_Torque8 0
#define CONFIG_GearLow0_Torque9 0
#define CONFIG_GearLow1_MaxSpeed 1000
#define CONFIG_GearLow1_MaxTorque 100
#define CONFIG_GearLow1_MaxIdc 30
#define CONFIG_GearLow1_ZeroAccl 500
#define CONFIG_GearLow1_NormalAccl 100
#define CONFIG_GearLow1_Torque0 100
#define CONFIG_GearLow1_Torque1 100
#define CONFIG_GearLow1_Torque2 100
#define CONFIG_GearLow1_Torque3 100
#define CONFIG_GearLow1_Torque4 100
#define CONFIG_GearLow1_Torque5 100
#define CONFIG_GearLow1_Torque6 100
#define CONFIG_GearLow1_Torque7 100
#define CONFIG_GearLow1_Torque8 0
#define CONFIG_GearLow1_Torque9 0
#define CONFIG_GearLow2_MaxSpeed 1000
#define CONFIG_GearLow2_MaxTorque 100
#define CONFIG_GearLow2_MaxIdc 30
#define CONFIG_GearLow2_ZeroAccl 500
#define CONFIG_GearLow2_NormalAccl 100
#define CONFIG_GearLow2_Torque0 100
#define CONFIG_GearLow2_Torque1 100
#define CONFIG_GearLow2_Torque2 100
#define CONFIG_GearLow2_Torque3 100
#define CONFIG_GearLow2_Torque4 100
#define CONFIG_GearLow2_Torque5 100
#define CONFIG_GearLow2_Torque6 100
#define CONFIG_GearLow2_Torque7 100
#define CONFIG_GearLow2_Torque8 0
#define CONFIG_GearLow2_Torque9 0
#define CONFIG_GearLow3_MaxSpeed 1000
#define CONFIG_GearLow3_MaxTorque 100
#define CONFIG_GearLow3_MaxIdc 30
#define CONFIG_GearLow3_ZeroAccl 500
#define CONFIG_GearLow3_NormalAccl 100
#define CONFIG_GearLow3_Torque0 100
#define CONFIG_GearLow3_Torque1 100
#define CONFIG_GearLow3_Torque2 100
#define CONFIG_GearLow3_Torque3 100
#define CONFIG_GearLow3_Torque4 100
#define CONFIG_GearLow3_Torque5 100
#define CONFIG_GearLow3_Torque6 100
#define CONFIG_GearLow3_Torque7 100
#define CONFIG_GearLow3_Torque8 0
#define CONFIG_GearLow3_Torque9 0
#define CONFIG_Protect_Motor_Level0_Entry 130
#define CONFIG_Protect_Motor_Level0_Exit 120
#define CONFIG_Protect_Motor_Level0_Value 0
#define CONFIG_Protect_Motor_Level1_Entry 120
#define CONFIG_Protect_Motor_Level1_Exit 110
#define CONFIG_Protect_Motor_Level1_Value 34
#define CONFIG_Protect_Motor_Level2_Entry 110
#define CONFIG_Protect_Motor_Level2_Exit 100
#define CONFIG_Protect_Motor_Level2_Value 66
#define CONFIG_Protect_MosFet_Level0_Entry 100
#define CONFIG_Protect_MosFet_Level0_Exit 95
#define CONFIG_Protect_MosFet_Level0_Value 0
#define CONFIG_Protect_MosFet_Level1_Entry 95
#define CONFIG_Protect_MosFet_Level1_Exit 90
#define CONFIG_Protect_MosFet_Level1_Value 34
#define CONFIG_Protect_MosFet_Level2_Entry 90
#define CONFIG_Protect_MosFet_Level2_Exit 80
#define CONFIG_Protect_MosFet_Level2_Value 66
#define CONFIG_Protect_Voltage_Level0_Entry 60
#define CONFIG_Protect_Voltage_Level0_Exit 70
#define CONFIG_Protect_Voltage_Level0_Value 0
#define CONFIG_EnergyRecovery_Level0_Torque 0
#define CONFIG_EnergyRecovery_Level0_Time 1000
#define CONFIG_EnergyRecovery_Level1_Torque 10
#define CONFIG_EnergyRecovery_Level1_Time 500
#define CONFIG_EnergyRecovery_Level2_Torque 15
#define CONFIG_EnergyRecovery_Level2_Time 400
#define CONFIG_EnergyRecovery_Level3_Torque 20
#define CONFIG_EnergyRecovery_Level3_Time 300
#define CONFIG_EnergyRecovery_Level4_Torque 35
#define CONFIG_EnergyRecovery_Level4_Time 200
#define CONFIG_EnergyRecovery_Level5_Torque 40
#define CONFIG_EnergyRecovery_Level5_Time 200
#define CONFIG_EnergyRecovery_Level6_Torque 40
#define CONFIG_EnergyRecovery_Level6_Time 200
#define CONFIG_EnergyRecovery_Level7_Torque 40
#define CONFIG_EnergyRecovery_Level7_Time 200
#define CONFIG_EnergyRecovery_Level8_Torque 40
#define CONFIG_EnergyRecovery_Level8_Time 200
#define CONFIG_EnergyRecovery_Level9_Torque 40
#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__ */ 
