小陀螺时移动速度置0

This commit is contained in:
kai
2024-05-23 23:22:49 +08:00
parent 845942b3d0
commit 613510642c
7 changed files with 112 additions and 98 deletions

View File

@@ -11,12 +11,14 @@ void MotorControlTask()
// static uint8_t cnt = 0; 设定不同电机的任务频率
// if(cnt%5==0) //200hz
// if(cnt%10==0) //100hz
#ifdef GIMBAL_BOARD
DJIMotorControl();
DJIMotorControl();
#endif // DEBUG
#ifdef CHASSIS_BOARD
LKMotorControl();
LKMotorControl();
#endif // DEBUG
/* 如果有对应的电机则取消注释,可以加入条件编译或者register对应的idx判断是否注册了电机 */
//LKMotorControl();