Macros
mcconf_sten.h File Reference

Go to the source code of this file.

Macros

#define MCPWM_CURRENT_MAX   35.0
 
#define MCPWM_CURRENT_MIN   -30.0
 
#define MCPWM_MAX_ABS_CURRENT   100.0
 
#define MCPWM_SLOW_ABS_OVERCURRENT   1
 
#define MCPWM_IN_CURRENT_MAX   25.0
 
#define MCPWM_IN_CURRENT_MIN   -20.0
 
#define MCPWM_RPM_MAX   80000.0
 
#define MCPWM_RPM_MIN   -80000.0
 
#define MCPWM_MIN_VOLTAGE   20.0
 
#define MCPWM_MAX_VOLTAGE   50.0
 
#define MCPWM_CURRENT_STARTUP_BOOST   0.02
 
#define MCPWM_RPM_LIMIT_NEG_TORQUE   0
 
#define MCPWM_CURR_MAX_RPM_FBRAKE   1500
 
#define MCPWM_SENSOR_MODE   SENSOR_MODE_SENSORLESS
 
#define MCPWM_MIN_RPM   250
 
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM   500.0
 
#define MCPWM_CYCLE_INT_LIMIT   80.0
 
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC   0.8
 
#define MCPWM_BEMF_INPUT_COUPLING_K   750.0
 
#define MCPWM_PID_KP   0.0001
 
#define MCPWM_PID_KI   0.002
 
#define MCPWM_PID_KD   0.0
 
#define MCPWM_PID_MIN_RPM   1200.0
 
#define MCPWM_P_PID_KP   0.0001
 
#define MCPWM_P_PID_KI   0.002
 
#define MCPWM_P_PID_KD   0.0
 
#define MCPWM_CURRENT_CONTROL_GAIN   0.0046
 
#define MCPWM_CURRENT_CONTROL_MIN   0.05
 

Macro Definition Documentation

#define MCPWM_BEMF_INPUT_COUPLING_K   750.0
#define MCPWM_CURR_MAX_RPM_FBRAKE   1500
#define MCPWM_CURRENT_CONTROL_GAIN   0.0046
#define MCPWM_CURRENT_CONTROL_MIN   0.05
#define MCPWM_CURRENT_MAX   35.0
#define MCPWM_CURRENT_MIN   -30.0
#define MCPWM_CURRENT_STARTUP_BOOST   0.02
#define MCPWM_CYCLE_INT_LIMIT   80.0
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC   0.8
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM   500.0
#define MCPWM_IN_CURRENT_MAX   25.0
#define MCPWM_IN_CURRENT_MIN   -20.0
#define MCPWM_MAX_ABS_CURRENT   100.0
#define MCPWM_MAX_VOLTAGE   50.0
#define MCPWM_MIN_RPM   250
#define MCPWM_MIN_VOLTAGE   20.0
#define MCPWM_P_PID_KD   0.0
#define MCPWM_P_PID_KI   0.002
#define MCPWM_P_PID_KP   0.0001
#define MCPWM_PID_KD   0.0
#define MCPWM_PID_KI   0.002
#define MCPWM_PID_KP   0.0001
#define MCPWM_PID_MIN_RPM   1200.0
#define MCPWM_RPM_LIMIT_NEG_TORQUE   0
#define MCPWM_RPM_MAX   80000.0
#define MCPWM_RPM_MIN   -80000.0
#define MCPWM_SENSOR_MODE   SENSOR_MODE_SENSORLESS
#define MCPWM_SLOW_ABS_OVERCURRENT   1