Andrew Tridgell
470a60f828
Plane: reset steering in MANUAL or when not stabilising
6 years ago
Andrew Tridgell
aa18c75689
Plane: decay fw rate integrators when at low airspeed
...
this prevents large fixed wing control surface integrators from
causing issues when we have wind from behind in hover
6 years ago
Andrew Tridgell
ebe2278f5d
Plane: reset rate controller integrators if not run for 2s
...
this prevents a bug where integrator buildup can happen from a
previous flight mode
6 years ago
Tom Pittenger
6970a66cad
Plane: refactor stick_mixing to library
6 years ago
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
6 years ago
Mark Whitehorn
487ad7a90f
Plane: add QACRO mode for quadplanes
...
use acro_r/p/y_rate params in qacro
port ACRO throttle handling from copter
handle non-tailsitter controls
6 years ago
Michael du Breuil
843c92ced5
Plane: Remove some redundant code/state resets
6 years ago
Michael du Breuil
e6bc44f471
Plane: Fix cases where quadplane level transition was not applied
6 years ago
Nikhil Upadhye
d1e93bae83
Plane: adding new mode QAUTOTUNE
...
copter like autotune support for quadplanes and tailsitter in VTOL mode.
cleanup
6 years ago
Andrew Tridgell
fa04c2d094
Plane: prevent jitter on surfaces due to speed scaling
...
when disarmed the k_throttle output can oscillate due to stage in the
loop we are at, even though actual output is zero. This can cause
jitter in the speed scaling, which causes surface movement
To fix, don't use k_throttle value when disarmed
6 years ago
Andrew Tridgell
da69bf3391
Plane: added an abstraction for reverse thrust
...
use have_reverse_thrust() and get_throttle_input()
6 years ago
Andrew Tridgell
1c162c8b64
Plane: ensure speed scaling covers full aircraft speed range
...
this is important for very fast or very slow aircraft
6 years ago
Andrew Tridgell
2215913b02
Plane: added speed scaling reduction for Q modes
...
when in a Q mode reduce surface movements at low airspeed, in case we
have the wind from behind us. This prevents the control surfaces from
causing instability
6 years ago
Michael du Breuil
8417bcc7d5
Plane: Add flight options bitmask
7 years ago
Tom Pittenger
512b327cd4
Plane: failsafe events to use enums instead of magical numbers : Non-functional change
7 years ago
Andrew Tridgell
85573b3ff3
Plane: fixed a division by zero
...
if min airspeed is zero
7 years ago
Michael du Breuil
d52f5155f0
Plane: Rename rc failsafe state members
7 years ago
Andrew Tridgell
552faa8f67
Plane: smoother tailsitter transitions
...
this smooths out tailsitter transitions in both directions, adding a
new FW to VTOL transition state
7 years ago
Andrew Tridgell
af893ddde7
Plane: implement Q_OPTIONS
...
this allows for NAV_TAKEOFF to be treated as NAV_VTOL_TAKEOFF in
quadplanes, and for level flight to be maintained during quadplane
transitions
7 years ago
Michael du Breuil
1bb806edb2
Plane: Use new landing interfaces
8 years ago
Andrew Tridgell
c787f4c56f
Plane: initial support for tailsitter transitions
8 years ago
Michael du Breuil
29b16dbafd
Plane: Refactor to request relative altitudes from AHRS
...
Removes the need for plane to do the math for finding the relative height.
Also caches the value at the same time we update current_loc, which is a
non behaviour change as that was the only time you could see a change in
the relative height propegate through the system anyways
8 years ago
Tom Pittenger
e709705ab8
Plane: describe flight stages without using specific stage name
8 years ago
Andrew Tridgell
081909bf6a
Plane: removed use of pwm_to_angle()
8 years ago
Andrew Tridgell
b83f50be0f
Plane: use new SRV_Channels API
8 years ago
Tom Pittenger
063f517424
Plane, TECS, AP_Landing: rename stage LAND_ABORT to ABORT_LAND
...
this will reduce confusion when searching for FLIGHT_LAND_* and you get a bunch of takeoff related hits. It will also make more sense when the landing library fully manages the FLIGHT_LAND stage entirely because it will not mange FLIGHT_LAND_ABORT
8 years ago
Tom Pittenger
c286ceba43
Plane: move enum FlightStages to AP_Vehicle::FixedWing
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
6aa3ded666
Plane: split main servo output functions into a separate file
8 years ago
Andrew Tridgell
d6890495aa
Plane: added swapped channel version of elevon/vtail/flaperon output
...
this makes it possible to setup an elevon plane without changing the
transmitter reversals
9 years ago
Tom Pittenger
ca32bcc58d
Plane: add new flight mode AVOID_ADSB to mimic GUIDED
9 years ago
Andrew Tridgell
c4c7a3051a
Plane: added support for secondary throttles
9 years ago
Andrew Tridgell
adb5a3ee1f
Plane: re-work AFS for new AP_AdvancedFailsafe API
9 years ago
Andrew Tridgell
5d6dfd927b
Plane: changes for AP_AdvancedFailsafe naming
9 years ago
Tom Pittenger
fc50f145ce
Revert "ArduPlane: Convert references to AP_Airspeed. Added automatic migration of ARSPD_FBW_MIN and ARSPD_FBW_MAX (plane parameter) to ARSPD_FBW_MIN and ARSPD_FBW_MAX (library parameter)."
...
This reverts commit da1b18d918
.
9 years ago
AndersonRayner
da1b18d918
ArduPlane: Convert references to AP_Airspeed. Added automatic migration of ARSPD_FBW_MIN and ARSPD_FBW_MAX (plane parameter) to ARSPD_FBW_MIN and ARSPD_FBW_MAX (library parameter).
9 years ago
Andrew Tridgell
327a057ee0
Plane: added internal combustion engine support
...
this allows for automatic engine start and restart
9 years ago
Andrew Tridgell
96d785f1c6
Plane: added auto_navigation_mode flag
...
this fixes a problem where modes like loiter and auto would allow for
rudder stick mixing even with STICK_MIXING=0
9 years ago
Tom Pittenger
0597dbd033
Plane: allow SET_ATTITUDE_TARGET to set rpy and throttle
9 years ago
Tom Pittenger
85afd9e245
Plane: remove guided roll flag, handle it with timer=0
9 years ago
Michael Day
8ac433f991
Plane: Can now command roll from a companion computer.
9 years ago
Andrew Tridgell
bf2e30f858
Plane: removed demo_servos()
...
this really didn't help much and slows down startup
9 years ago
E Thomas
7d824247af
Differential spoilers support, elevon offset
...
Fixed differential spoilers support, added elevon offset
See PR #2935
9 years ago
Tom Pittenger
ee29f38cdf
Plane: moved takeoff flap check to NORMAL checks.
...
TODP: add new flight stage FLIGHT_PRE_TAKEOFF to put this sort of thing into
9 years ago
Samuel Rosenstein
296b279f0d
Plane: fixed issue with preflight flaps. Flaps now go down in preflight mode
9 years ago
Michael du Breuil
41bb237799
Plane: remove throttle surpressed message
9 years ago
Andrew Tridgell
835235127c
Plane: prevent divide by zero in SITL
...
harmless on PX4
9 years ago
Tom Pittenger
af1407a155
Plane: disable parachute code when not enabled via compile option
9 years ago
Andrew Tridgell
da5ce37bbc
Plane: fixed gain on -ve stick mixing past 50%
...
fixed a sign error in calculating gain on -ve stick mixing beyond 50%
input
thanks to Doug Weibel for a log that showed this effect
9 years ago
Andrew Tridgell
eee06da1b5
Plane: use HAVE_PAYLOAD_SPACE()
9 years ago