SickAccelerationXY: fix comment typo brak{e}ing

This commit is contained in:
Matthias Grob
2023-09-27 15:46:36 +02:00
parent 4cf43a68a3
commit da24811ce1
@@ -160,7 +160,7 @@ Vector2f StickAccelerationXY::calculateDrag(Vector2f drag_coefficient, const flo
// increase drag with squareroot function when velocity is lower than 1m/s
const Vector2f velocity_with_sqrt_boost = vel_sp.unit_or_zero() * math::sqrt_linear(vel_sp.norm());
// only apply the drag increase below 1m/s when actually brakeing such that speeds below 1m/s
// only apply the drag increase below 1m/s when actually braking such that speeds below 1m/s
// are exactly reached but do so by blending it with the filter to avoid any discontinuity when switching
const float brake_scale = math::interpolate(_brake_boost_filter.getState(), 1.f, 2.f, 0.f, 1.f);
const Vector2f mixed_velocity = brake_scale * velocity_with_sqrt_boost + (1.f - brake_scale) * vel_sp;