Missed conversion to radians in AutoMapper and AutoMapper2

This commit is contained in:
Angel 2019-06-24 17:25:41 +02:00 committed by Daniel Agar
parent f8db8650d0
commit 92e9228fcd
No known key found for this signature in database
GPG Key ID: FD3CBA98017A69DE
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ void FlightTaskAutoMapper::_generateLandSetpoints()
_position_setpoint = Vector3f(_target(0), _target(1), NAN);
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, _param_mpc_land_speed.get()));
// set constraints
_constraints.tilt = _param_mpc_tiltmax_lnd.get();
_constraints.tilt = math::radians(_param_mpc_tiltmax_lnd.get());
_constraints.speed_down = _param_mpc_land_speed.get();
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
}

View File

@ -132,7 +132,7 @@ void FlightTaskAutoMapper2::_prepareLandSetpoints()
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, speed_lnd));
// set constraints
_constraints.tilt = _param_mpc_tiltmax_lnd.get();
_constraints.tilt = math::radians(_param_mpc_tiltmax_lnd.get());
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
}