mirror of https://github.com/rusefi/bldc.git
Motor parameter updates
This commit is contained in:
parent
bb2c313893
commit
30573073fb
|
@ -41,9 +41,14 @@
|
||||||
#define MCPWM_IS_SENSORLESS 1 // Use sensorless commutation
|
#define MCPWM_IS_SENSORLESS 1 // Use sensorless commutation
|
||||||
#define MCPWM_MIN_RPM 200 // Auto-commutate below this RPM
|
#define MCPWM_MIN_RPM 200 // Auto-commutate below this RPM
|
||||||
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM 800.0 // Minimum RPM to calculate the BEMF coupling from
|
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM 800.0 // Minimum RPM to calculate the BEMF coupling from
|
||||||
#define MCPWM_CYCLE_INT_LIMIT 50.0 // Flux integrator limit 0 ERPM
|
// D-Connected version TODO!
|
||||||
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC 0.5 // Flux integrator limit percentage at MCPWM_CYCLE_INT_START_RPM_BR ERPM
|
//#define MCPWM_CYCLE_INT_LIMIT 50.0 // Flux integrator limit 0 ERPM
|
||||||
#define MCPWM_BEMF_INPUT_COUPLING_K 300.0 // Input voltage to bemf coupling constant
|
//#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC 0.5 // Flux integrator limit percentage at MCPWM_CYCLE_INT_START_RPM_BR ERPM
|
||||||
|
//#define MCPWM_BEMF_INPUT_COUPLING_K 300.0 // Input voltage to bemf coupling constant
|
||||||
|
// Y-connected version
|
||||||
|
#define MCPWM_CYCLE_INT_LIMIT 132.0 // Flux integrator limit 0 ERPM
|
||||||
|
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC 0.8 // Flux integrator limit percentage at MCPWM_CYCLE_INT_START_RPM_BR ERPM
|
||||||
|
#define MCPWM_BEMF_INPUT_COUPLING_K 600.0 // Input voltage to bemf coupling constant
|
||||||
|
|
||||||
// Speed PID parameters
|
// Speed PID parameters
|
||||||
#define MCPWM_PID_KP 0.0001 // Proportional gain
|
#define MCPWM_PID_KP 0.0001 // Proportional gain
|
||||||
|
|
|
@ -36,8 +36,7 @@
|
||||||
#define MCPWM_IN_CURRENT_MIN -25.0 // Input current limit in Amperes (Lower)
|
#define MCPWM_IN_CURRENT_MIN -25.0 // Input current limit in Amperes (Lower)
|
||||||
#define MCPWM_MAX_ABS_CURRENT 110.0 // The maximum absolute current above which a fault is generated
|
#define MCPWM_MAX_ABS_CURRENT 110.0 // The maximum absolute current above which a fault is generated
|
||||||
#define MCPWM_SLOW_ABS_OVERCURRENT 1 // Use the filtered (and hence slower) current for the overcurrent fault detection
|
#define MCPWM_SLOW_ABS_OVERCURRENT 1 // Use the filtered (and hence slower) current for the overcurrent fault detection
|
||||||
#define MCPWM_CURRENT_STARTUP_BOOST 0.08 // The lowest duty cycle to use in current control mode @ 20V.
|
#define MCPWM_CURRENT_STARTUP_BOOST 0.08 // The lowest duty cycle to use in current control mode (has to be > MCPWM_MIN_DUTY_CYCLE)
|
||||||
#define MCPWM_CURRENT_CONTROL_NO_REV 0 // Do not reverse the direction in current control mode, brake only
|
|
||||||
#define MCPWM_RPM_MAX 100000.0 // The motor speed limit (Upper)
|
#define MCPWM_RPM_MAX 100000.0 // The motor speed limit (Upper)
|
||||||
#define MCPWM_RPM_MIN -100000.0 // The motor speed limit (Lower)
|
#define MCPWM_RPM_MIN -100000.0 // The motor speed limit (Lower)
|
||||||
|
|
||||||
|
|
|
@ -37,18 +37,17 @@
|
||||||
#define MCPWM_IN_CURRENT_MIN -25.0 // Input current limit in Amperes (Lower)
|
#define MCPWM_IN_CURRENT_MIN -25.0 // Input current limit in Amperes (Lower)
|
||||||
#define MCPWM_MAX_ABS_CURRENT 110.0 // The maximum absolute current above which a fault is generated
|
#define MCPWM_MAX_ABS_CURRENT 110.0 // The maximum absolute current above which a fault is generated
|
||||||
#define MCPWM_SLOW_ABS_OVERCURRENT 1 // Use the filtered (and hence slower) current for the overcurrent fault detection
|
#define MCPWM_SLOW_ABS_OVERCURRENT 1 // Use the filtered (and hence slower) current for the overcurrent fault detection
|
||||||
#define MCPWM_CURRENT_STARTUP_BOOST 0.06 // The lowest duty cycle to use in current control mode @ 20V.
|
#define MCPWM_CURRENT_STARTUP_BOOST 0.08 // The lowest duty cycle to use in current control mode (has to be > MCPWM_MIN_DUTY_CYCLE)
|
||||||
#define MCPWM_CURRENT_CONTROL_NO_REV 0 // Do not reverse the direction in current control mode, brake only
|
|
||||||
#define MCPWM_RPM_MAX 100000.0 // The motor speed limit (Upper)
|
#define MCPWM_RPM_MAX 100000.0 // The motor speed limit (Upper)
|
||||||
#define MCPWM_RPM_MIN -100000.0 // The motor speed limit (Lower)
|
#define MCPWM_RPM_MIN -100000.0 // The motor speed limit (Lower)
|
||||||
|
|
||||||
// Sensorless settings
|
// Sensorless settings
|
||||||
#define MCPWM_IS_SENSORLESS 1 // Use sensorless commutation
|
#define MCPWM_IS_SENSORLESS 1 // Use sensorless commutation
|
||||||
#define MCPWM_MIN_RPM 900 // Auto-commutate below this RPM
|
#define MCPWM_MIN_RPM 500 // Auto-commutate below this RPM
|
||||||
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM 800.0 // Minimum RPM to calculate the BEMF coupling from
|
#define MCPWM_CYCLE_INT_LIMIT_MIN_RPM 800.0 // Minimum RPM to calculate the BEMF coupling from
|
||||||
#define MCPWM_CYCLE_INT_LIMIT 40.0 // Flux integrator limit 0 ERPM
|
#define MCPWM_CYCLE_INT_LIMIT 40.0 // Flux integrator limit 0 ERPM
|
||||||
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC 0.8 // Flux integrator limit percentage at MCPWM_CYCLE_INT_START_RPM_BR ERPM
|
#define MCPWM_CYCLE_INT_LIMIT_HIGH_FAC 0.8 // Flux integrator limit percentage at MCPWM_CYCLE_INT_START_RPM_BR ERPM
|
||||||
#define MCPWM_BEMF_INPUT_COUPLING_K 100.0 // Input voltage to bemf coupling constant
|
#define MCPWM_BEMF_INPUT_COUPLING_K 60.0 // Input voltage to bemf coupling constant
|
||||||
|
|
||||||
// Hall sensor settings
|
// Hall sensor settings
|
||||||
#define MCPWM_HALL_DIR 0 // Hall sensor direction [0 or 1]
|
#define MCPWM_HALL_DIR 0 // Hall sensor direction [0 or 1]
|
||||||
|
|
Loading…
Reference in New Issue