Skip to content

Commit

Permalink
FlightTaskTransition: fixed double radian conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
oravla5 committed Oct 23, 2024
1 parent 4b5b3f2 commit 932af0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 932af0c

Please sign in to comment.