Commit Graph
81 Commits
Author SHA1 Message Date
Peter Barker 1208c27d5b AP_Landing: use the standard PARAMETER_CONVERSION annotation
The LAND_PITCH_CD to LAND_PITCH_DEG conversion carried its date in prose
("added January 2024") rather than in the standard form, so a grep for
conversion vintages missed it.
2026-08-31 08:18:26 +10:00
Peter Barker 09b50bf223 AP_Landing: correct airspeed returned in bad configuration case
in the case the user has mis-specified their landing type we would return their landing speed out by a factor of 100.
2026-07-13 13:06:57 +10:00
Peter Barker 512761df1f AP_Landing: use metres/second for target airspeed in AP_Landing interface 2026-07-13 13:06:57 +10:00
Peter Barker 0b4f156ff5 AP_Landing: convert backend target airspeed methods to m/s 2026-07-13 13:06:57 +10:00
TharakaUJ 06066e9889 AP_Landing: increase throttle slew rate parameter width
Increase the storage width of throttle slew rate parameters from AP_Int8
to AP_Int16 to allow higher values.

Affected parameters:
 - THR_SLEWRATE
 - TKOFF_THR_SLEW
 - Landing THR_SLEW

The parameter range is increased from 127 to 500 (%/s). This increases the
maximum allowed slew rate but does not change the parameter resolution.

Existing parameters are migrated using convert_parameter_width(AP_PARAM_INT8)
to preserve stored values.

Fixes #2024
2026-03-09 23:37:10 +00:00
rubenp02 de70b8b09e AP_Landing: Add is_on_final public method
Introduced the is_on_final public method, which determines if the
landing is at the pre-flare stage or later, so the aircraft is on final
for landing. Similar to the existing is_flaring and is_on_approach
methods.
2025-05-14 16:42:12 +01:00
Andrew Tridgell cf443a889c AP_Landing: fixed assumption of AMSL WPs
the AP_Landing library assumed AMSL waypoints for both prev_WP_loc and
next_WP_loc. This led to an incorrect glide slope for a NAV_LAND fixed
wing landing when the landing WP is terrain relative.

This change fixes the code to handle either an AGL or AMSL location,
which are the only two location types used in plane
2025-05-14 09:52:20 +10:00
Henry Wurzburg a7f7b37c80 AP_Landing: add AutoLand fixed-wing mode 2024-12-31 09:18:49 +11:00
Iampete1 b16f70a83d AP_Landing: restart_landing_sequence get current location and pass it to get_landing_sequence_start 2024-04-02 11:11:59 +11:00
Andrew Tridgell 3fddc487df AP_Landing: convert LAND_PITCH_CD to LAND_PITCH_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell 180a738e19 AP_Landing: convert ARSPD_FBW_MIN/MAX to AIRSPEED_MIN and AIRSPEED_MAX 2024-01-23 15:00:30 +11:00
Andrew Tridgell ed13b97526 AP_Landing: change TRIM_ARSPD_CM to AIRSPEED_CRUISE 2024-01-23 15:00:30 +11:00
Peter Barker a5ccb1d312 AP_Landing: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Tom Pittenger 7a9c6eea9c AP_Landing: move wind helper functions to AP_AHRS 2023-12-26 10:20:23 +11:00
Peter Barker 6df3f18440 AP_Landing: correct compilation when GCS library not available 2023-12-12 11:41:47 +11:00
Ryan Beall 1d70180809 AP_Landing: Add Landing Max Throttle Option 2023-01-24 10:19:56 +11:00
Ryan Beall 2a4c453cb0 AP_Landing: Correct WIND_COMP gain to percent 2023-01-24 10:19:56 +11:00
Ryan Beall 5b00c9b030 AP_Landing: Add Headwind Compensation Param
Remove git action
2023-01-24 10:19:56 +11:00
Paul Riseborough 9f806cad80 AP_Landing: Make flare extension aim point compensation tuneable 2022-11-18 05:43:59 +11:00
Peter Barker 28a9622a1e AP_Landing: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Iampete1 380d174e32 AP_Landing: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
Iampete1 3942ee0811 AP_Landing: fix complation without fence 2022-07-27 19:04:56 +10:00
Tom Pittenger 28ab8ef316 AP_Landing: change LAND_ABORT_THR param docs to match code and wiki of 90% 2022-07-25 12:45:50 -07:00
Peter Barker 8ec0eed749 AP_Landing: stop libraries including AP_Logger.h in .h files
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h

