mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Missed conversion to radians in AutoMapper and AutoMapper2
This commit is contained in:
@@ -122,7 +122,7 @@ void FlightTaskAutoMapper::_generateLandSetpoints()
|
|||||||
_position_setpoint = Vector3f(_target(0), _target(1), NAN);
|
_position_setpoint = Vector3f(_target(0), _target(1), NAN);
|
||||||
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, _param_mpc_land_speed.get()));
|
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, _param_mpc_land_speed.get()));
|
||||||
// set constraints
|
// 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();
|
_constraints.speed_down = _param_mpc_land_speed.get();
|
||||||
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
|
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ void FlightTaskAutoMapper2::_prepareLandSetpoints()
|
|||||||
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, speed_lnd));
|
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, speed_lnd));
|
||||||
|
|
||||||
// set constraints
|
// 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;
|
_gear.landing_gear = landing_gear_s::GEAR_DOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user