Commit Graph

43 Commits

Author SHA1 Message Date
Henry Wurzburg 50591d1adf AP_Landing: change logging to be designated as streaming 2022-08-05 10:16:18 +10: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
Samuel Tabor 266fbabb6f AP_Landing: Fix slope calculation. 2021-11-10 06:55:14 +11:00
Samuel Tabor 27f0320452 AP_Landing_Slope: Log height used for flare timing. 2021-08-19 17:59:33 +10:00
Andrew Tridgell d9d53d380d AP_Landing: implement continue after land for fixed wing landings
this makes touch and go missions possible
2020-06-02 09:12:22 +09:00
Peter Barker d23d4768f1 AP_Landing: add LAND log message documentation 2020-04-12 08:36:48 +10:00
Michael du Breuil 17cec7cf2b AP_Landing: Directly include needed headers 2019-08-28 13:13:03 +10:00
Michael du Breuil f6f432a785 AP_Landing: Fix AP_GPS.h include, use a ref to the singleton 2019-06-18 10:02:05 +10:00
Pierre Kancir 8168b3c8e4 AP_Landing: use past_interval_finish_line and line_path_proportion from Location 2019-04-23 09:20:43 +10:00
Pierre Kancir 12a357ffd7 AP_Landing: move location_update to Location and rename to offset_bearing 2019-04-06 09:10:28 +11:00
Pierre Kancir 288ae80a59 AP_Landing: move get_bearing_cd to Location and rename to get_bearing_to 2019-04-06 09:10:28 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 003a346ee2 AP_Landing: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Tom Pittenger 1c33c3f50d AP_Landing: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11: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
Peter Barker a4584431a2 AP_Landing: use GPS singleton 2017-12-27 00:58:02 +00:00
Peter Barker cc150f75c7 AP_Landing: eliminate GCS_MAVLINK::send_statustext_all 2017-07-11 23:53:53 +01:00
Michael du Breuil c10fe2e7a4 AP_Landing: Add more interfaces from vehicle code
Fixs up some documentation about expected return values
2017-03-02 12:38:59 +11:00
Lucas De Marchi 8b0c427802 AP_Landing: add double casts to printf-like function 2017-02-06 09:27:22 -08:00
Tom Pittenger da48b24a5c AP_Landing: add logging as new "LAND" field 2017-01-26 13:11:45 -08:00
Tom Pittenger 644f75942b AP_Landing: refactor bool variables into flag stucts 2017-01-26 13:11:45 -08:00
Tom Pittenger bdafc2c025 AP_Landing: re/move complete flag into backend
the complete flag was only ever true during FLIGHT_LAND_FINAL so we just check for that now instead
2017-01-26 13:11:45 -08:00
Michael du Breuil 4cf1c74c62 AP_Landing + Plane: Check for land complete before requesting disarm 2017-01-26 13:11:44 -08:00
Tom Pittenger 2ccd91d88f AP_Landing: rename stage enum 2017-01-26 13:11:44 -08:00
Tom Pittenger 650e694eb1 Plane: move landing.reset to landing.do_land() 2017-01-26 13:11:44 -08:00
Michael du Breuil 3e66dd10d7 Plane: Move landing stages inside AP_Landing and refactor 2017-01-26 13:11:44 -08:00
Michael du Breuil e9ec1d3a30 AP_Landing: Internalize the flight mode slope stages 2017-01-26 13:11:44 -08:00
Tom Pittenger b570c11e26 AP_Landing: allow separate handling for verify_land() vs verify_abort() 2017-01-26 13:11:43 -08:00
Tom Pittenger 6c0296ba13 AP_Landing: shadow copy of plane flight_stage into landing
.. and describe stages without using specific stage name
2017-01-26 13:11:43 -08:00
Tom Pittenger 063f517424 Plane, TECS, AP_Landing: rename stage LAND_ABORT to ABORT_LAND
this will reduce confusion when searching for FLIGHT_LAND_* and you get a bunch of takeoff related hits. It will also make more sense when the landing library fully manages the FLIGHT_LAND stage entirely because it will not mange FLIGHT_LAND_ABORT
2016-12-30 23:50:03 -08:00
Tom Pittenger 502768c979 AP_Landing: move enum FlightStages to AP_Vehicle::FixedWing 2016-12-30 23:50:03 -08:00
Tom Pittenger f09007cbe9 AP_Landing: use a common reset for uniform landing wipe 2016-12-14 04:32:30 -08:00
Tom Pittenger e061e1734c AP_Landing: abstract land abort request method 2016-12-14 04:32:30 -08:00
Tom Pittenger 03b5523b43 AP_Landing: abstract out init_start_nav_cnd work to landing lib
This reverts commit 3e89580383 and fixes it
2016-12-06 03:45:17 -08:00
Andrew Tridgell 3e89580383 Revert "AP_Landing: abstract out init_start_nav_cnd work to landing lib"
This reverts commit 8d8775125a.

doesn't build
2016-12-06 17:32:10 +11:00
Tom Pittenger 8d8775125a AP_Landing: abstract out init_start_nav_cnd work to landing lib 2016-12-05 18:43:47 -08:00
Tom Pittenger 608da33d80 AP_Landing: merged GCS text for aborted landing 2016-12-02 17:40:01 -08:00
Tom Pittenger 1a70e2f353 AP_Landing: new param LAND_TYPE to split current behavior into AP_Landing_Slope.cpp 2016-11-25 19:07:30 -08:00