separate ctrl typ sel

This commit is contained in:
interfisch 2020-06-07 01:33:48 +02:00
parent 7b8aace599
commit ba20c044b1
1 changed files with 4 additions and 1 deletions

View File

@ -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