mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
[MOD]: Changed the Rate of BLDC from 500Hz to 50Hz, 1ms-LOW, 2ms-HIGH
This commit is contained in:
parent
ff7c296117
commit
3396b7f506
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user