From e1c1d89a2f8eae15bed7d328cb65e0ca785d7df7 Mon Sep 17 00:00:00 2001 From: Nicolas Trimborn Date: Sun, 8 Aug 2021 18:22:54 +0200 Subject: [PATCH] phase switching --- .../Motor_Master/motorparameters.h | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 {