mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-26 11:16:37 +08:00
Merge branch 'master' into new_state_machine
Conflicts: apps/controllib/fixedwing.cpp
This commit is contained in:
@@ -172,10 +172,10 @@ BlockBacksideAutopilot::BlockBacksideAutopilot(SuperBlock *parent,
|
||||
_headingHold(this, ""),
|
||||
_velocityHold(this, ""),
|
||||
_altitudeHold(this, ""),
|
||||
_trimAil(this, "TRIM_AIL"),
|
||||
_trimElv(this, "TRIM_ELV"),
|
||||
_trimRdr(this, "TRIM_RDR"),
|
||||
_trimThr(this, "TRIM_THR")
|
||||
_trimAil(this, "TRIM_ROLL", false), /* general roll trim (full name: TRIM_ROLL) */
|
||||
_trimElv(this, "TRIM_PITCH", false), /* general pitch trim */
|
||||
_trimRdr(this, "TRIM_YAW", false), /* general yaw trim */
|
||||
_trimThr(this, "TRIM_THR", true) /* FWB_ specific throttle trim (full name: FWB_TRIM_THR) */
|
||||
{
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ void BlockMultiModeBacksideAutopilot::update()
|
||||
_att.rollspeed, _att.pitchspeed, _att.yawspeed
|
||||
);
|
||||
_actuators.control[CH_AIL] = _backsideAutopilot.getAileron();
|
||||
_actuators.control[CH_ELV] = - _backsideAutopilot.getElevator();
|
||||
_actuators.control[CH_ELV] = _backsideAutopilot.getElevator();
|
||||
_actuators.control[CH_RDR] = _backsideAutopilot.getRudder();
|
||||
_actuators.control[CH_THR] = _backsideAutopilot.getThrottle();
|
||||
|
||||
@@ -351,17 +351,17 @@ void BlockMultiModeBacksideAutopilot::update()
|
||||
_actuators.control[CH_ELV] = _manual.pitch;
|
||||
_actuators.control[CH_RDR] = _manual.yaw;
|
||||
_actuators.control[CH_THR] = _manual.throttle;
|
||||
#warning please check whether this flag makes sense
|
||||
} else if (_status.flag_control_attitude_enabled) {
|
||||
|
||||
// } else if (_status.manual_control_mode == VEHICLE_MANUAL_CONTROL_MODE_SAS) {
|
||||
//
|
||||
// _stabilization.update(_manual.roll, _manual.pitch, _manual.yaw,
|
||||
// _att.rollspeed, _att.pitchspeed, _att.yawspeed);
|
||||
//
|
||||
// _actuators.control[CH_AIL] = _stabilization.getAileron();
|
||||
// _actuators.control[CH_ELV] = - _stabilization.getElevator();
|
||||
// _actuators.control[CH_RDR] = _stabilization.getRudder();
|
||||
// _actuators.control[CH_THR] = _manual.throttle;
|
||||
// }
|
||||
_stabilization.update(_manual.roll, _manual.pitch, _manual.yaw,
|
||||
_att.rollspeed, _att.pitchspeed, _att.yawspeed);
|
||||
|
||||
_actuators.control[CH_AIL] = _stabilization.getAileron();
|
||||
_actuators.control[CH_ELV] = _stabilization.getElevator();
|
||||
_actuators.control[CH_RDR] = _stabilization.getRudder();
|
||||
_actuators.control[CH_THR] = _manual.throttle;
|
||||
}
|
||||
}
|
||||
|
||||
// update all publications
|
||||
|
||||
Reference in New Issue
Block a user