Samuel Tabor
a715472353
Plane: Specify starting location to set_offset_altitude_location
3 years ago
Iampete1
b9d240460b
Plane: remove SpdHgt and use TECS direct
3 years ago
Sebastian Quilter
013de11916
ArduPlane: make rangefinder ranges m rather than cm
3 years ago
Iampete1
0549e08c5c
Plane: add mehtod to check terrain by mode
3 years ago
Peter Barker
3d34e061fe
ArduPlane: add and use HAL_QUADPLANE_ENABLED
3 years ago
Samuel Tabor
65a38b26a4
ArduPlane: altitude: rangefinder correction should be relative to the altitude source being used for navigation. This avoid applying it twice when there is an existing correction saved.
4 years ago
Andrew Tridgell
3bb840f794
Plane: implement slow descent in QRTL approach
...
this approaches in QRTL at ALT_HOLD_RTL alt, then descends to
Q_RTL_ALT close to the destination
4 years ago
Iampete1
fd2909d53f
Plane: change location refence frame correctly
4 years ago
Iampete1
60d26723ae
Plane: make TERRAIN_FOLLOW at AP_int32 bitmask, per mode option
4 years ago
Patrick José Pereira
cdc7f891a9
ArduPlane: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Andrew Tridgell
e5d580412e
Plane: fixed usage of rangefinder in landing with RNGFND_LANDING=0
...
this fixes two places where rangefinder can affect landing when
RNGFND_LANDING=0
4 years ago
Samuel Tabor
10111f92d5
Plane: Rename SOARING_ENABLED to HAL_SOARING_ENABLED and don't compare to ENABLED.
4 years ago
Henry Wurzburg
4115603f13
ArduPlane: add terrain follow disable switch for CRUISE/FBWB
5 years ago
Buzz
0f5177b291
Plane: Support a set of offboard MAVLink guided controls with rates
...
+ 3 rounds of fixes
5 years ago
Samuel Tabor
b9daae062c
AP_Soaring: Use enum class rather than typedef enum for states and hide details of these.
5 years ago
Samuel Tabor
170b599469
Plane: Required changes for conditional soaring compilation (fmuv2).
5 years ago
Samuel Tabor
e1f7122566
AP_Soaring: Improve tracking of enabled/disabled status.
5 years ago
Samuel Tabor
ed7e359f4d
Plane: Make target altitude track current altitude when gliding.
5 years ago
Peter Barker
6cd4dfba2c
Plane: use enum-class for RangeFinder Status
5 years ago
Andrew Tridgell
5c43b18672
Plane: fixed height_above_ground() for case when rangefinder is below min
...
this prevents a rangefinder that goes below min distance from causing
the calculations that depend on height above ground to fail
5 years ago
Andrew Tridgell
6572700baa
Plane: fixed an issue with landing on rising ground
...
when landing on rising ground we don't want to use the terrain look
fwd correction for the flare calculation as otherwise we will flare
too early (and thus too high)
5 years ago
Andrew Tridgell
1b775c96f5
Plane: added rangefinder correction by terrain data
...
allows for landing approach with terrain changes
6 years ago
Pierre Kancir
65b4ba0539
ArduPlane: use past_interval_finish_line and line_path_proportion from Location
6 years ago
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
6 years ago
Andrew Tridgell
2b6210d594
Plane: use WP height for height above ground in vtol landing
...
this allows for landings above or below the takeoff height without
requiring the use of terrain data. It allows both the use of vfwd
motor for holding against wind, and the correct height for land final
descent rate
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
f430fd14f6
Plane: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Peter Barker
acafb0f3c1
Plane: adjust for location flags being moved out of union
6 years ago
Peter Barker
7fd859da65
Plane: move home state into AP_AHRS
7 years ago
Michael du Breuil
1a3ca43e86
Plane: Don't check FS_SHORT_TIMEOUT if it's disabled
...
Also renames the check_minimum_altitude() to reflect that it's only used
for FBWB.
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
Peter Barker
5a8f01c19c
Plane: use send_text method on the GCS singleton
8 years ago
Michael du Breuil
1bb806edb2
Plane: Use new landing interfaces
8 years ago
Randy Mackay
c0f155fd27
Plane: use only downward facing rangefinder
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
61bc0a6206
Plane: check stage==LAND instead of landing.in_progress
8 years ago
Tom Pittenger
e709705ab8
Plane: describe flight stages without using specific stage name
8 years ago
Tom Pittenger
04f32b6ec6
Plane: simplify flight stage landing check to use landing.in_progress
8 years ago
Tom Pittenger
c286ceba43
Plane: move enum FlightStages to AP_Vehicle::FixedWing
8 years ago
Tom Pittenger
83f0a8114b
Plane: use a common reset for uniform landing wipe
8 years ago
Tom Pittenger
db42252168
Plane: port the rest of plane/landing.cpp to AP_Landing
8 years ago
Tom Pittenger
896b931a7c
Plane: Move auto_state variables to AP_landing members
8 years ago
Tom Pittenger
0ffeed644c
Plane: remove define RANGEFINDER_ENABLED - always enabled
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
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
8 years ago
Tom Pittenger
350ed20460
Plane: ensure rangefinder last_time resets
...
ensure rangefinder_state.last_correction_time_ms resets to zero via memset(&rangefinder_state, 0..)
8 years ago
Tom Pittenger
ca32bcc58d
Plane: add new flight mode AVOID_ADSB to mimic GUIDED
9 years ago
Tom Pittenger
26efd90603
Plane: allow landing height adjustment on wp before land (aka approach wp)
9 years ago
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
9 years ago
Tom Pittenger
f05c698176
Plane: fix compile error for RANGEFINDER_ENABLED
...
Plane: #define check for rangefinder enabled in relative_ground_altitude()
9 years ago
Andrew Tridgell
e05c7b3367
Plane: check if terrain following is enabled in AGL calculation
9 years ago