diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 444e301018..cc61a502f0 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -534,7 +534,7 @@ void Plane::handle_auto_mode(void) void Plane::update_flight_mode(void) { enum FlightMode effective_mode = control_mode; - if (control_mode == AUTO && g.auto_fbw_steer) { + if (control_mode == AUTO && g.auto_fbw_steer == 42) { effective_mode = FLY_BY_WIRE_A; } diff --git a/ArduPlane/Attitude.cpp b/ArduPlane/Attitude.cpp index ebcd7d8385..68178bf733 100644 --- a/ArduPlane/Attitude.cpp +++ b/ArduPlane/Attitude.cpp @@ -168,7 +168,7 @@ void Plane::stabilize_stick_mixing_fbw() control_mode == QLOITER || control_mode == QLAND || control_mode == TRAINING || - (control_mode == AUTO && g.auto_fbw_steer)) { + (control_mode == AUTO && g.auto_fbw_steer == 42)) { return; } // do FBW style stick mixing. We don't treat it linearly @@ -594,7 +594,7 @@ bool Plane::suppress_throttle(void) return false; } - if (control_mode==AUTO && g.auto_fbw_steer) { + if (control_mode==AUTO && g.auto_fbw_steer == 42) { // user has throttle control return false; } diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 3e28a6c1ad..d72c18080d 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -131,8 +131,8 @@ const AP_Param::Info Plane::var_info[] = { // @Param: AUTO_FBW_STEER // @DisplayName: Use FBWA steering in AUTO - // @Description: When enabled this option gives FBWA navigation and steering in AUTO mode. This can be used to allow manual stabilised piloting with waypoint logic for triggering payloads. With this enabled the pilot has the same control over the plane as in FBWA mode, and the normal AUTO navigation is completely disabled. This option is not recommended for normal use. - // @Values: 0:Disabled,1:Enabled + // @Description: When enabled this option gives FBWA navigation and steering in AUTO mode. This can be used to allow manual stabilised piloting with waypoint logic for triggering payloads. With this enabled the pilot has the same control over the plane as in FBWA mode, and the normal AUTO navigation is completely disabled. THIS OPTION IS NOT RECOMMENDED FOR NORMAL USE. + // @Values: 0:Disabled,42:Enabled // @User: Advanced GSCALAR(auto_fbw_steer, "AUTO_FBW_STEER", 0),