Pierre Kancir
9a121dc7c4
ArduPlane: add DISTANCE_SENSOR support
2017-06-08 01:31:52 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
ccee841578
Plane: NFC SYS_NUM_RESETS is a read-only variable
2017-06-07 19:53:03 +09:00
Mark Whitehorn
6607dafc66
ArduPlane: change is_tailsitter() to tailsitter_active()
2017-06-07 20:21:49 +10:00
Mark Whitehorn
53b82d1d4d
ArduPlane: add comments on tailsitter pitch limits
2017-06-07 20:21:49 +10:00
Mark Whitehorn
65755454e0
ArduPlane: set tailsitter VTOL pitch limits using only Q_ANGLE_MAX
2017-06-07 20:21:49 +10:00
Dr.-Ing. Amilcar Do Carmo Lucas
14b214eb9b
Plane: remove FS parameters default values macros.
...
They just add an un-necessary level of indirection in the code. The parameters are run-time configurable now.
2017-06-07 17:46:39 +10:00
Michael du Breuil
87c076da4d
ArduPlane: Fix missing break in GCS_MAVLink
...
Was causing AOA_SSA to send a landing message as wel
2017-06-05 13:12:01 +09:00
Randy Mackay
f7e830cfad
Plane: pixhawk mixer supports motors 9 to 12
2017-05-27 14:21:13 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
405e0bb9d9
Plane: Add missing @RebootRequired: True
2017-05-27 01:55:55 +01:00
Paulo Neves
a45dd30c1d
Plane: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support.
2017-05-25 09:35:22 +09:00
Michael du Breuil
19a5475195
Plane: Send landing messages
2017-05-24 15:22:27 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
2f5f8eb323
Plane: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
2017-05-17 18:07:25 +10:00
Michael du Breuil
92d505598b
ArduPlane: Poll AP_Landing for fly forward information
2017-05-15 14:50:29 -07:00
Andrew Tridgell
92f88e9b33
Plane: fixed climb rate for quadplanes in CRUISE
...
the high loop rate of quadplanes led to less than 1cm/loop change in
height, which got truncated to zero. Adjusting height at 10Hz fixes
that.
Thanks to Marco for reporting this!
2017-05-10 08:03:23 +10:00
Andrew Tridgell
6eaad59115
Plane: improve vectored tailsitter takeoff
...
this gives extra pitch input when taking off a vectored tailsitter,
allowing the motors to point straight up for easy takeoff
thanks to Leonard for the idea!
2017-05-07 09:10:44 +10:00
Andrew Tridgell
a46799d34e
Plane: removed AP_Airspeed from vehicle code
2017-05-04 22:59:02 -07:00
André Kjellstrup
21b8d3cb3d
Plane: Removed scary autotakeoff message.
...
This message does not provide anything useful, but is rather scary to
get moments before launch.
If it's somehow meant to provide useful information, or an action "Timer
interrupted AUTO" should be replaced by something else.
2017-05-04 22:37:32 -07:00
Peter Barker
378015691b
Plane: stop appending lf to PERF message
2017-05-01 16:21:55 +01:00
Peter Barker
084242cf03
Plane: move init of DataFlash references into vehicle init
...
It is possible to start a log before the existing codepath is crossed.
2017-05-01 15:04:34 +01:00
Andrew Tridgell
708b483d77
Plane: prepare for 3.8.0beta5
2017-05-01 20:30:32 +10:00
Andrew Tridgell
2706c9d57a
Plane: use common send_queued_parameters()
2017-05-01 14:36:10 +10:00
Andrew Tridgell
351304ebcb
Plane: don't set fly-forward when transitioning
...
when quad motors are providing assistance don't see the fly-forward
flag in the AHRS. This will lower the chance of EKF yaw confusion
2017-05-01 14:27:45 +10:00
Andrew Tridgell
3eeff938b0
Plane: call BoardConfig.init_safety() at end of startup
...
this fixes a bug where motors can start on soft reboot
2017-04-30 21:47:04 +10:00
Mark Whitehorn
dc10675965
ArduPlane: suppress differential thrust when throttle is zero
...
this prevents motors from spinning when disarming in FBWA
2017-04-28 16:08:50 -07:00
Andrew Tridgell
5a57aafb98
Plane: reduce pitch demand on takeoff on roll error
2017-04-28 16:34:33 +10:00
Andrew Tridgell
954905e0eb
Plane: allow battery failsafe with usb connected
...
some people connect USB to allow connections from a companion
computer. The arming check is sufficient to prevent unwanted battery
failsafes when bench testing
2017-04-28 16:33:49 +10:00
Andrew Tridgell
888edcd709
Plane: fixed duplicate include of AP_ADC library
2017-04-27 18:32:26 +10:00
Andrew Tridgell
7ea0f65590
Plane: removed incorrect comment
2017-04-24 16:56:23 +10:00
Andrew Tridgell
06b0742481
Plane: fixed jump in qhover on takeoff
...
Z controller PID is from -1 to 1
thanks to Leonard for spotting this
2017-04-24 16:55:41 +10:00
Andrew Tridgell
b9debba509
Plane: make ground test easier for tilt
2017-04-24 16:55:41 +10:00
Andrew Tridgell
76870f8e01
Plane: improve fast/slow tilt in ground tests
...
when disarmed use the slow tilts so users can judge the rates it will
use in flight
2017-04-24 16:55:41 +10:00
Andrew Tridgell
aab20317a0
Plane: fixed position control in QLAND_FINAL
2017-04-24 16:55:41 +10:00
Andrew Tridgell
b1f1ace736
Plane: support vectored yaw tiltrotors
...
this adds support for tiltrotors which control yaw by vectoring the
forward motors. This avoids the need for the rear motor on a
tilt-tricopter to have a tilt servo
2017-04-24 16:54:41 +10:00
Andrew Tridgell
fedabd1ace
Plane: added logging of quadplane desired yaw
...
makes analysis of takeoffs easier
2017-04-24 16:52:16 +10:00
Andrew Tridgell
2d9c3e3d93
Plane: added EKF yaw reset handling to quadplane
...
this follows the implementation from copter. Thanks to Leonard for the
suggestion
2017-04-24 16:52:16 +10:00
Andrew Tridgell
516bf26719
Plane: fixed QRTL change when coming from loiter
...
the nav controller can think we have already reached the loiter target
if we were last in a LOITER when we switch to RTL. In that case it
would switch to QRTL immediately
found by Leonard (thanks!)
2017-04-24 16:28:59 +10:00
Andrew Tridgell
be1b50d6e2
Plane: support auto trim for separate elevon and vtail channels
...
this supports SERVO_AUTO_TRIM=1 for elevons and vtails setup using the
new separate functions
2017-04-24 16:26:08 +10:00
Andrew Tridgell
b4ffcfa6bd
Plane: added support for elevon and vtail servo functions
...
these make trimming and limiting servo movement easier
2017-04-24 16:26:08 +10:00
Peter Barker
b5b8620d04
Plane: log GPS detection state to DF on log startup
2017-04-23 21:04:17 +01:00
Eugene Shamaev
ca84ab36be
Plane: AOA and SSA estimations are added to parameters and data logs
2017-04-19 20:48:42 +10:00
Andrew Tridgell
88e02c7b35
Plane: log the throttle mix for quadplane copter control
2017-04-19 09:08:43 +10:00
Andrew Tridgell
8e3f8f47c8
Plane: tilt motors fast in final stages of quadplane transition
...
when transition of tilt quadplane has reached the stage where the tilted
motors are used solely for fwd thrust and rear motors are off we should
move the tilt to full forward rapidly
2017-04-19 09:08:14 +10:00
Tom Pittenger
5b47927937
Plane: pre-launch flaps incorrectly always disabled
...
Pre-launch flaps are always disabled by checking current state against zero (which it always will be) instead of the param which is what it was supposed to be checking.
2017-04-18 14:40:17 -07:00
Andrew Tridgell
d5ec7b0aad
Plane: fixed a sign error in the angle assist code
...
thanks to Leonard for finding this!
2017-04-18 22:09:22 +10:00
Andrew Tridgell
b15b11e32d
Plane: always stabilize with tailsitters
2017-04-14 12:48:08 +10:00
Michael du Breuil
b850c1041f
Plane: Send BATTERY_STATUS
2017-04-12 10:21:49 +09:00
Andrew Tridgell
46d910539c
Plane: fixed a warning
2017-04-11 17:34:40 +10:00
Andrew Tridgell
642a6acfcb
Plane: support thrust vectoring in tailsitters
...
adds Q_TAILSIT_VHGAIN and Q_TAILSIT_VFGAIN, allowing for thust
vectoring in both fixed wing and hover
2017-04-11 17:34:40 +10:00
Andrew Tridgell
664e41cec6
Plane: bring in demanded climb rate over 1 second
...
when we engage the Z controller in quadplane we bring in the climb
rate slowly to prevent a sudden change in motor demand
2017-04-09 16:45:19 +10:00
Andrew Tridgell
17ba8b3304
Plane: raise logging rate for PID and servos
2017-04-09 16:45:19 +10:00
Andrew Tridgell
0cf571d338
Plane: moved Z altitude target reset
...
reset alt target whenever we have not run Z controller for 2s
2017-04-09 16:45:19 +10:00
Mark Whitehorn
7679b758b0
Plane: add parameter RUDD_DT_GAIN for dual motor tailsitter
...
controls rudder to differential thrust mixing in FW mode
2017-04-06 08:29:44 +10:00
Michael du Breuil
876ffa351b
Plane: Update L1 constructor for new arguments
2017-04-06 08:26:04 +10:00
Andrew Tridgell
acaef22416
Plane: improve transition from QSTABILIZE to FBWA or QHOVER
2017-04-05 20:00:29 +10:00
Andrew Tridgell
a9b8e4b5d3
Plane: prepare for 3.8.0beta4
2017-04-04 20:49:10 +10:00
Andrew Tridgell
36d8f730e1
Plane: setup better defaults for tailsitters
2017-04-04 10:15:08 +10:00
Andrew Tridgell
48ae2f2de0
Plane: changed default THR_MAX to 100
...
we have left it at 75 for far too long
2017-04-04 08:19:41 +10:00
Andrew Tridgell
6a90257d2a
Plane: fixed attitude logging for tailsitters
2017-03-31 11:30:44 +11:00
Andrew Tridgell
c76eadf4f6
Plane: add available memory to PM message
2017-03-27 14:35:21 +09:00
Andrew Tridgell
5d06e4238f
Plane: make the quadplane motors var_info dynamic
...
this will allow for more quadplane motors class types
2017-03-25 16:22:10 +11:00
Michael du Breuil
649ef0fc16
Plane: Only consider a takeoff as begun if the safety switch has been pressed
2017-03-23 16:55:47 -07:00
Andrew Tridgell
af97a3974b
Plane: initialise target height correctly on quadplane transition
...
this fixes a bug where a plane in QSTABILIZE would drop suddenly if
switched to FBWA when the target altitude had not been initialised
2017-03-22 21:34:40 +11:00
Andrew Tridgell
bb158a437e
Plane: handle bad Q_FRAME_CLASS
...
default to quad with a warning. This prevents users getting stuck
without being able to set Q_ENABLE=1
thanks to Leonard for noticing
2017-03-18 22:10:20 +11:00
Andrew Tridgell
e3a8d477f5
Plane: improve tiltrotor transition strategy
...
avoid running forward motors at high throttle when transitioning to a
VTOL mode
2017-03-14 14:42:20 +11:00
Andrew Tridgell
3f7e7d456f
Plane: in fixed wing mode slave quadplane attitude rate controller
...
For quadplanes this uses the attitude controller from fixed wing
when using the multicopter controller to assist fixed wing
flight. This prevents a rate mismatch between the two controller
leading to oscillation
2017-03-14 14:42:20 +11:00
Andrew Tridgell
2db8589f49
Plane: smarter Z controller initialisation for quadplanes
...
this is more generic than the previous one used only for the full
position controller
2017-03-14 14:42:20 +11:00
Andrew Tridgell
dd4f56dd98
Plane: added PIQ messages for quadplane PIDs
...
keep them separate from fixed wing PIDs, so we can watch the
interaction between the PIDs in transitions
2017-03-14 14:42:20 +11:00
Andrew Tridgell
0e175179a6
Plane: log home and origin on logging start
2017-03-14 10:51:15 +11:00
Andrey Kolobov
35d406aeab
Plane: added a soaring controller to Arduplane
2017-03-14 08:53:10 +11:00
Michael du Breuil
9e893eacd1
Plane: Change some user facing statustexts
2017-03-08 00:59:56 -08:00
Michael du Breuil
041fe38ba6
Plane: Update build tools for deepstall PID dependency
2017-03-02 12:38:59 +11:00
Michael du Breuil
cf10b7b841
Plane: Add support for landing PID's and servo control
2017-03-02 12:38:59 +11:00
Michael du Breuil
1bb806edb2
Plane: Use new landing interfaces
2017-03-02 12:38:59 +11:00
Andrew Tridgell
abcc75009d
Plane: move relay init earlier
...
allows relay pins to be used as pullups for other sensors (such as
LidarLiteV3)
2017-03-01 22:44:37 +11:00
Randy Mackay
eb746eaeef
Plane: fix SYSID_ENFORCE parameter description
2017-02-28 15:08:17 +09:00
Michael du Breuil
fbf6050876
Plane: Reset home to AHRS position rather then snapshotting GPS
2017-02-28 11:33:53 +11:00
Randy Mackay
c0f155fd27
Plane: use only downward facing rangefinder
2017-02-27 15:18:25 +09:00
Andrew Tridgell
4ff5bf5af5
Plane: zero integrators and set throttle mix
...
this zeros fixed wing integrators during TRANSITION_AIRSPEED_WAIT and
uses a zero throttle mix during TRANSITION_TIMER. This should allow
the fixed wing controller more time to adapt to forward flight
2017-02-26 09:20:51 +11:00
Andrew Tridgell
c061d5615b
Plane: added manual input mask for tailsitter prop-hang
...
This adds new parameters Q_TAILSIT_MASK and Q_TAILSIT_MASKCH. These
parameters allow a user to use the tailsitter capabilities of a 3D
plane to teach themselves to prop-hang.
It works by allowing the user to setup a switch on their transmitter
to enable manual pass-thru of a set of the input channels to outputs
when in tailsitter hover. The user can then use that switch to allow
learning of hover control in a 3D plane one channel (or two channels)
at a time.
2017-02-26 09:20:13 +11:00
Andrew Tridgell
3bb25eb194
Plane: added Q_TAILSIT_INPUT
...
this allows the user to control tailsitters either in body frame (like
a plane) or in earth frame (like a multicopter). This is useful for
people wanting to learn to fly prop-hang on 3D planes
2017-02-26 09:20:13 +11:00
Andrew Tridgell
ea5186340b
Plane: added Q_TILT_RATE_UP and Q_TILT_RATE_DN as separate parameters
...
allow control of tilt rate separately for UP and DOWN
always allow at least 90 degrees/second for switching to MANUAL
2017-02-25 17:53:26 +11:00
Tom Pittenger
4ccd59f394
Plane: allow exiting loiter_to_alt in cases where you get stuck
...
- check for scenarios where updrafts can keep you from loitering down indefinitely.
2017-02-23 05:15:49 -08:00
Andrew Tridgell
a4c5247fba
Plane: prepare 3.8.0-beta3
...
key fix is the servo slew rate bug
2017-02-22 07:25:47 +11:00
Tom Pittenger
69a10042eb
Plane: always stream RPM data over mavlink when enabled
2017-02-21 11:16:27 -08:00
Tom Pittenger
67486dc3f0
Plane: always log RPM when enabled
2017-02-21 04:20:01 -08:00
Peter Barker
97145f20fc
Plane: fix startup of CLI menu system
2017-02-20 00:06:23 -08:00
Andrew Tridgell
07ab04897d
Plane: reset roll/pitch integrators while tailsitter active
...
this prevents integrator buildup while flying in hover
2017-02-18 22:23:58 +11:00
Andrew Tridgell
b3380ecfa7
Plane: support twin-engine planes
...
with differential thrust for yaw
2017-02-18 17:26:43 +11:00
Andrew Tridgell
e8b11924f8
Plane: split out the tailsitter transition complete code
...
use both roll and pitch to trigger completion of transition. This
copes with situations where the plane has managed to get itself rolled
over far enough that it can't recover into hover
2017-02-18 17:26:43 +11:00
Andrew Tridgell
d5a3f844f1
Plane: changes for AC_WPNav
2017-02-18 17:26:43 +11:00
Andrew Tridgell
c787f4c56f
Plane: initial support for tailsitter transitions
2017-02-18 17:26:43 +11:00
Andrew Tridgell
83f3cee99e
Plane: initial hooks for tailsitter support
2017-02-18 17:26:43 +11:00
Andrew Tridgell
4e4f5a7ac9
Plane: allow tailsitters to takeoff with any attitude
2017-02-18 17:26:43 +11:00
Andrew Tridgell
0fc04b0158
Plane: setup plane frame type parameter flags
2017-02-14 19:50:01 +11:00
Andrew Tridgell
c294519925
Plane: lower default Q_M_SPOOL_TIME to 0.25
2017-02-14 09:23:17 +09:00
Peter Barker
1d7994e9ba
Plane: create GCS_Plane subclass
2017-02-13 17:03:06 +11:00
Peter Barker
98c4b48161
Plane: not in log download upon log erase
...
erase is a synchronous operation
2017-02-13 11:36:16 +11:00
Peter Barker
49bf336539
Plane: Support for a GCS singleton
2017-02-13 09:32:01 +11:00
Peter Barker
d060670ba3
Plane: rename gcs[] to gcs_chan[]
...
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
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
2017-02-13 09:23:14 +11:00