From 5619dca38987e969791dcb194259211c386ecfc3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Jan 2024 13:11:41 +1100 Subject: [PATCH] Plane: TRIM_PITCH_DEG to PTCH_TRIM_DEG --- ArduPlane/ArduPlane.cpp | 4 ++-- ArduPlane/Parameters.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 474299eb7b..3933582f8f 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -917,7 +917,7 @@ bool Plane::is_taking_off() const return control_mode->is_taking_off(); } -// correct AHRS pitch for TRIM_PITCH_DEG in non-VTOL modes, and return VTOL view in VTOL +// correct AHRS pitch for PTCH_TRIM_DEG in non-VTOL modes, and return VTOL view in VTOL void Plane::get_osd_roll_pitch_rad(float &roll, float &pitch) const { #if HAL_QUADPLANE_ENABLED @@ -929,7 +929,7 @@ void Plane::get_osd_roll_pitch_rad(float &roll, float &pitch) const #endif pitch = ahrs.get_pitch(); roll = ahrs.get_roll(); - if (!(flight_option_enabled(FlightOptions::OSD_REMOVE_TRIM_PITCH))) { // correct for TRIM_PITCH_DEG + if (!(flight_option_enabled(FlightOptions::OSD_REMOVE_TRIM_PITCH))) { // correct for PTCH_TRIM_DEG pitch -= g.pitch_trim * DEG_TO_RAD; } } diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 21d5238f9b..4b3eee9d64 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -644,13 +644,13 @@ const AP_Param::Info Plane::var_info[] = { // @User: Advanced ASCALAR(min_groundspeed, "MIN_GROUNDSPEED", MIN_GROUNDSPEED), - // @Param: TRIM_PITCH_DEG + // @Param: PTCH_TRIM_DEG // @DisplayName: Pitch angle offset // @Description: Offset in degrees used for in-flight pitch trimming for level flight. Correct ground leveling is an alternative to changing this parameter. // @Units: deg // @Range: -45 45 // @User: Standard - GSCALAR(pitch_trim, "TRIM_PITCH_DEG", 0.0f), + GSCALAR(pitch_trim, "PTCH_TRIM_DEG", 0.0f), // @Param: RTL_ALTITUDE // @DisplayName: RTL altitude