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
Nick Exton
ac313b6d7a
AP_Mount: Add handler for CAMERA_CAPTURE_STATUS request
2023-11-09 13:00:57 +09:00
Asif Khan
eb5ead462b
AP_Mount: add get_poi
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-11-02 15:54:37 +11: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
Randy Mackay
315d972c5d
AP_Mount: add set lens support
2023-07-26 20:20:13 +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
Randy Mackay
ddb91afdde
AP_Mount: add set_tracking accessor
2023-07-18 21:02:02 +09:00
Peter Barker
485fee36ab
AP_Mount: add and use SetFocusResult
2023-07-05 16:28:42 +10:00
Randy Mackay
2a30bc7ce1
AP_Mount: add devid parameter and setter
2023-06-27 21:12:20 +10:00
Randy Mackay
2c37958c3f
AP_Mount: support send-camera-info and settings
2023-06-16 14:30:46 +10:00
Peter Barker
487ed8d888
AP_Mount: remove use of AP_Mount.h from headers
2023-05-29 09:08:55 +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
davidsastresas
cbec7ee47b
AP_Mount: support gimbal_manager_status and do_gimbal_manager_configure
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-17 12:38:49 +10:00
Randy Mackay
020a505d78
AP_Mount: set_focus replaces set_manual/auto_focus
2023-04-26 22:55:47 +10:00
Randy Mackay
ddbc52d2db
AP_Mount: support gimbal-manager-information requests
2023-04-25 15:07:35 +10:00
Asif Khan
47ad614e8e
AP_Mount: Add MNTx_SYSID_DFLT param to easily target another vehicle
2023-04-24 13:34:20 +10:00
Randy Mackay
14ef3870bc
AP_Mount: integrate ZoomType def move out of AP_Camera
2023-04-19 17:31:46 +10:00
Randy Mackay
5b7f9c874d
AP_Mount: set_zoom replaces set_zoom_step
2023-04-19 17:31:46 +10:00
Randy Mackay
470b9638ea
AP_Mount: remove unused get_camera_state
2023-04-14 07:47:47 +10:00
Nick Exton
5d39dd45be
AP_Mount: Add clear_roi_target() function
2023-04-11 09:11:08 +10:00
Peter Barker
51757a192e
AP_Mount: clarify attitude returned in get_attitude_quaternion method call
2023-03-27 09:03:35 +09:00
Peter Barker
d6b5dc206e
AP_Mount: make get_attitude_euler non-virtual
...
If a backend ever needs to override this method then we can make it virtual, in the meantime we can save flash by re-using the quaternion getter in the frontend
2023-02-17 10:04:49 +11:00
Randy Mackay
04e8fffc53
AP_Mount: add get_camera_state method
2023-02-16 16:49:51 +09:00
Randy Mackay
0f24b079e4
AP_Mount: add scripting backend
2023-01-31 17:20:37 +09:00
Randy Mackay
53905c5f35
AP_Mount: add camera controls
2022-09-30 15:17:29 +09:00
Randy Mackay
e9b92da241
AP_Mount: add get_attitude_euler
...
this allows external callers including Lua to retrieve the gimbal mount's current attitude
2022-09-28 17:09:31 +10:00
Randy Mackay
a16b9cc5ad
AP_Mount: remove set_mode overrides
...
The mode state is local to the driver and does not depend upon successful communication with the gimbal
2022-09-19 20:23:03 -04:00
Randy Mackay
c20ec27c54
AP_Mount: parameter angles in degrees
...
Also MNTx_RC_RATE param per backend
2022-09-06 13:53:25 +09:00
Randy Mackay
2bcb503170
AP_Mount: allow users to disable yaw on 3-axis gimbals
...
Also fixes 3-axis gimbal support for SToRM32 serial and MAVLink gimbals
2022-08-30 10:05:09 +10:00
Randy Mackay
83c9a76260
AP_Mount: send warning to GCS on invalid GPS or angle targets
...
This hopefully will help catch cases where the GCS relied on a bug in 4.2 (and earlier's) handling of MAV_CMD_DO_MOUNT_CONTROL
2022-08-25 20:28:06 -04:00
Randy Mackay
022d610519
AP_Mount: separate handling of mount-control and do-mount-control
2022-08-25 20:28:06 -04:00
Randy Mackay
b4979e2cfa
AP_Mount: replace send-mount-status with send-gimbal-device-attitude-status
2022-08-15 20:29:25 -04:00
Randy Mackay
0d60e47c68
AP_Mount: backend restructure and support for ef/bf angle and rate
2022-06-29 10:56:48 +09:00
Randy Mackay
33a4efa936
AP_Mount: move mode, yaw_lock, roi_target and sysid target to backend
2022-06-29 10:56:48 +09:00
Randy Mackay
ec07c15e1e
AP_Mount: set_roi_target and set_target_sysid lose struct and const before args
2022-06-29 10:56:48 +09:00
Randy Mackay
f426711177
AP_Mount: backend calc_angle_to_xxx requires relative_pan argument
2022-06-29 10:56:48 +09:00
Randy Mackay
3711c362ce
AP_Mount: update_rate_and_angle_from_rc fix arg name to match units
2022-06-29 10:56:48 +09:00
Randy Mackay
822ee75e20
AP_Mount: add healthy and pre_arm_checks
...
Co-authored-by: olliw42 <waldmanns@gmx.de>
2022-06-21 13:37:11 +09:00
Randy Mackay
1400eba400
AP_Mount: minor include and definition re-order and fixup
2022-06-15 18:08:58 +10:00
Randy Mackay
14c81099db
AP_Mount: add Gremsy driver
...
Co-authored-by: bugobliterator <siddharthbharatpurohit@gmail.com>
this drivers special features include
sends ATTITUDE and AUTOPILOT_STATE_FOR_GIMBAL
support of RC rate targets
captures and re-forwards gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay
6723a0fc55
AP_Mount: handle gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay
8092697c1a
AP_Mount: backend record RC rate targets
2022-06-15 09:07:14 +09:00
Randy Mackay
0975da6068
AP_Mount: remove virtual distructor from backend
2022-06-15 09:07:14 +09:00
Randy Mackay
5651d8761d
AP_Mount: remove unimplemented send_gimbal_report
2022-06-07 09:27:47 +10:00
Randy Mackay
29a1aed1e3
AP_Mount: backend gets minor comment fix
2022-06-03 19:43:54 +09:00