From 932af0c1488808ed3dbccf61333abdcc44068107 Mon Sep 17 00:00:00 2001 From: oravla5 Date: Thu, 17 Oct 2024 16:31:53 +0200 Subject: [PATCH] FlightTaskTransition: fixed double radian conversion --- .../tasks/Transition/FlightTaskTransition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp b/src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp index 60227e53d527..a6150cf75f53 100644 --- a/src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp +++ b/src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp @@ -100,7 +100,7 @@ bool FlightTaskTransition::update() pitch_setpoint = computeBackTranstionPitchSetpoint(); } - _acceleration_setpoint.xy() = tmp * tanf(math::radians(pitch_setpoint)) * CONSTANTS_ONE_G; + _acceleration_setpoint.xy() = tmp * tanf(pitch_setpoint) * CONSTANTS_ONE_G; // slowly move vertical velocity setpoint to zero _vel_z_filter.setParameters(math::constrain(_deltatime, 0.01f, 0.1f), _vel_z_filter_time_const);