MIT Motor FOC Control
Diff: Config/user_config.h
- Revision:
- 52:8e74c22ed89f
- Parent:
- 51:6cd89bd6fcaa
--- a/Config/user_config.h Wed Jul 17 03:40:12 2019 +0000 +++ b/Config/user_config.h Sun Jul 21 21:42:49 2019 +0000 @@ -1,4 +1,4 @@ -/// Values stored in flash, which are modifieable by user actions /// +/// Values stored in flash /// #ifndef USER_CONFIG_H #define USER_CONFIG_H @@ -13,10 +13,12 @@ #define I_FW_MAX __float_reg[6] // Maximum field weakening current + #define PHASE_ORDER __int_reg[0] // Phase swapping during calibration #define CAN_ID __int_reg[1] // CAN bus ID #define CAN_MASTER __int_reg[2] // CAN bus "master" ID #define CAN_TIMEOUT __int_reg[3] // CAN bus timeout period +#define NPP __int_reg[4] // Number of Pole-Pairs #define ENCODER_LUT __int_reg[5] // Encoder offset LUT - 128 elements long