Commit Graph

73 Commits

Author SHA1 Message Date
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
Peter Barker decf484702 AP_Mount: use NaN in place of 0 for camera information message
Co-authored-by: muramura <ma2maru@gmail.com>
2024-09-26 19:26:59 +10:00
Peter Barker edc0e46614 AP_Mount: add and use global NaNf float value 2024-09-26 19:26:59 +10:00
Randy Mackay aa65a2ab54 AP_Mount: siyi supports camera-thermal-range 2024-09-10 20:59:49 +09:00
Randy Mackay 1f14c2ca6b AP_Mount: Siyi implements change_setting 2024-09-03 09:04:39 +09:00
Randy Mackay 5bcbf56a47 AP_Mount: Siyi ZT6 set lens fix
ZT6 has RGB and Thermal image sensors only
2024-08-27 10:23:47 +10:00
Randy Mackay 0874202aa1 AP_Mount: Siyi ZT6 hardware id fix 2024-08-27 10:23:47 +10:00
Peter Barker 7f97e897e2 AP_Camera: add sanity check for Siyi lens change 2024-07-25 12:18:51 +10:00
muramura f1e67ba747 AP_Mount: SWITCH statement to table reference 2024-07-25 12:18:51 +10:00
Andrew Tridgell b19186980a AP_Mount: added sending of position data to Siyi gimbal
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
this will allow for exif tags of position for photos
2024-07-09 11:28:57 +10:00
Randy Mackay 3439ced236 AP_Mount: add Siyi ZT6 support 2024-06-26 18:37:42 +10:00
Randy Mackay 790b5e8565 AP_Mount: Siyi inherits from serial backend 2024-05-22 18:00:22 +10:00
muramura a9d0bf856e AP_Mount: Do not perform unnecessary processing 2024-04-11 18:35:01 +10:00
Randy Mackay a6a5cde34c AP_Mount: add set_camera_source support 2024-03-25 09:19:18 +09:00
Randy Mackay 0fca670f85 Mount: Siyi waits for non-zero cam firmware version 2024-02-09 17:00:26 +11:00
Peter Barker 49c697221a AP_Mount: make AHRS attitude member variables private 2024-01-14 12:47: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 c443d19ab1 AP_Mount: correct compilation when GCS_SEND_TEXT not available 2024-01-04 20:48:23 +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
Andrew Tridgell 7472f76336 AP_Mount: set clock on SIYI
this means photos on microSD have correct date
2023-11-16 16:57:35 +11:00
Andrew Tridgell 691b23db7d AP_Mount: added sending of attitude and velocity for SIYI
will be used by SIYI for improved gimbal control
2023-11-15 13:17:54 +11:00
Andrew Tridgell 369f369f1d AP_Mount: fixed SIYI parser bug
this caused lots of lost packets
2023-11-03 22:44:03 +09:00
Nick Exton 1dd7d7dd7b AP_Mount: In Siyi, change severity of warnings for Data Loss and No Card 2023-09-19 07:59:15 +09:00
Nick Exton bad73df582 AP_Mount: In Siyi, clean up toggling of video recording 2023-09-19 07:59:15 +09:00
Nick Exton a8e10ca59b AP_Mount: In Siyi, request gimbal config when set_motion_mode() changes mode 2023-09-19 07:59:15 +09:00
Nick Exton d3358ff3af AP_Mount: Make Siyi set_motion_mode() only send on change 2023-09-19 07:59:15 +09:00
Nick Exton 62858ff91f AP_Mount: Siyi set_motion_mode() now returns bool
And the mode param is now const.
2023-09-19 07:59:15 +09:00
Nick Exton 9fe5f4151e AP_Mount: In Siyi, use config info received from gimbal 2023-09-19 07:59:15 +09:00
Nick Exton 188a5654c2 AP_Mount: Siyi set_lock() becomes set_motion_mode()
We have three motion modes on the Siyi: Lock, Follow and FPV.

Partially addresses #22900
2023-09-19 07:59:15 +09:00
James O'Shannessy 9b06395573 AP_Mount: Fix brace enclosed initializer list for older compilers 2023-09-16 14:59:00 +09:00
Nick Exton 83636e6ef3 AP_Mount: In Siyi, fix missing braces in process_packet() 2023-09-15 20:13:55 +09:00
Nick Exton cc25f2915a AP_Mount: In Siyi, fix calculation of attitude quaternion
Order of rotation for Siyi gimbals is (yaw, roll, pitch), which is 312
order. Quaternion::from_euler() function assumes a 321 order of
rotation (yaw, pitch, roll).
2023-09-13 11:48:47 +10:00
Nick Exton ac96365a61 AP_Mount: In Siyi, add check for minimum supported firmware version 2023-09-12 08:36:29 +09:00
Nick Exton fd6242964a AP_Mount: In Siyi, rename _firmware_version member to _fw_version (NFC) 2023-09-12 08:36:29 +09:00
Nick Exton 8b7b265e9f AP_Mount: In Siyi, store full firmware version info 2023-09-12 08:36:29 +09:00
Nick Exton d99b5c173a AP_Mount: In Siyi, fix zoom percentage in CAMERA_SETTINGS 2023-09-11 09:48:57 +10:00
Peter Barker d1bcd2c5e1 AP_Mount: allow more libraries to compile with no HAL_GCS_ENABLED 2023-09-05 22:23:51 +10:00
Randy Mackay 9bb8df7b70 AP_Mount: Siyi supports rangefinder distance 2023-09-01 10:35:12 +10:00
Randy Mackay d5772774d1 AP_Mount: Siyi timeout moved to definition 2023-09-01 10:35:12 +10:00
Randy Mackay 23deeb3a00 AP_Mount: Siyi supports set_lens 2023-09-01 10:35:12 +10:00
Randy Mackay 74fa07ae13 AP_Mount: Siyi displays zoom version 2023-09-01 10:35:12 +10:00
Randy Mackay 9a5acec243 AP_Mount: Siyi gets improved model detection
# Conflicts:
#	libraries/AP_Mount/AP_Mount_Siyi.cpp
2023-09-01 10:35:12 +10:00
Randy Mackay d59ff8501c AP_Mount: Siyi loses unused definitions 2023-08-30 16:00:47 +09:00
Randy Mackay 33542c0c1d AP_Mount: Siyi absolute zoom simplification 2023-08-30 16:00:47 +09:00
Asif Khan dffeaf0897 AP_Mount: Siyi fix for continuous zoom
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-08-26 14:46:31 +09:00
davidsastresas d242a968f3 AP_Mount: Siyi sends gimbal_device_id in camera_information 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
Asif Khan 0c67f20a74 AP_Mount: fix setting default mode redundantly in each backend 2023-07-15 10:46:28 +10:00
Andrew Tridgell 9454b54a1d AP_Mount: prevent SIYI driver crash if serial port not setup
if MNT1_TYPE=8 and no serial protocol set to gimbal then a camera
trigger can crash the vehicle
2023-07-11 20:35:13 +09:00