From ba20c044b180d0cf53ae9ed6e3c086e569b89de9 Mon Sep 17 00:00:00 2001 From: Fisch Date: Sun, 7 Jun 2020 01:33:48 +0200 Subject: [PATCH] separate ctrl typ sel --- Inc/config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Inc/config.h b/Inc/config.h index 584d5a8..d194174 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -203,15 +203,18 @@ // ############################### MOTOR CONTROL ######################### // Control selections -#define CTRL_TYP_SEL 2 // [-] Control type selection: 0 = Commutation , 1 = Sinusoidal, 2 = FOC Field Oriented Control (default) +//#define CTRL_TYP_SEL 2 // [-] Control type selection: 0 = Commutation , 1 = Sinusoidal, 2 = FOC Field Oriented Control (default) //#define CTRL_MOD_REQ 3 // [-] 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! #ifdef BOBBYCAR_PCB_FRONT + #define CTRL_TYP_SEL 1 //sinusoidal. ignores ctrl_mod #define CTRL_MOD_REQ 1 //voltage (torque mode had some quirks) #endif #ifdef BOBBYCAR_PCB_REAR + #define CTRL_TYP_SEL 1 //sinusoidal. ignores ctrl_mod #define CTRL_MOD_REQ 1 //voltage (torque mode had some quirks) #endif #ifdef HOVERBRETT + #define CTRL_TYP_SEL 2 #define CTRL_MOD_REQ 1 //voltage #endif