mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 21:53:34 +08:00
removed roll lock for altitude hold
This commit is contained in:
@@ -1991,12 +1991,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
ground_speed,
|
||||
tecs_status_s::TECS_MODE_NORMAL);
|
||||
|
||||
if (fabsf(_manual.y) > 0.01f) {
|
||||
_att_sp.roll_body = _manual.y * _parameters.man_roll_max_rad;
|
||||
|
||||
} else {
|
||||
_att_sp.roll_body = 0.0f;
|
||||
}
|
||||
_att_sp.roll_body = _manual.y * _parameters.man_roll_max_rad;
|
||||
|
||||
} else {
|
||||
_control_mode_current = FW_POSCTRL_MODE_OTHER;
|
||||
|
||||
Reference in New Issue
Block a user