got speed calc working. Still goes in wrong direction

This commit is contained in:
Nicolas Trimborn
2021-08-11 20:41:58 +02:00
parent afe33303ad
commit e367b994f2
25 changed files with 1132 additions and 171 deletions

View File

@@ -150,7 +150,7 @@ volatile typedef struct BLDCmotor
// ----------------------------------------------------------------------
static const uint8_t HALL_PATTERN_ARRAY[16] = {0, 5, 3, 1, 6, 4, 2, 0, 0, 3, 6, 2, 5, 1, 4, 0 };
static const uint8_t MOTOR_COMMUTATION_STEPS[8] = {9, 1, 3, 2, 5, 6, 4, 9};
static const uint8_t MOTOR_COMMUTATION_STEPS[8] = {20, 1, 3, 2, 5, 6, 4, 20};
volatile BLDCMotor_t Motor1;
volatile BLDCMotor_t Motor2;