Skip to content

Commit 3ef0ce3

Browse files
committed
MC FlightModeManager: increase voyager acceleration generation responsiveness
Signed-off-by: Silvan <silvan@auterion.com>
1 parent aa38cec commit 3ef0ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/flight_mode_manager/tasks/Utility/StickTiltXY.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Vector2f StickTiltXY::generateAccelerationSetpointsForVoyager(Vector2f stick_xy,
7575
{
7676
Sticks::limitStickUnitLengthXY(stick_xy);
7777
const Vector2f increment = stick_xy;
78-
_voyager_acceleration += increment * _maximum_acceleration *
79-
dt; // at full stick deflection it takes 1s from 0 to max tilt
78+
_voyager_acceleration += increment * _maximum_acceleration * 2.f *
79+
dt; // at full stick deflection it takes 1s from -tilt_max to tilt_max
8080

8181
if (_voyager_acceleration.longerThan(_maximum_acceleration)) {
8282
_voyager_acceleration =

0 commit comments

Comments
 (0)