This necessitated moving The PID_Info structure out of AP_Logger's
namespace.  This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!

There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
2022-04-08 19:18:38 +10:00
Iampete1 1c195d01b8 AP_Landing: remove SpdHgt and use TECS direct 2021-11-13 08:05:39 +11:00
Iampete1 2bad7734db AP_landing: hide deepstall params with enable flag 2021-08-24 09:38:46 +10:00
Peter Barker a7ab766fda AP_Landing: enable deepstall landing to be compiled out of the code 2021-07-06 12:38:21 +10:00
vierfuffzig b922181f63 AP_Landing: fix advanced param metadata 2021-05-25 12:36:59 +10:00
James O'Shannessy 26811ad46d AP_Landing: Autoenable fence if required when landing was aborted 2021-03-05 14:52:46 +11:00
Peter Barker ffb87e68c5 AP_Landing: replace '@User: User' with '@User: Standard' 2020-09-22 14:56:04 +10:00
Buzz d4df145b4b ArduPlane: option to keep landing throttle at thr_min during flare and touchdown, not zero. 2020-05-20 11:29:45 +10:00
Buzz dc3db0476b AP_Landing: option to keep landing throttle at thr_min during flare and touchdown, not zero. 2020-05-20 11:29:45 +10:00
Michael du Breuil 17cec7cf2b AP_Landing: Directly include needed headers 2019-08-28 13:13:03 +10:00
Peter Barker 53f8aa2b92 AP_Landing: correct format string 2019-08-16 13:47:39 +10:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Andrew Tridgell 9285e9df20 Revert "AP_Landing: yaw correction on landing"
This reverts commit 4f9c492f78.

That commit was causing the landing issue here:

https://github.com/ArduPilot/ardupilot/issues/9993

reverting until we find the correct fix
2018-12-12 15:51:37 +11:00
DOMINATOR\Eugene 4f9c492f78 AP_Landing: yaw correction on landing 2018-11-18 13:40:15 -08:00
Eugene Shamaev 2c8d96145f AP_Landing: Check deployment of gear 2018-11-17 20:31:01 -08:00
Andrew Tridgell 48e27ab242 AP_Landing: fixed use of double precision maths
and rename log() to Log() to prevent name collision with libm function
2018-05-07 11:43:23 +10:00
Michael du Breuil 338d745de1 AP_Landing: Implement is_on_approach for deepstall
(Fixes a disarm in flight)
2017-11-04 10:07:16 +11:00
Michael du Breuil d166832de4 AP_Landing: Deepstall implement log(), reset all integrators 2017-10-17 14:37:11 -07:00
Michael du Breuil 40f49733ea AP_Landing: Support usage for termination 2017-09-13 13:15:08 -07:00
Peter Barker cc150f75c7 AP_Landing: eliminate GCS_MAVLINK::send_statustext_all 2017-07-11 23:53:53 +01:00
Michael du Breuil 3534d0a0eb AP_Landing: Fix missing doc for LAND_TYPE 2017-06-13 20:06:41 +09:00
Michael du Breuil 1e735324d4 AP_Landing: Add MAVLink reporting interface 2017-05-24 15:22:27 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas 2a16c20ce1 AP_Landing: 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 64fb09fb38 AP_Landing: Add an interface to poll if we should be setting fly_forward in AHRS 2017-05-15 14:50:29 -07:00
Andrew Tridgell e7024d9203 AP_Landing: restructure parameters into a structure 2017-03-02 12:38:59 +11:00
Michael du Breuil 547d06febf AP_Landing: Add deepstall support 2017-03-02 12:38:59 +11:00
Michael du Breuil 8b20577b74 AP_Landing: Add a servo override interface and PID logging interface 2017-03-02 12:38:59 +11:00