From 4c16b2ab8e0d0c3254fb15c79025d028e4d0ca06 Mon Sep 17 00:00:00 2001 From: Fisch Date: Tue, 3 Dec 2019 22:53:37 +0100 Subject: [PATCH] disable field weakening --- Inc/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inc/config.h b/Inc/config.h index 529cd7e..7dff678 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -145,7 +145,7 @@ #define CTRL_TYP_SEL 1 // [-] Control type selection: 0 = Commutation , 1 = Sinusoidal, 2 = FOC Field Oriented Control (default) #define CTRL_MOD_REQ 1 // [-] Control mode request: 0 = Open mode, 1 = VOLTAGE mode (default), 2 = SPEED mode, 3 = TORQUE mode. Note: SPEED and TORQUE modes are only available for FOC! #define DIAG_ENA 1 // [-] Motor Diagnostics enable flag: 0 = Disabled, 1 = Enabled (default) -#define FIELD_WEAK_ENA 1 // [-] Field Weakening enable flag: 0 = Disabled (default), 1 = Enabled +#define FIELD_WEAK_ENA 0 // [-] Field Weakening enable flag: 0 = Disabled (default), 1 = Enabled #define I_MOT_MAX (15 * A2BIT_CONV) << 4 // [A] Maximum motor current limit (Change only the first number, the rest is needed for fixed-point conversion, fixdt(1,16,4)) #define I_DC_MAX (17 * A2BIT_CONV) // [A] Maximum DC Link current limit (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 800 << 4 // [rpm] Maximum motor speed (change only the first number, the rest is needed for fixed-point conversion, fixdt(1,16,4))