Commit Graph

51 Commits

Author SHA1 Message Date
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
Peter Barker 485fee36ab AP_Mount: add and use SetFocusResult 2023-07-05 16:28:42 +10:00
Randy Mackay c7b64dc448 AP_Mount: Siyi health check avoids race condition 2023-06-27 21:12:20 +10:00
Randy Mackay 5d97a4b3d6 AP_Mount: Siyi loses unused center method 2023-06-27 21:12:20 +10:00
Randy Mackay c4c073e8b8 AP_Mount: Siyi displays camera fw ver 2023-06-16 14:30:46 +10:00
Randy Mackay 63b4b8b7d3 AP_Camera: support camera info and settings 2023-06-16 14:30:46 +10:00
Randy Mackay 2c37958c3f AP_Mount: support send-camera-info and settings 2023-06-16 14:30:46 +10:00
Randy Mackay 65fd8a7120 AP_Mount: Siyi implements body-frame yaw limits 2023-06-13 10:08:02 +10:00
Asif Khan caf35b71a6 AP_Mount: fix SiYi gimbal upside-down facing not working 2023-06-09 09:38:43 +10:00
Randy Mackay e672a75776 AP_SerialManager: generalise SToRM32 serial protocol desc and enum 2023-05-17 17:34:10 +10:00
davidsastresas de9024b633 AP_Mount: Siyi supports absolute zoom control
Co-authored-by: davidsastresas <davidsastresas@gmail.com>
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-02 10:00:38 +10:00
Randy Mackay 020a505d78 AP_Mount: set_focus replaces set_manual/auto_focus 2023-04-26 22:55:47 +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 a8c593d44c AP_Mount: Siyi driver comment re zoom decrement 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 b644dfebc4 AP_Mount: add and use a "bool read(c)" method to AP_HAL
this is much less likely to not work vs the int16_t equivalent
2023-03-22 17:59:11 +11:00
Randy Mackay 5fa6914137 AP_Mount: siyi recording send-text demoted to INFO 2022-12-16 08:15:53 +09:00
Randy Mackay 6efa35e889 AP_Mount: Siyi fix for record ON OFF reporting 2022-12-16 08:15:53 +09:00
Randy Mackay 6bd4afeb48 AP_Mount: siyi a8 fix for gimbal-config-info message
Siyi A8 uses a different format from Z10 for this message
2022-12-16 08:15:53 +09:00
Randy Mackay 204d32c9a9 AP_Mount: fix siyi version display 2022-11-30 20:07:17 +11:00
Randy Mackay 345629cdad AP_Mount: fix for Siyi A8 2022-11-30 20:07:17 +11:00
murata b90079bfa6 AP_Mount: Enable debugging outputs and variables in debug definitions 2022-10-01 09:05:05 +09:00