Skip to content

Commit

Permalink
AP_MotorsTri: initialize _pitch_reversed in init()
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 committed Dec 11, 2023
1 parent bd812e8 commit 31c415b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Motors/AP_MotorsTri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 31c415b

Please sign in to comment.