From 31c415bc590776a5f87806735db13e699913c7b1 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Mon, 11 Dec 2023 12:50:10 +1100 Subject: [PATCH] AP_MotorsTri: initialize _pitch_reversed in init() --- libraries/AP_Motors/AP_MotorsTri.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Motors/AP_MotorsTri.cpp b/libraries/AP_Motors/AP_MotorsTri.cpp index 29829a717d1051..84f6900b78a647 100644 --- a/libraries/AP_Motors/AP_MotorsTri.cpp +++ b/libraries/AP_Motors/AP_MotorsTri.cpp @@ -51,6 +51,9 @@ void AP_MotorsTri::init(motor_frame_class frame_class, motor_frame_type frame_ty if (frame_type == MOTOR_FRAME_TYPE_PLUSREV) { _pitch_reversed = true; } + else { + _pitch_reversed = false; + } _mav_type = MAV_TYPE_TRICOPTER;