Rimvydas Naktinis
9fdf39baf0
Plane: Added a method that returns current altitude relative to terrain, if available, or home otherwise.
9 years ago
Andrew Tridgell
4666b25258
Plane: initial implementation of QRTL for quadplane RTL
9 years ago
Michael du Breuil
de1e299754
Plane: Remove support for CONDITION_CHANGE_ALT
9 years ago
Tom Pittenger
6a83ad419a
Plane: moved update_flight_stage() inside setup_glide_slope()
...
the glide_slope gets calculated every time there's a major event such as mission item change or wp_proportion change so its good to update the flight stage then too because.
also logging stage when stage changes, might as well get an extra data point in there when it's timely
9 years ago
Andrew Tridgell
8a6e5ffe80
Plane: fixed bug in rangefinder landing
...
introduced with QLAND change
9 years ago
Andrew Tridgell
b47b558246
Plane: change code URL
9 years ago
Andrew Tridgell
f4ccf94dfc
Plane: added QLAND mode
...
for VTOL landing. Use for failsafe as well
9 years ago
Tom Pittenger
b8d5369ebd
Plane: add flight stage LAND_PREFLARE
9 years ago
Tom Pittenger
7978872e32
AP_Plane: set path_propportion in TECS
9 years ago
Jonathan Challinger
05eb723429
Plane: reflect renamed function in AP_AHRS
9 years ago
Tom Pittenger
113961b66e
Plane: compiler warning - double promotion
9 years ago
lvale
e18181e5c2
Plane: Uniformization of severities
...
Plane uniformization of severities
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Andrew Tridgell
86e8c7ed2f
Plane: add some safety to detect bad lidar readings
...
we only accept a lidar if it changes by 5% of its full range, and we
reject a lidar again if the correction between barometric and lidar
range changes by more than 30m
This allows us to cope with faulty lidars which may give a constant
reading
10 years ago
Andrew Tridgell
8f0e7e0693
Plane: fixed above_location_current() for non-terrain alt
...
thanks to Lekston for finding the bug (PR#2610)
10 years ago
Andrew Tridgell
554869033f
Plane: disabled rangefinder on APM2
...
this saves 5k of flash space, enough for support to be kept for
another release
10 years ago
Andrew Tridgell
b92c2409e4
Plane: added local millis() and micros() to reduce code size a bit
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Tom Pittenger
bd9b573969
Plane: Fix compile warnings
...
- const values declared as default double
- This is the first pass in fixing the warnings, trying to catch some low hanging fruit. All const double values are changed to float. For example: 1.0 is now 1.0f.
- Only except is in location.pde where some double stuff is happening
- I did not change the exponentials 1e7 type stuff which should be 1e7f. A different commit
10 years ago
Randy Mackay
0acc4af63c
Plane: replace range finder health with status
10 years ago
Michael du Breuil
867ca05e17
Plane: fix a relative altitude check for glide slope building
10 years ago
Michael du Breuil
4b1d71e390
Plane: rebuild the glide slope if we are above it and already climbing
...
(controlled by GLIDE_SLOPE_THR)
10 years ago
Andrew Tridgell
999710d0e1
Plane: fixed issue where auto is entered before GPS lock
...
thanks to Tom Pittenger for noticing this!
10 years ago
Andrew Tridgell
76f8b9b07c
Plane: support DO_SET_HOME MAVLink command
10 years ago
Andrew Tridgell
ae96a48efc
Plane: use location_path_proportion()
...
this should produce better glide slopes when the aircraft is off
course
10 years ago
Andrew Tridgell
186806c768
Plane: lowpass the rangefinder correction, not height
...
this should produce less lag as the rangefinder correction should be
changing much less
11 years ago
Andrew Tridgell
24622030b4
Plane: improved landing glide slope
...
we project a point 500m past the landing point to prevent
discontinuites close to the landing point
11 years ago
Andrew Tridgell
a6ee46086c
Plane: allow continued use of rangefinder data for 5s after loss of contact
...
this allows short outages to be ridden out
11 years ago
Andrew Tridgell
50f492a69f
Plane: added RNGFND_LANDING option
...
this allows the use of a rangefinder for landing flare and landing
approach
11 years ago
Andrew Tridgell
da7f871e34
Plane: prevent set_target_altitude_proportion() past dest waypoint
...
otherwise we could start climbing again on land
11 years ago
Andrew Tridgell
c06067c71b
Plane: fixed non-terrain landing
11 years ago
Andrew Tridgell
7def71d43a
Plane: improved landing approach and flare
...
flare if we are within the specified time of landing either vertically
or horizontally
11 years ago
Andrew Tridgell
e22ab50b16
Plane: fixed build warning
11 years ago
Andrew Tridgell
9184e47f84
Plane: added TERRAIN_LOOKAHD parameter
...
distance to look forward for terrain following
11 years ago
Andrew Tridgell
781c5bc5dd
Plane: use terrain extrapolation
...
use best effort extrapolation if we run out of terrain data
11 years ago
Andrew Tridgell
28facc220d
Plane: change threshold for no glide slope to 20m
...
40m is quite high for most planes
11 years ago
Andrew Tridgell
8610d9a8ea
Plane: added GLIDE_SLOPE_MIN parameter
...
this is used to prevent slow glide slopes being used for small
altitude changes in missions. This allows more accurate tracking of
altitude with terrain changes
11 years ago
Andrew Tridgell
9536124300
Plane: more accurate altitude tracking close to waypoints
...
don't use a glide slope if the altitude change is less than 15 meters
11 years ago
Andrew Tridgell
f983040401
Plane: more fixes for glide slope calculations
11 years ago
Andrew Tridgell
c9be610dca
Plane: fixed sense of altitude test for glide slope
11 years ago
Andrew Tridgell
9d6b745556
Plane: fixed terrain glide slope
11 years ago
Andrew Tridgell
88b73492c2
Plane: fixed APM2 build
11 years ago
Andrew Tridgell
b158b7e5a9
Plane: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE
11 years ago
Andrew Tridgell
49c28b747f
Plane: fixed glide slope for terrain following
11 years ago
Andrew Tridgell
3e320d71ab
Plane: added TERRAIN_FOLLOW parameter
...
when enabled RTL, CRUISE and rally points will use terrain altitude
11 years ago
Andrew Tridgell
d18c00d6fc
Plane: split up altitude handling
...
this creates altitude.pde for altitude handling, getting ready to add
terrain following
11 years ago