[MOD]: Changed the Rate of BLDC from 500Hz to 50Hz, 1ms-LOW, 2ms-HIGH

This commit is contained in:
but0n 2016-12-02 12:03:57 +08:00
parent ff7c296117
commit 3396b7f506

View File

@ -9,14 +9,17 @@
#define MOTOR3 TIM3->CCR3
#define MOTOR4 TIM3->CCR4
#define MOTOR_MAX (unsigned short)34200
#define MOTOR_MIN (unsigned short)12600
#define MOTOR_LOW (unsigned short)18720
#define MOTOR_MAX (unsigned short)36000
#define MOTOR_MIN (unsigned short)18000
#define MOTOR_LOW (unsigned short)18000
#ifdef MOTOR_NORMAL_STARTUP
#define MOTOR_SETTING() {\
motor_PWM_Init(36000,4);\
MOTOR1 = MOTOR2 = MOTOR3 = MOTOR4 = MOTOR_MIN;\
motor_PWM_Init(36000,40);\
MOTOR1 = MOTOR_MIN;\
MOTOR2 = MOTOR_MIN;\
MOTOR3 = MOTOR_MIN;\
MOTOR4 = MOTOR_MIN;\
delay(10000);\
}
#else