mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 15:20:35 +08:00
FW Position controller: rename LAUN_ALL_ON to LAUN_DECTN_ON
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -1530,7 +1530,7 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
|
||||
|
||||
} else {
|
||||
/* Perform launch detection */
|
||||
if (!_skipping_takeoff_detection && _param_laun_all_on.get() &&
|
||||
if (!_skipping_takeoff_detection && _param_laun_detcn_on.get() &&
|
||||
_launchDetector.getLaunchDetected() < launch_detection_status_s::STATE_FLYING) {
|
||||
|
||||
if (_control_mode.flag_armed) {
|
||||
@@ -1546,7 +1546,7 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
|
||||
}
|
||||
|
||||
if (!_launch_detected && _launchDetector.getLaunchDetected() > launch_detection_status_s::STATE_WAITING_FOR_LAUNCH
|
||||
&& _param_laun_all_on.get()) {
|
||||
&& _param_laun_detcn_on.get()) {
|
||||
_launch_detected = true;
|
||||
_launch_global_position = global_position;
|
||||
_takeoff_ground_alt = _current_altitude;
|
||||
@@ -1567,7 +1567,7 @@ FixedwingPositionControl::control_auto_takeoff(const hrt_abstime &now, const flo
|
||||
|
||||
/* Set control values depending on the detection state */
|
||||
if (_launchDetector.getLaunchDetected() > launch_detection_status_s::STATE_WAITING_FOR_LAUNCH
|
||||
&& _param_laun_all_on.get()) {
|
||||
&& _param_laun_detcn_on.get()) {
|
||||
/* Launch has been detected, hence we have to control the plane. */
|
||||
|
||||
if (_param_fw_use_npfg.get()) {
|
||||
|
||||
Reference in New Issue
Block a user