Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: Add rudder only plane guide #6504

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plane/source/docs/guide-four-channel-plane.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ and coordinate its turns.
<tr><td>Roll Plane Left</td><td>Left aileron moves down and right aileron moves up</td><tr>
<tr><td>Pitch plane up</td><td>Elevator moves down</td></tr>
<tr><td>Pitch plane down</td><td>Elevator moves up</td></tr>
<tr><td>Roll Plane Right</td><td>Rudder moves left</td></tr>
<tr><td>Roll Plane Left</td><td>Rudder moves right</td></tr>
<tr><td>Yaw Plane Right</td><td>Rudder moves left</td></tr>
Ryanf55 marked this conversation as resolved.
Show resolved Hide resolved
<tr><td>Yaw Plane Left</td><td>Rudder moves right</td></tr>
</table>

If the any of the control surfaces do not respond correctly, reverse the
Expand All @@ -82,7 +82,7 @@ or from 1 to 0).

The output can be reversed in Mission Planner on the SETUP/Mandatory Hardware/Servo Output page, just check the box for the channel that needs to be reversed. This will set the output's SERVOn_REVERSED parameter.

.. note:: :ref:`KFF_RDDRMIX<KFF_RDDRMIX>` mut not be set to 0 (the default value is 0.5) for checking rudder movement in FBWA as the plane is rolled away from level. If no automatic coupling of rudder to aileron for coordinated turns by the autopilot is desired, then reset it to zero after this setup check.
.. note:: :ref:`KFF_RDDRMIX<KFF_RDDRMIX>` must not be set to 0 (the default value is 0.5) for checking rudder movement in FBWA as the plane is rolled away from level. If no automatic coupling of rudder to aileron for coordinated turns by the autopilot is desired, then reset it to zero after this setup check.

Confirm RC Transmitter Input
============================
Expand All @@ -97,8 +97,8 @@ Keep the plane level in FBWA mode and command the following inputs by moving the
<tr><td>Roll Left</td><td>Left aileron moves up and right aileron moves down</td><tr>
<tr><td>Pitch up</td><td>Elevator moves up</td><tr>
<tr><td>Pitch down</td><td>Elevator moves down</td><tr>
<tr><td>Yaw right</td><td>Rudder moves right</td><tr>
<tr><td>Yaw left</td><td>Rudder moves left</td><tr>
<tr><td>Roll right</td><td>Rudder moves right</td><tr>
<tr><td>Roll left</td><td>Rudder moves left</td><tr>
</table>

If the control surfaces do not respond correctly, change the RCn_reversed
Expand Down
125 changes: 125 additions & 0 deletions plane/source/docs/guide-rudder-only-plane.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.. _guide-rudder-only-plane:

==============================
Rudder Only Planes (3 Channel)
==============================

A less common type of fixed wing plane is a 3 channel plane. As the
name implies, it has 3 output channels. While pitch and throttle are directly controlled,
roll and yaw are coupled.
They are controlled through a single channel on the transmitter.
Compared to using 4 channel airplanes, 3 channel planes use less servos, have less failure points,
but provide less direct control over the vehicle's motion and less redundance against servo failure.

.. warning:: Remove the propeller from your aircraft before
starting your setup.

Setting Up Your Plane
=====================

The most important step to setting up the plane is having the correct inputs,
outputs, and reversals. Inputs are covered on the :ref:`RC input setup page <rc-throw-trim>`.

For a 3-channel plane, configure the following parameters:

* :ref:`RUDDER_ONLY<RUDDER_ONLY>` =1
* :ref:`KFF_RDDRMIX<KFF_RDDRMIX>` =1.0
* :ref:`YAW2SRV_DAMP<YAW2SRV_DAMP>` =0.5

:ref:`YAW2SRV_DAMP<YAW2SRV_DAMP>` can be tuned later; the above value is a good starting value.

If you prefer to control the throttle with one stick and the attiude of the vehicle with the other stick,
set up your transmitter to send roll stick inputs to the :ref:`RCMAP_YAW<RCMAP_YAW>` channel (normally channel 4).
The rudder servo should be attached to the :ref:`RCMAP_YAW<RCMAP_YAW>` channel as well (normally channel 4).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rudder servo is not "attached"...the TX should send rudder stick commands to the RCMAP_YAW rc in channel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


In the Radio Calibration setup page, you should now observe that a right roll command on the sticks results in the same
movement as a right yaw command.

Later, when you set up :ref:`arming-your-plane`, remember that you can now arm with the configured roll stick.

After the RC inputs are configured, configure the outputs.

.. warning:: Make sure the :ref:`AHRS_ORIENTATION<AHRS_ORIENTATION>` is set correctly for the autopilot. If it is incorrect,
this setup will fail, and the plane may crash upon entry into any stabilize mode.

Servo cables can be connected to any output of the autopilot,
but using the default channels 2-4 listed below is recommended.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
but using the default channels 2-4 listed below is recommended.
but using channels 2-4 listed below is common.

many autopilots do not provide servo rail power for channel 2 (or 1)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which ones? This means the existing 4 channel guide is not correct, and also seems like a pain in the butt for fixed wing users.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually having no servo power rail for the first two outputs is more convenient in many cases, usually the motor esc(s) are attached there, eliminating the need to remove the ESC BEC wire

