Henry Wurzburg
9058697b3e
AP_Mount: add ability to compute POI as a fallback without Terrain enabled
2026-02-04 22:55:57 +11:00
Willian Galvani
006c460177
AP_Mount: check FPV_LOCK bit for both angle and rate modes
2026-01-26 19:46:57 -05:00
Henry Wurzburg
eec2cfb885
AP_Mount: add mount POI lock Aux Func/Switch
2026-01-19 18:29:05 -05:00
Henry Wurzburg
a04997d1e4
AP_Mount:add roll/pitch bf lock to select gimbals
2026-01-08 09:05:59 +11:00
Peter Barker
7ff7f887e5
AP_Mount: add MountTargetType::RETRACTED / MountTargetType::NEUTRAL
2026-01-06 08:35:44 +09:00
Peter Barker
2bca55e747
AP_Mount: move mavlink target timeout into update_mnt_target
2026-01-06 08:31:50 +09:00
Henry Wurzburg
cef6eb7802
AP_Mount:make FPV_LOCK option not require reboot on deselect
2025-12-26 18:19:59 -06:00
Henry Wurzburg
f71059d6d6
AP_Mount:Ehance yaw_lock to use captured heading
2025-12-24 09:10:18 +09:00
Peter Barker
b2b274ac26
AP_Mount: remove "fresh" as a concept
...
each of the affected gimbals can already send angle data at the rate at which we call these functions; we don't need to treat the retracted and neutral positions any more specially than we treat normal angle targets
2025-12-23 09:06:28 +09:00
Peter Barker
c6cea72c53
AP_Mount: add send_target_to_gimbal on AP_Mount_Backend
...
calls virtual methods which sends commands to the gimbal
2025-12-20 18:55:39 +11:00
Peter Barker
4210dc0190
AP_Mount: split MountTarget into MountAngleTarget and MountRateTarget
2025-12-19 23:05:44 +11:00
Peter Barker
b627fdaa91
AP_Mount: inline get_rc_target
...
this doesn't really buy us anything, we can just update the mount target directly
2025-12-18 09:21:37 +09:00
Peter Barker
c93df648c0
AP_Mount: use update_mnt_target in SToRM32s, XFRobot and CADDx
...
the only difference between these and the method which was previously factored up was the setting of this boolean flag indicating there was changed data to send to the gimbal.
This PR preserves the existing bug where there's up to a 1 second pause between retract mode being entered and the command being sent to the mount.
2025-12-16 11:04:12 +11:00
Peter Barker
d9f8b46ffb
AP_Mount: create an update_mnt_target method to factor code up
2025-12-09 08:55:13 +09:00
Henry Wurzburg
733ba5beac
AP_Mount: CADDX mount R/P earth frame lock options and control
2025-12-02 13:58:02 +09:00
Peter Barker
deeb977ff1
AP_Mount: make AP_Logger quiet_nanf methods static
2025-11-29 13:30:48 -06:00
neo-0007
c8fd61f218
AP_Mount: fix get_location_target and remove unnecessary state variables
...
Fix the broken get_location_target method and move it up to generic
backend so that can be used by all backends
Remove flag variables that were used to determine valid or invalid
Location variables and use the initialized() method instead.
Should fix #31535
Signed-off-by: neo-0007 <hrishikeshgohain123@gmail.com >
2025-11-27 10:14:20 +11:00
Henry Wurzburg
66aafabacc
AP_Mount:add warning for no location for GPS_POINT
2025-11-15 09:25:59 +09:00
Ep Pravitra
cdcb27bd33
AP_Mount: send zero rate command if the rate command was not received longer than a certain time.
2025-09-16 16:26:22 +09:00
Oleksiy Protas
373d4a1e52
AP_Mount: retract servo(s) operation for all backends
2025-08-06 08:47:01 +10:00
Peter Barker
60cf43135e
AP_Mount: use get_roll_deg in place of degrees(get_roll_rad) etc.
2025-08-05 09:00:08 +09:00
Peter Barker
461faa1db8
AP_Mount: rename AHRS get_roll etc accessors to include _rad
2025-06-05 17:28:41 +10:00
Peter Barker
ce8bc5f3ab
AP_Mount: replace ToRad with radians and ToDeg with degrees
2025-05-29 11:24:56 +10:00
Peter Barker
786df975f0
AP_Mount: remove MOUNT_CONFIGURE and MOUNT_CONTROL support
2025-01-03 14:18:25 +11:00
Peter Barker
99e314f49a
AP_Mount: tidy header includes
...
our pattern is to include the config file and then use the relevant define, with nothing in between
2024-11-12 13:02:43 +11:00
Peter Barker
dcc04d685f
AP_Mount: factor out update_mnt_target_from_rc_target from servo, use it elsewhere
...
this gives all backends the neutral-on-RC-failsafe behaviour
2024-11-12 11:01:21 +11:00
Nick Exton
8b5539c055
AP_Mount: Clarify angle frames of set_angle_target()
2024-05-21 14:28:38 +10:00
Tim Tuxworth
495726344c
AP_Mount: Do not override default mode when first connecting to RC
2024-04-12 12:18:33 +09:00
davidsastresas
0b7710420b
AP_Mount: fix gimbal-device-attitude-status yaw frame flag
2024-03-26 10:49:30 +11:00
Randy Mackay
affc1b4eb4
AP_Mount: get-gimbal-device-flags reports lock state
2024-03-26 10:49:30 +11:00
Randy Mackay
4755a60863
AP_Mount: RC targeting mode lock state from previous mode
...
This leads to smoother transitions between RC and GCS control
2024-03-26 10:49:30 +11:00
Peter Barker
d33cc2847d
AP_Mount: correct compilation with GCS disabled
2024-02-13 20:56:09 +11:00
Peter Barker
a6db3bd069
AP_Mount: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Peter Barker
49c697221a
AP_Mount: make AHRS attitude member variables private
2024-01-14 12:47:47 +11:00
davidsastresas
462eb46c8b
AP_Mount.cpp: send gimbal_manager_status msg when control changes
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com >
By default we are sending this message at 0.2 Hz. This is totally
fine as no more rate is needed, but whenever control changes it
is interesting to notify as soon as possible, so the rest of the
mavlink network understands the change in control as soon as
possible
2024-01-10 18:26:47 +11:00
Randy Mackay
fa5e58d652
AP_Mount: switch to RC_TARGETING on RC input
2024-01-10 09:48:00 +09:00
Peter Barker
4f4e6d646c
AP_Mount: validate modes before setting them
2023-11-17 11:45:38 +11:00
Andrew Tridgell
8ff2fa4fd9
AP_Mount: added gimbal rates for SIYI
...
this helps diagnose issues with gyro bias versus control when camera
is spinning
2023-11-16 16:57:49 +11:00
olliw42
4ffdb65288
AP_Mount: gimbal_manager_set_pitchyaw is not a command
2023-11-06 08:32:04 +09:00
Asif Khan and Randy Mackay
eb5ead462b
AP_Mount: add get_poi
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com >
2023-11-02 15:54:37 +11:00
Peter Barker
d1bcd2c5e1
AP_Mount: allow more libraries to compile with no HAL_GCS_ENABLED
2023-09-05 22:23:51 +10:00
Peter Barker
02d0a07083
AP_Mount: add build options for deprecated messages MOUNT_CONTROL/MOUNT_CONFIGURE
...
these are repalced by the command equivalents
2023-08-29 11:06:13 +10:00
Peter Barker
02d1eca49b
AP_Mount: accept mount commands as command_int
2023-08-24 22:07:12 +10:00
Randy Mackay
9d09739044
AP_Mount: Viewpro supports get rangefinder distance
2023-08-23 18:09:56 +10:00
davidsastresas
55aa1b5a32
AP_Mount: Backend sends gimbal_device_id in device_attitude_status_send
2023-08-10 14:37:30 +09:00
Asif Khan
fd6db1ef45
AP_Mount: add MNT log msg for mount's actual and target angles logging
2023-07-26 17:33:18 +10:00
Peter Barker
c70778e4d4
AP_Mount: correct gimbal manager flags
2023-07-03 08:09:04 +09:00
Randy Mackay
2a30bc7ce1
AP_Mount: add devid parameter and setter
2023-06-27 21:12:20 +10:00
Randy Mackay
39eb46fd26
AP_Mount: backend set_angle_target enforces bf limits
2023-06-13 10:08:02 +10:00
Peter Barker
07160e2985
AP_Mount: move get_bf_yaw to be a method on the object it takes
2023-05-18 15:07:17 +10:00