修正默认偏转角
This commit is contained in:
@@ -233,7 +233,7 @@ void Balance_task(void *pvParameters)
|
||||
}
|
||||
//If Turn_Off(Voltage) returns to 1, the car is not allowed to move, and the PWM value is set to 0
|
||||
//如果Turn_Off(Voltage)返回值为1,不允许控制小车进行运动,PWM值设置为0
|
||||
else Set_Pwm(0,0,0,0,0);
|
||||
else Set_Pwm(0,0,0,0,(Car_Mode == Akm_Car) ? SERVO_INIT : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ u8 Car_Mode=4;
|
||||
|
||||
//Servo control PWM value, Ackerman car special
|
||||
//舵机控制PWM值,阿克曼小车专用
|
||||
int Servo;
|
||||
int Servo = SERVO_INIT;
|
||||
|
||||
//Default speed of remote control car, unit: mm/s
|
||||
//遥控小车的默认速度,单位:mm/s
|
||||
|
||||
Reference in New Issue
Block a user