default phase advance and start at 500 cmd

This commit is contained in:
interfisch 2021-05-29 17:23:36 +02:00
parent 40e051cb5c
commit 96b141c851
1 changed files with 3 additions and 3 deletions

View File

@ -208,14 +208,14 @@
// Limitation settings
#define I_MOT_MAX 15 // [A] Maximum single motor current limit
#define I_DC_MAX 17 // [A] Maximum stage2 DC Link current limit for Commutation and Sinusoidal types (This is the final current protection. Above this value, current chopping is applied. To avoid this make sure that I_DC_MAX = I_MOT_MAX + 2A)
#define N_MOT_MAX 1000 // [rpm] Maximum motor speed limit. Note: applies brake if above this speed when releasing throttle
#define N_MOT_MAX 1200 // [rpm] Maximum motor speed limit. Note: applies brake if above this speed when releasing throttle
// Field Weakening / Phase Advance
#define FIELD_WEAK_ENA 1 // [-] Field Weakening / Phase Advance enable flag: 0 = Disabled (default), 1 = Enabled
#define FIELD_WEAK_MAX 5 // [A] Maximum Field Weakening D axis current (only for FOC). Higher current results in higher maximum speed. Up to 10A has been tested using 10" wheels.
#define PHASE_ADV_MAX 15 // [deg] Maximum Phase Advance angle (only for SIN). Higher angle results in higher maximum speed. Default: 25. gives around 1500rpm at full throttle. (10=700-900rpm ~26kmh)
#define PHASE_ADV_MAX 25 // [deg] Maximum Phase Advance angle (only for SIN). Higher angle results in higher maximum speed. Default: 25. gives around 1500rpm at full throttle. (10=700-900rpm). (15=890rpm ~26kmh)
#define FIELD_WEAK_HI 1000 // (1000, 1500] Input target High threshold for reaching maximum Field Weakening / Phase Advance. Do NOT set this higher than 1500.
#define FIELD_WEAK_LO 750 // ( 500, 1000] Input target Low threshold for starting Field Weakening / Phase Advance. Do NOT set this higher than 1000.
#define FIELD_WEAK_LO 500 // ( 500, 1000] Input target Low threshold for starting Field Weakening / Phase Advance. Do NOT set this higher than 1000.
// Extra functionality
// #define STANDSTILL_HOLD_ENABLE // [-] Flag to hold the position when standtill is reached. Only available and makes sense for VOLTAGE or TORQUE mode.