|
|
@@ -99,10 +99,9 @@ static float _thro_torque_for_accelerate(float ration) {
|
|
|
if (torque_acc_ > 0) {
|
|
|
float acc_t = mc_get_gear_config()->n_accl_time;
|
|
|
step = torque_acc_ / (acc_t + 0.00001f);
|
|
|
- }else {
|
|
|
- torque_acc_ = 0;
|
|
|
+ step_towards(&_torque.torque_acc_, torque_acc_, step);
|
|
|
}
|
|
|
- step_towards(&_torque.torque_acc_, torque_acc_, step);
|
|
|
+
|
|
|
return (acc_torque + _torque.torque_acc_);
|
|
|
}
|
|
|
|