Set the SERVOn_FUNCTION to the appropriate values

You can do this by setting the parameter directly using Ground Station software such as Mission Planner or QGroundControl using either the full parameter lists or setup tab for outputs.
In Mission Planner you can do this on the SETUP -> Mandatory Hardware -> Servo Output page. Each channel has a dropdown which can be used to select the function of the channel.

.. raw:: html

<table border="1" class="docutils">
<tr><th>Parameter</th><th>Value</th><th>Meaning</th></tr>
<tr><td>SERVO2_FUNCTION</td><td>19</td><td>elevator</td></tr>
<tr><td>SERVO3_FUNCTION</td><td>70</td><td>throttle</td></tr>
<tr><td>SERVO4_FUNCTION</td><td>21</td><td>rudder</td></tr>
</table>


Servo Function & Reversal
=========================

The next step is to correct the servo reversals.
Connect the battery (with propeller removed) and turn on the RC transmitter.
Switch to FBWA mode using the function switch or a ground station command, and
disable the safety switch (if fitted). We use FBWA for setup because it prevents
double-reversing inputs and outputs. Double-reversing causes correct manual
behavior, but dangerous and destabilizing behavior in other flight modes.

When the plane is level, the servos should be near their trim (neutral) values.
Move the plane and leave the transmitter sticks centered while
monitoring the control surfaces to determine if the reversals are correct.
See the table for the correct control surface response to the movements.
In each instance, the plane should move its control surfaces to level itself
and coordinate its turns.

.. raw:: html

<table border="1" class="docutils">
<tr><th>Movement</th><th>Action</th></tr>
<tr><td>Roll Plane Right</td><td>Rudder moves left</td><tr>
<tr><td>Roll Plane Left</td><td>Left aileron moves down and right aileron moves up</td><tr>
<tr><td>Pitch plane up</td><td>Elevator moves down</td></tr>
<tr><td>Pitch plane down</td><td>Elevator moves up</td></tr>
<tr><td>Yaw Plane Right</td><td>By default, no surfaces react</td></tr>
<tr><td>Yaw Plane Left</td><td>By default, no surfaces react</td></tr>
</table>

If the any of the control surfaces do not respond correctly, reverse the
output by changing the corresponding SERVOn_REVERSED setting (from 0 to 1,
or from 1 to 0).

The output can be reversed in Mission Planner on the SETUP/Mandatory Hardware/Servo Output page, just check the box for the channel that needs to be reversed. This will set the output's SERVOn_REVERSED parameter.

Confirm RC Transmitter Input
============================

Keep the plane level in FBWA mode and command the following inputs by moving the sticks on your transmitter:

.. raw:: html

<table border="1" class="docutils">
<tr><th>Input</th><th>Action</th></tr>
<tr><td>Roll Right</td><td>Rudder moves right</td><tr>
<tr><td>Roll Left</td><td>Rudder moves left</td><tr>
<tr><td>Pitch up</td><td>Elevator moves up</td><tr>
<tr><td>Pitch down</td><td>Elevator moves down</td><tr>
<tr><td>Yaw right</td><td>Rudder moves right</td><tr>
<tr><td>Yaw left</td><td>Rudder moves left</td><tr>
</table>

If the control surfaces do not respond correctly, change the RCn_reversed
parameter (from 0 to 1, or from 1 to 0). Do NOT reverse the output on your transmitter. It must be changed in the autopilot!
Double check MANUAL mode for the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for this if done in FBWA...any RC reverses are discovered in that step

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's update the other guide then. I copied this from there.

same inputs. If everything is setup correctly, the plane should be almost
ready to fly.

If in MANUAL mode the surfaces move backward with stick movements now, the corresponding RC input should be reversed. To do this, in Mission Planner RCn_REVERSED can be easily set on the SETUP/Mandatory Hardware/Radio Calibration page.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could move this expansion up to the FBWA test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto on the 4-channel guide.

There is a check box "Reverse" next to each input bar. You can reverse the correct parameter by checking the box. However, if :ref:`common-radio-control-calibration` was followed correctly, changing RC input reversal will not be necessary.

.. include:: guide-four-channel-plane.rst
:start-after: Confirm RC Transmitter Input

3 changes: 2 additions & 1 deletion plane/source/docs/servo-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The default outputs for a standard plane frame are very simple:
- servo output 4 is rudder

This is fine for many simple aircraft, but will need to be changed if
you have elevons, a vtail, flaps or any other more complex setup, such as QuadPlane or Tail-sitter.
you have elevons, a vtail, flaps, no ailerons, or any other more complex setup, such as QuadPlane or Tail-sitter.

Overview
========
Expand Down Expand Up @@ -105,6 +105,7 @@ setup your :ref:`RC inputs <rc-throw-trim>`.
:maxdepth: 1

Four Channel Planes <guide-four-channel-plane>
Rudder Only Planes <guide-rudder-only-plane>
Elevon Planes <guide-elevon-plane>
VTail Planes <guide-vtail-plane>
Orinthopter <ornithopter>
Expand Down