mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 22:37:34 +08:00
Replaces poshold/althold with posctrl/altctrl
This commit is contained in:
@@ -229,8 +229,8 @@ void BlockMultiModeBacksideAutopilot::update()
|
||||
_actuators.control[CH_RDR] = _manual.yaw;
|
||||
_actuators.control[CH_THR] = _manual.throttle;
|
||||
|
||||
} else if (_status.main_state == MAIN_STATE_ALTHOLD ||
|
||||
_status.main_state == MAIN_STATE_POSHOLD /* TODO, implement easy */) {
|
||||
} else if (_status.main_state == MAIN_STATE_ALTCTRL ||
|
||||
_status.main_state == MAIN_STATE_POSCTRL /* TODO, implement easy */) {
|
||||
|
||||
// calculate velocity, XXX should be airspeed, but using ground speed for now
|
||||
// for the purpose of control we will limit the velocity feedback between
|
||||
|
||||
Reference in New Issue
Block a user