Skip to content

Commit 68d9f2f

Browse files
IamPete1tridge
authored andcommitted
Plane: Output rudder in VTOL modes
1 parent 285369e commit 68d9f2f

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

ArduPlane/mode_qautotune.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ void ModeQAutotune::run()
3535
// Stabilize with fixed wing surfaces
3636
plane.stabilize_roll();
3737
plane.stabilize_pitch();
38+
39+
// Center rudder
40+
output_rudder_and_steering(0.0);
3841
}
3942

4043
void ModeQAutotune::_exit()

ArduPlane/mode_qhover.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ void ModeQHover::run()
4444
// Stabilize with fixed wing surfaces
4545
plane.stabilize_roll();
4646
plane.stabilize_pitch();
47+
48+
// Center rudder
49+
output_rudder_and_steering(0.0);
4750
}
4851

4952
#endif

ArduPlane/mode_qloiter.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ void ModeQLoiter::run()
162162
// Stabilize with fixed wing surfaces
163163
plane.stabilize_roll();
164164
plane.stabilize_pitch();
165+
166+
// Center rudder
167+
output_rudder_and_steering(0.0);
165168
}
166169

167170
#endif

ArduPlane/mode_qrtl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ void ModeQRTL::run()
179179
// Stabilize with fixed wing surfaces
180180
plane.stabilize_roll();
181181
plane.stabilize_pitch();
182+
plane.stabilize_yaw();
182183
}
183184

184185
/*

ArduPlane/mode_qstabilize.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ void ModeQStabilize::run()
6464
// Stabilize with fixed wing surfaces
6565
plane.stabilize_roll();
6666
plane.stabilize_pitch();
67+
68+
// Center rudder
69+
output_rudder_and_steering(0.0);
6770
}
6871

6972
// set the desired roll and pitch for a tailsitter

0 commit comments

Comments
 (0)