Leonard Hall
96b24582e3
AP_Follow: correct the have_target contract comment
2026-08-20 10:35:15 +10:00
Leonard Hall
c8856f9f98
AP_Follow: record the sysid that supplied the target data
2026-08-20 10:35:15 +10:00
Leonard Hall
6d7dd1727a
AP_Follow: move the target timeout check into update_estimates
2026-08-20 10:35:15 +10:00
Leonard Hall
e78f0347aa
AP_Follow: honour FOLL_ALT_TYPE in the offset location getter
2026-08-20 10:35:15 +10:00
Leonard Hall
886a0b7881
AP_Follow: take the follow semaphore in handle_msg
2026-08-20 10:35:15 +10:00
Leonard Hall
0ba82e3f72
AP_Follow: clear target update time when FOLL_SYSID changes
2026-08-20 10:35:15 +10:00
Leonard Hall
6d9e5954e9
AP_Follow: discard target state when FOLL_SYSID changes
2026-08-20 10:35:15 +10:00
Leonard Hall
1bd6d3f646
AP_Follow: move follow-target gate to the message dispatch
2026-08-20 10:35:15 +10:00
Leonard Hall
50d88be5d6
AP_Follow: rename sysid timeout to estimate timeout
...
The constant no longer has anything to do with the target system id. Its
only remaining job is to discard a stale target estimate. Value and
behaviour are unchanged.
2026-08-11 09:39:31 +09:00
Leonard Hall
8965aea8d3
AP_Follow: remove automatic sysid selection
...
A FOLL_SYSID of zero meant "follow the first vehicle we hear from". The
library wrote that vehicle's system id into the FOLL_SYSID parameter, and
cleared the parameter back to zero if the vehicle went quiet for ten
seconds.
This made the library mutate a user facing parameter on its own, and left
the choice of target to message arrival order rather than to
configuration. With more than one vehicle in range the target was
whichever one happened to be heard first.
A FOLL_SYSID of zero now means that no target has been selected. No
target message is accepted and the parameter is never written by the
library. Following starts once the user sets a system id.
2026-08-11 09:39:31 +09:00
Leonard Hall
3d22061e08
AP_Follow: Fix parameter ranges to include their defaults
2026-08-05 11:55:24 +10:00
Leonard Hall
9aeac8bfa2
AP_Follow: fix triangular velocity-change to full profile area
2026-07-08 10:35:23 +09:00
Leonard Hall
321f637b49
AP_Follow: reset heading-accel on re-init and guard zero jerk
2026-07-08 10:35:23 +09:00
Leonard Hall
27c1f76638
AP_Follow: Improve performance of default parameters
2026-05-23 08:49:31 +09:00
Leonard Hall
5b331aa09c
AP_Follow: Fix comments
2026-05-23 08:49:31 +09:00
Leonard Hall
96b6b7a7e4
AP_Follow: Fix vertical interpolation.
2026-05-23 08:49:31 +09:00
Leonard Hall
d82ecf8d40
AP_Follow: comment offset velocity and acceleration due to heading rotation
2026-05-19 08:29:58 +09:00
Leonard Hall
452609a338
AP_Follow: fix offset velocity and acceleration due to heading rotation
2026-05-19 08:29:58 +09:00
Leonard Hall
5087d5a4de
AP_Follow: Support future plane command model requirements.
2026-02-04 18:38:37 +11:00
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 and muramura
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