diff --git a/2_Motor_Master/Motor_Master/Motor_Master/motorparameters.h b/2_Motor_Master/Motor_Master/Motor_Master/motorparameters.h index 369d212..ca9de44 100644 --- a/2_Motor_Master/Motor_Master/Motor_Master/motorparameters.h +++ b/2_Motor_Master/Motor_Master/Motor_Master/motorparameters.h @@ -130,7 +130,7 @@ //0x141F, // (14) //0x003F // (15) invalid state //}; - +// ////* A&C phase swapped */ static const uint16_t COMMUTATION_PATTERN[16] = { 0x003F, // (0) invalid state @@ -151,6 +151,26 @@ static const uint16_t COMMUTATION_PATTERN[16] = { 0x003F // (15) invalid state }; +//////* A&C phase swapped and modified to match currents */ +//static const uint16_t COMMUTATION_PATTERN[16] = { + //0x003F, // (0) invalid state + //0x141F, // (1) + //0x0537, // (2) + //0x111F, // (3) + //0x113D, // (4) + //0x053D, // (5) + //0x1437, // (6) + //0x003F, // (7) invalid state + //0x003F, // (8) invalid state + //0x1437, // (9) + //0x053D, // (10) + //0x113D, // (11) + //0x111F, // (12) + //0x0537, // (13) + //0x141F, // (14) + //0x003F // (15) invalid state +//}; + typedef struct {