Peter Barker
6626bed8d8
AP_Follow: cast heading estimate to avoid double maths
2026-01-28 19:17:49 +11:00
Leonard Hall
2ffbd2ab78
AP_Follow: Update variables only if valid
2025-10-29 08:30:45 +09:00
Tim Tuxworth
ba0a13f0c3
AP_Follow: plane_follow.lua applet
2025-10-07 11:48:50 +11:00
Peter Barker
f769ef7d17
AP_Follow: stop adjusting frame of return location based on parameter
...
this removes the dual-use of the _alt_type parameter.
This parameter was changing both which input we accepted from the other vehicle (eg. GLOBAL_POSITION_INT.alt vs GLOBAL_POSITION_INT.relative_alt, but it was also specifying the return frame for the Location object returned from various methods. This was somewhat confusing and unneccesary.
2025-06-25 18:20:04 +10:00
Leonard Hall
e0f7516bbe
AP_Follow: Add semaphore to protect LUA calls
2025-05-29 08:39:42 +09:00
Leonard Hall
f6f88e4d5a
AP_Follow: Make functions const where possible
2025-05-29 08:39:42 +09:00
Leonard Hall
f35ef22a8a
AP_Follow: Use single call to update_estimate
2025-05-29 08:39:42 +09:00
Leonard Hall
031b9115a0
AP_Follow: Add getter for heading rate
2025-05-27 09:15:24 +10:00
Leonard Hall
9164c14b45
AP_Follow: Use postype from ahrs
2025-05-24 09:23:35 +09:00
Leonard Hall
c74a29722c
AP_Follow: Add kinematic smoothing
2025-05-22 11:53:02 +09:00
Leonard Hall
f622d41597
AP_Follow: Axis and unit naming.
2025-05-07 08:01:55 +10:00
Peter Barker
1bf7592497
AP_Follow: tidy reset of offsets_were_zero
...
just tidy slightly odd structure
2025-04-22 19:53:20 +10:00
Peter Barker
b5e74c2c28
AP_Follow: change to using position-from-origin internally
...
AP_Follow: change get_target_dist_and_vel_ned to avoid using location
2025-04-22 19:53:20 +10:00
Ryan Friedman
bf3da4396b
AP_Follow: use set_alt_m when possible
...
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com >
2024-11-08 10:54:39 +11:00
Peter Barker
4d24e7bbf0
AP_Follow: use GCS_SEND_TEXT rather than gcs().send_text
...
Co-authored-by: muramura <ma2maru@gmail.com >
2024-08-07 18:33:16 +10:00
Peter Barker
50401b749b
AP_Follow: factor out separate methods for handling mavlink messages
...
handle_message was a bit of a monster
2024-06-11 16:20:20 +10:00
Peter Barker
89eade0836
AP_Follow: factor out a Log_Write_FOLL method
2024-06-11 16:20:20 +10:00
Peter Barker
6765838a3c
AP_Follow: factor out a should_handle_message method
2024-06-11 16:20:20 +10:00
Peter Barker
500ca22c75
AP_Follow: clarify what we're doing when rotating a vector
...
odd sort of a transform, make it clear what's happening
2024-06-11 09:41:32 +10:00
Peter Barker
a4ec91c4f1
AP_Follow: use Location.change_alt_frame for what it is good for
2024-04-14 13:29:58 +10:00
Peter Barker
6627c1f4e4
AP_Follow: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Peter Barker
cc18c82622
AP_Follow: correct defaulting of AP_FOLLOW_ENABLED
...
and clarify a closing endif
2023-12-08 22:52:18 +11:00
Mykhailo Kuznietsov
a56f5d7a45
AP_Follow: Fix some typos
...
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Shiv Tyagi
6251b3e3f3
AP_Follow: add and use AP_FOLLOW_ENABLED
2023-08-15 09:57:35 +10:00
Asif Khan
d367483155
AP_Follow: support for Mount following the lead vehicle in follow mode
2023-05-26 11:10:35 -07:00
Peter Barker
6f63e79f36
AP_Follow: include required AP_Vehicle_Type header
2022-11-02 18:35:48 +11:00
Peter Barker
4210daaa19
AP_Follow: include required GCS.h header
2022-09-27 09:26:45 +10:00
Iampete1
b025a6d41d
AP_Follow: vector params always use set method
2022-08-03 13:43:48 +01:00
Iampete1
0d32e6cbf3
AP_Follow: params always use set method
2022-08-03 13:43:48 +01:00
Andrew Tridgell
ab64744ccd
AP_Follow: added APIs for plane ship landing
2022-03-10 07:34:20 +11:00
Randy Mackay
e6f488ccc1
AP_Follow: zreo velocities if not provided
2022-03-04 11:49:23 +09:00
Andrew Tridgell
99cf10ce12
AP_Follow: support the FOLLOW_TARGET mavlink message
...
this is used by qgroundcontrol, allowing follow on a mobile device
note that you must set the qgc option to "always send follow" and also
must set FOLL_ALT_TYPE=2 in ArduPilot
2022-03-04 06:47:11 +11:00
Peter Barker
88afef4cdc
AP_Follow: rename AP_AHRS::get_position to get_location
2022-01-25 10:47:22 +11:00
Andrew Tridgell
de1e44c77e
AP_Follow: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Peter Barker
7d7a7d126c
AP_Follow: rename APMrover2 to Rover
2020-04-14 09:50:34 +09:00
Peter Barker
88d61b9d3c
AP_Follow: add FOLL log message documentation
2020-04-12 08:36:48 +10:00
Randy Mackay
53fb333f0c
AP_Follow: minor format fix to FOLL_ALT_TYPE param desc
2020-02-17 14:30:18 +09:00
Randy Mackay
e4336551cd
AP_Follow: add clear_offsets_if_required method
...
this restores the offsets to zero if they were initialised from zero when the lead vehicle was first spotted
2019-10-07 08:30:45 +09:00
Henry Wurzburg
9717548cb5
AP_Follow: hide params not used by Rover
2019-10-03 07:18:47 +09:00
Peter Barker
77985f509f
AP_Follow: correct parameter descriptions
2019-05-13 15:34:01 +10:00
Pierre Kancir
2adbfed70a
AP_Follow: use get_distance_NED
2019-04-09 20:59:48 +10:00
Michael du Breuil
4084cf4def
AP_Follow: Fix up includes
2019-04-05 20:12:53 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
8f5a22685a
AP_Follow: NFC small renames and comment improvements
2019-03-01 09:15:24 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
e7281aeddc
AP_Follow: 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
Peter Barker
fc358092ed
AP_Follow: remove header reliance on GCS and AHRS
2019-02-15 08:15:45 +11: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
Peter Barker
1c6b52c8de
AP_Follow: adjust for location flags being moved out of union
2019-01-16 11:45:29 +11:00
Andrew Tridgell
a097dd558b
AP_Follow: fixed m/s to cm/s conversion
2018-12-31 09:56:04 +09:00
Andrew Tridgell
42881ecf17
AP_Follow: correct timestamps on GLOBAL_POSITION_INT
...
this allows follow to cope better with timing jitter in the telemetry
link between vehicles
2018-12-31 09:56:04 +09:00