Commit Graph

161 Commits

Author SHA1 Message Date
Randy Mackay bb8319e914 AP_Mount: frontend instantiates Xacti backend 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 78c5fe097b AP_Mount: correct compilation when HAL_MOUNT_SERVO_ENABLED is 0
... but still do the parameter conversion
2023-06-08 11:52:44 +10:00
Peter Barker 3d245c4e4c AP_Mount: use switch statement on mount type when creating backends 2023-05-29 09:08:55 +10:00
Peter Barker 3acc917ea7 AP_Mount: use enum class for mount type 2023-05-25 09:54:43 +10:00
Asif Khan 28748dc2c0 AP_Mount: add GIMBAL_MANAGER_SET_PITCHYAW message support 2023-05-24 12:36:37 +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
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
Peter Barker a3c5926040 AP_Mount: use quat.to_euler(Vector3f&) 2023-04-19 14:24:45 +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 c63ec307f1 AP_Mount: do not allow both attitude and rate for GIMBAL_MANAGER_SET_ATTITUDE
this will allow us to support both at the same time into the future without worrying about how it might break existing callers.
2023-04-04 09:48:40 +10:00
Asif Khan 91935fc404 AP_Mount:Add GIMBAL_MANAGER_SET_ATTITUDE support 2023-04-04 09:48:40 +10:00
Peter Barker fb98ef21aa AP_Mount: replace check_instance with get_instance 2023-03-03 17:35:39 +11:00
Peter Barker 04e5b5096e AP_Mount: check array bounds when setting to default mode
This is a public method, so needs some checking
2023-03-02 18:07:11 +11:00
Peter Barker 8c47a3d268 AP_Mount: allow gimbals other than primary to be retracted/neutralised 2023-03-02 18:07:11 +11: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 8c5463ec78 AP_Mount: add Siyi gimbal driver 2022-09-30 15:17:29 +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 f932add7ea AP_Mount: mav-cmd-do-gimbal-manager-pitchyaw supports multiple gimbals 2022-09-07 16:09:07 +09:00
Randy Mackay c072a201bc AP_Mount: param conversion for MNT to MNT1 2022-09-06 13:53:25 +09:00
Randy Mackay 66a8775895 AP_Mount: remove param set of MNT1_TYPE to 1 if servo outputs defined 2022-09-06 13:53:25 +09: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 ac769baa3c AP_Mount: Servo mount's STAB params replaced by BrushlessPWM type 2022-09-06 13:53:25 +09:00
Randy Mackay 0d9526f1c5 AP_Mount: replace RC input params with RC options 2022-09-06 13:53:25 +09: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
Iampete1 47105f0b03 AP_Mount: params always use set method 2022-08-03 13:43:48 +01:00
Randy Mackay f03ac3648d AP_Mount: fixup handle do-gimbal-manager-pitchyaw flags 2022-06-29 10:56:48 +09:00
Randy Mackay f0f95fb812 AP_Mount: frontend adds support for both 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 898bdb864c AP_Mount: fix handle_command_do_mount_configure instance handling 2022-06-29 10:56:48 +09:00
Peter Barker 1f4ebb49b5 AP_Mount: document point-at-home default mode option 2022-06-23 16:37:54 +10: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 10da8a42bd AP_Mount: replace JSTICK_SPD with RC_RATE 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 d24d3c0af8 AP_Mount: add HAL_MOUNT_STORMSERIAL_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay 59916d0327 AP_Mount: add HAL_MOUNT_STORM32MAVLINK_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay 4f0ee1276b AP_Mount: add HAL_MOUNT_SERVO_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay e2106e63bf AP_Mount: add HAL_MOUNT_ALEXMOS_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay 34f327404a AP_Mount: Gremsy only enabled on >1MB boards 2022-06-15 09:07:14 +09: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