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.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
5ac62c27e2
Plane: reduce change of false rangefinder readings triggering a flare
...
This doesn't count repeated readings towards the rangefinder count,
and resets the counter if the change is more than 20% of full
range. This greatly reduces the impact of poor sonar sensors for
landing
2016-10-23 15:53:12 +11:00
Ferrin Benjamin Katz
38581669ec
Plane: slow down home update
...
Moved the code theat updates the home position while the aircraft is
unarmed from 10hz loop to one second loop and ensured that is does not
update more then once every 5 seconds. Closes issue 4311.
2016-10-17 09:50:25 +11:00
Andrew Tridgell
5724aef8b3
Plane: support automatic servo trimming
...
now that we have separated RC input from servo output with
SERVO_RNG_ENABLE=1 we can do full automatic servo trimming as an
option
2016-10-16 15:20:47 +11:00
Andrew Tridgell
be1109174e
Plane: apply elevon and vtail mixers after SRV_Channel remap
...
this is needed to ensure that changes in RCn_MIN/MAX don't cause
changes in the output handling for elevon nd vtail planes
2016-10-15 16:59:36 +11:00
Andrew Tridgell
a23c373f16
Plane: fixed servo mixing for AFS and failsafe case
2016-10-15 16:59:35 +11:00
Andrew Tridgell
8170df7ba8
Plane: added servo remapping object
2016-10-15 16:59:35 +11:00
Andrew Tridgell
c7f738c284
Plane: separate out the output channel mixing
...
this provides a framework for other output mixing types
2016-10-15 16:59:35 +11:00
Andrew Tridgell
eb67c97bb2
Plane: split out flap output functions
2016-10-15 16:59:34 +11:00
Andrew Tridgell
40c6ebf61a
Plane: refactor more of servos output code to be easier to read
2016-10-15 16:59:34 +11:00
Andrew Tridgell
33f17588b2
Plane: added auto fence enable on VTOL takeoff
...
fixes issue#724
2016-08-29 18:04:42 +10:00
Andrew Tridgell
a5f20d8c44
Plane: fix for AP_FrSky_Telem API change
2016-08-25 10:16:19 +10:00
floaledm
43006a31a3
Plane: compatibility with revised AP_Frsky_Telem class
2016-08-25 10:16:18 +10:00
floaledm
71921f3aa4
Plane: removed frsky_telemetry_send scheduled task
2016-08-25 10:16:17 +10:00
Tom Pittenger
b187e1f9a6
Plane: add reason to set_mode()
2016-08-17 22:38:54 -07:00
Tom Pittenger
285e41bac6
Plane: add avoidance_adsb framework for object avoidance
2016-08-17 22:38:54 -07:00
Tom Pittenger
c4460a285c
Plane: remove adsb sensor library based avoidance
...
adsb based avoidance has been moved to AP_Avoidance library
2016-08-17 22:38:54 -07:00
Tom Pittenger
fa326de7fa
Plane: add adsb to failsafe structure and report in heartbeat to GCS
2016-08-17 22:38:54 -07:00
Andrew Tridgell
adb5a3ee1f
Plane: re-work AFS for new AP_AdvancedFailsafe API
2016-08-16 12:55:51 +10:00
Andrew Tridgell
5d6dfd927b
Plane: changes for AP_AdvancedFailsafe naming
2016-08-16 12:55:50 +10:00
Tom Pittenger
e0136dc545
Plane: remove AP_Vehicle::FixedWing dependency in ap_airspeed
2016-08-08 00:02:42 -07:00
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
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
8dad05d12e
Revert "Airspeed: store reference in libraries and populate it"
...
This reverts commit c090ba2257
.
2016-08-07 17:54:24 -07:00
Tom Pittenger
c090ba2257
Airspeed: store reference in libraries and populate it
...
- also had to move the initial definition in plane.h so it happened before the others.
2016-08-04 11:06:44 -07:00
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).
2016-08-04 10:09:04 -07:00
Tom Pittenger
f90957e7ed
Plane: remove all threat logic in adsb lib in favor of avoidance lib
2016-08-01 15:27:41 -07:00
Andrew Tridgell
327a057ee0
Plane: added internal combustion engine support
...
this allows for automatic engine start and restart
2016-07-25 10:06:03 +10:00
Andrew Tridgell
02babb71b3
ArduPlane: adjust for 16 channels in SERVO_OUTPUT_RAW
2016-07-25 10:06:02 +10:00
Andrew Tridgell
3f0a8d1761
Plane: added AP_Button support for plane
...
this also adds the g2 parameter table
2016-07-22 15:01:20 +10:00
Tom Pittenger
26efd90603
Plane: allow landing height adjustment on wp before land (aka approach wp)
2016-07-20 22:29:31 -07:00
Andrew Tridgell
4da3236c07
Plane: separate out landing height adjustment from barometer changes
...
this stores a landing height adjustment for an aborted landing
without adjusting barometer readings, applying them only on landing
2016-07-20 22:04:21 -07:00
Tom Pittenger
7751bee3be
Revert "Plane: coverity scan - variables not initialized in constructor"
...
This reverts commit 9b807fa8a5
.
2016-07-11 22:02:30 -07:00
Tom Pittenger
9b807fa8a5
Plane: coverity scan - variables not initialized in constructor
2016-07-05 13:31:51 -07:00
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
2016-07-05 12:52:13 +10:00
Tom Pittenger
0597dbd033
Plane: allow SET_ATTITUDE_TARGET to set rpy and throttle
2016-07-01 08:28:53 -07:00
Tom Pittenger
85afd9e245
Plane: remove guided roll flag, handle it with timer=0
2016-06-30 07:48:37 -07:00
Michael Day
8ac433f991
Plane: Can now command roll from a companion computer.
2016-06-30 10:27:44 -04:00
Andrew Tridgell
ec367d4a09
Plane: re-order channel initialisation
...
this fixes a problem with spurious throttle output during board
startup. Many thanks to Marco for finding this!
2016-06-30 16:48:30 +10:00
Andrew Tridgell
bf2e30f858
Plane: removed demo_servos()
...
this really didn't help much and slows down startup
2016-06-27 10:19:26 +10:00
Tom Pittenger
b3f182157c
Plane: take advantage of rangefinder support in relative_ground_altitude()
2016-06-03 23:43:43 -07:00
Tom Pittenger
4db5b80b37
Plane: add flag for auto_state.land_in_progress
2016-05-31 09:46:51 -07:00
Peter Barker
af5a52e2aa
Plane: subclass GCS_MAVLink in place of defining its functions for it
2016-05-29 16:21:21 +10:00
Andrew Tridgell
d3494d1369
Plane: don't stall EKF during baro cal
2016-05-24 17:00:56 +10:00
Tom Pittenger
36a1054f77
Plane: remove Tom Pittenger as an author since he's now listed as a lead
2016-05-17 19:16:02 -07:00
Tom Pittenger
c9167f89eb
Plane: add Tom Pittenger as co-lead developer
2016-05-17 19:03:38 -07:00
Tom Pittenger
6746b4227a
Plane: handle large negative baro offsets (corner case) to self-trigger a land-abort go-around
...
new param: LAND_ABORT_DEG
@Description: This parameter is used when using a rangefinder during landing for altitude correction from baro drift (RNGFND_LANDING=1) and the altitude correction indicates your altitude is higher than the intended slope path. Steeper slopes can result in crashes so this allows the option to remember the baro offset and self-abort the landing and come around for a another landing with the correct baro offset applied for a perfect slope. An auto-abort go-around will only happen once, next attempt will not auto-abort again. This operation happens entirely automatically in AUTO mode. This value is the delta degrees threshold to trigger the go-around. Example: if set to 5 deg and the mission planned slope is 15 deg then if the new slope is 21 then it will go-around. Set to 0 to disable. Requires LAND_SLOPE_RCALC > 0.
2016-05-17 15:41:09 -07:00
Tom Pittenger
f048aafb76
Plane: store auto land slope
...
- also changed order of landing slope calc but is functionally the same
2016-05-17 15:39:05 -07:00
Tom Pittenger
034cd2413e
Plane: re-calc landing glide slope to gracefully handle baro offset during long flights
...
New param: LAND_SLOPE_RCALC
@Description: This parameter is used when using a rangefinder during landing for altitude correction from baro drift (RNGFND_LANDING=1) and the altitude correction indicates your altitude is lower than the intended slope path. This value is the threshold of the correction to re-calculate the landing approach slope. Set to zero to keep the original slope all the way down and any detected baro drift will be corrected by pitching/throttling up to snap back to resume the original slope path. Otherwise, when a rangefinder altitude correction exceeds this threshold it will trigger a slope re-calculate to give a shallower slope. This also smoothes out the approach when flying over objects such as trees. Recommend a value of 2m.
default value is 2 (so, enabled by default)
2016-05-17 15:39:04 -07:00
Tom Pittenger
8a58f5a5eb
Plane: convert airspeed_error_cmd to airspeed_error (in meters)
2016-05-13 17:21:59 -07:00
Andrew Tridgell
2a0476483b
Plane: make takeoff less noisy with zero timeout
2016-05-14 08:26:10 +10:00