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