Skip to content

Commit

Permalink
add quick setuo guide for return to home behaviours
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Sep 29, 2023
1 parent f81084c commit f22528c
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion plane/source/docs/quadplane-parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,37 @@ Key Parameters
throttle while flying or you risk disarming your motors.
- The default :ref:`SCHED_LOOP_RATE<SCHED_LOOP_RATE>` for a QuadPlane is to 300 (Hz). Most QuadPlanes do not need this to be rasied. Some very small vehicles (< 1Kg) might benefit from setting it to 400. In heavier vehicles, their higher inertia results in lower effective control response rates, so they do not benefit from a higher loop rate. Raising above 300 only leads to larger log files in these vehicles.

.. _return_behavior_setup:

Return Behavior QuickSetup Guide:
=================================

While there are many parameters setting distances and heights for the various home return modes/behaviors (read each mode's wiki page), this is a quick setup guide for basic behaviors.

1.If you lose RC link for greater than :ref:`FS_LONG_TIMEOUT<FS_LONG_TIMEOUT>` in fixed wing flight set :ref:`FS_LONG_ACTN<FS_LONG_ACTN>` value below to obtain various behavior options:
- "0" : do nothing if in AUTO mode, otherwise switch to RTL mode
- "1" : switch to RTL mode
- "2" : cut throttle and glide in FWBA mode
- "3" : deploy parachute (assuming you have one setup)
- "4" : switch to AUTO mode and execute mission at current mission sequence pointer

2. If you lose RC link for greater than :ref:`FS_LONG_TIMEOUT<FS_LONG_TIMEOUT>` in VTOL flight, you will immediately QLAND, unless you select the following optional behavior:
- set :ref:`Q_OPTIONS<Q_OPTIONS>` bit 5 to switch to QRTL mode instead. (see #5 below)
- set :ref:`Q_OPTIONS<Q_OPTIONS>` bit 20 to switch to RTL mode instead. (see #3,4 below)

3. Anytime you switch to RTL (due either to manual mode change or failsafe action), do you want to execute an autoland sequence (does not need to actually have a land command, if some other action is desired), rather than just return and loiter around home?
- If yes,then set up a DO_LAND_START mission sequence and enable the :ref:`RTL_AUTOLAND<RTL_AUTOLAND>` parameter. See :ref:`do_land_start` for details of setup.

4. If in a VTOL mode, and you switch to RTL (due either to manual mode change or failsafe action), then set the :ref:`Q_RTL_MODE<Q_RTL_MODE>` parameter value as follows to determine the behavior:
- "0" : Switch to normal RTL mode, transitioning to fixed wing (see #3 above)
- "1" : Transition to fixed wing, fly towards home, transition back to VTOL mode, move to over home, switch to QLAND and land at home in VTOL.
- "2" : Transition to fixed wing, and do a special approach to home, transition back to VTOL mode, move to over home, switch to QLAND and land at home in VTOL
- "3" :Switch to QRTL mode. See below.

5. When switching to QRTL, instead of transitioning to fixed wing (assuming you are not close to home already), flying back to home, then switching to VTOL mode as you approach home, then switching to QLAND and landing at home (see :ref:`qrtl-mode` for more information), you can disable the fixed wing approach and return home and land in only VTOL mode if :ref:`Q_OPTIONS<Q_OPTIONS>` bit 16 set.



Q_OPTIONS
=========
In addition, the behavior of QuadPlane can be modified by the setting of the :ref:`Q_OPTIONS<Q_OPTIONS>` bitmask parameter (no bits are set, by default):
Expand Down Expand Up @@ -65,5 +96,5 @@ Behavior can be modified as well as by the :ref:`Q_RTL_MODE<Q_RTL_MODE>` and :re
The QuadPlane code requires GPS lock for proper operation. This is
inherited from the plane code, which disables inertial estimation of
attitude and position if GPS lock is not available. Do not try to fly a
QuadPlane indoors. It will not fly well
QuadPlane indoors. It will not fly well!!!!

0 comments on commit f22528c

Please sign in to comment.