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