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
Andrew Tridgell
12f5448bf4
AP_Mount: fixes for macos CAN SITL build
2023-08-29 15:09:48 +10:00
Randy Mackay
a8057f0157
AP_Mount: DEVID made writeable
2023-08-29 11:34:51 +10:00
Randy Mackay
6a14c1f72f
AP_Mount: Viewpro fix for date sent from autopilot
2023-08-29 11:34: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
Asif Khan
3927521aa6
AP_Mount: move handling of all do-set-roi to AP_Mount library
2023-08-26 17:55:53 +10: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
Peter Barker
02d1eca49b
AP_Mount: accept mount commands as command_int
2023-08-24 22:07:12 +10:00
Andrew Tridgell
3752750f0a
AP_Mount: removed native_millis/micros
2023-08-24 13:06:40 +10:00
Randy Mackay
9d09739044
AP_Mount: Viewpro supports get rangefinder distance
2023-08-23 18:09:56 +10:00
olliw42
e2599252a1
AP_Mount: use backend instead of _backends[instance]
2023-08-11 07:55:05 +09:00
davidsastresas
767710340a
AP_Mount: Viewpro sends gimbal_device_id in camera_information
2023-08-10 14:37:30 +09:00
davidsastresas
25e8bd1f42
AP_Mount: Xacti sends gimbal_device_id in camera_information
2023-08-10 14:37:30 +09:00
davidsastresas
d242a968f3
AP_Mount: Siyi sends gimbal_device_id in camera_information
2023-08-10 14:37:30 +09: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
f26528edba
AP_Mount: fix GIMBAL_MANAGER_SET_PITCHYAW not working correctly when using multiple gimbals
2023-08-09 10:03:34 +09:00
Asif Khan
ea9f4a79f5
AP_Mount: fix sending camera information and settings for each backend
2023-08-09 10:03:34 +09:00
Randy Mackay
9a29bf3f05
Mount: type param desc gets Viewpro
2023-08-02 17:25:25 +10:00
Peter Barker
117d99045d
AP_Mount: correct ViewPro compilation under g++-7.5.0
...
non-trivial designators not implemented
2023-08-02 11:32:31 +09:00
Randy Mackay
617fb98eb6
AP_Mount: viewpro gets vehicle yaw in 0 to 360 range
2023-07-26 20:20:13 +09:00
Randy Mackay
0ccf41b525
AP_Mount: viewpro formatting fix
2023-07-26 20:20:13 +09:00
Randy Mackay
70cf9de970
AP_Mount: viewpro directly fills in packet structures
2023-07-26 20:20:13 +09:00
Randy Mackay
cea0acdb01
AP_Mount: viewpro implements set lens
...
also reports model, firmware version and zoom to GCS
also gets recording status from gimbal
2023-07-26 20:20:13 +09:00
Randy Mackay
315d972c5d
AP_Mount: add set lens support
2023-07-26 20:20:13 +09:00
Randy Mackay
11a505f16f
AP_Mount: Gremsy fix for attitude reporting
2023-07-26 17:33:18 +10:00
Randy Mackay
2812b1e8bf
AP_Mount: viewpro fix for pitch angle reporting
2023-07-26 17:33:18 +10: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
ca935ef47e
AP_Mount: viewpro and xacti only enabled on boards 2mb flash
2023-07-18 21:02:02 +09:00
Randy Mackay
d5977b6d96
AP_Mount: viewpro calc_crc len arg fix
...
Also remove one unnecessary length check
Also correct length check that meant last byte of buffer was unusable
2023-07-18 21:02:02 +09:00
Randy Mackay
a8bb79b9ab
AP_Mount: add viewpro cpp driver
2023-07-18 21:02:02 +09:00
Randy Mackay
ddb91afdde
AP_Mount: add set_tracking accessor
2023-07-18 21:02:02 +09:00
Randy Mackay
471f528233
AP_Mount: Xacti integrates get-date-and-time return of ms
2023-07-18 21:02:02 +09:00
Asif Khan
0c67f20a74
AP_Mount: fix setting default mode redundantly in each backend
2023-07-15 10:46:28 +10:00
Randy Mackay
c28e629af3
AP_Mount: Xacti fix for gnss format
2023-07-12 08:18:46 +09: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
Peter Barker
c70778e4d4
AP_Mount: correct gimbal manager flags
2023-07-03 08:09:04 +09:00
Randy Mackay
3388e6f25d
AP_Mount: remove xacti debug
2023-07-01 18:32:20 +10:00
Randy Mackay
bb8319e914
AP_Mount: frontend instantiates Xacti backend
2023-06-27 21:12:20 +10:00
Randy Mackay
a4f34811a0
AP_Mount: add Xacti DroneCAN backend
2023-06-27 21:12:20 +10:00
Randy Mackay
2a30bc7ce1
AP_Mount: add devid parameter and setter
2023-06-27 21:12:20 +10:00
Randy Mackay
cf77a564fd
AP_Mount: minor comment fix
2023-06-27 21:12:20 +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
Randy Mackay
39eb46fd26
AP_Mount: backend set_angle_target enforces bf 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
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
cd472b8f52
AP_Mount: use minimize_features.inc for more features
2023-06-06 10:14:02 +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
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
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
Randy Mackay
e672a75776
AP_SerialManager: generalise SToRM32 serial protocol desc and enum
2023-05-17 17:34:10 +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
341910bce4
AP_Mount: fix send_gimbal_manager_information instance
2023-05-17 12:38:49 +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
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
Asif Khan
3d11ec7b5c
AP_Mount: Add SysID-Target entry to MNTx_DEFLT_MODE param description
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
a3c5926040
AP_Mount: use quat.to_euler(Vector3f&)
2023-04-19 14:24:45 +10:00
Peter Barker
3b2e92c4d6
AP_Mount: use only radians within servo backend
2023-04-15 23:14:48 +10:00
Peter Barker
69d7843f22
AP_Mount: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
...
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Randy Mackay
470b9638ea
AP_Mount: remove unused get_camera_state
2023-04-14 07:47:47 +10:00
Randy Mackay
db51915e27
AP_Mount: scripting backend loses camera support
...
drivers should use the camera scripting backend
2023-04-13 07:04:46 +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
51757a192e
AP_Mount: clarify attitude returned in get_attitude_quaternion method call
2023-03-27 09:03:35 +09: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
Peter Barker
518fece88d
AP_Mount: remove redundant constructors
...
just copy in the one from the parent class
2023-03-07 13:40:54 +11:00
Peter Barker
93cb56b5f2
AP_Mount: create and use AP_Mount_config.h
2023-03-06 14:03:00 +11: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
44bf0ec1a7
AP_Mount: Gremsy uses _link.send_message(id, buffer) to send set-attitude
2023-02-25 17:41:44 +11:00
Peter Barker
2e987b3b35
AP_Mount: rename local _chan to chan in Gremsy methods
...
based on PR feedback
2023-02-24 09:21:09 +11:00
Peter Barker
550d94f99f
AP_Mount: correct double-mapping of port to channel number
...
set_message_interval takes a port number, not a channel number (it was originally written as an internal function, after all). Before this patch we were double-mapping from one to the other. That works so long as the port you are mapping also corresponds to the chanel number - which it will, for example, if you are using serial2 with both serial0 and serial1 also set to mavlink. If you set serial5_protocol to 2 an attempt to use it for controlling a gremsy it will *not* work because we map into backwards twice.
2023-02-24 09:21:09 +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
b8ace06077
AP_Mount: servo mount yaw handling fix
2023-01-24 10:59:10 +11:00
Randy Mackay
1a4f51d782
AP_Mount: servo driver loses unnecessary closest_limits method
2022-12-21 18:45:33 +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
Moe Bataineh
5b9403527b
AP_Mount: Align received data to AP frame for Storm32 Serial
...
(Note: reversed pitch and yaw) to match NED.
Update AP_Mount_SToRM32_serial.cpp
2022-12-13 09:02:43 +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
Randy Mackay
be922f20a2
AP_Mount: gremsy driver sends vehicle att at 50hz
2022-11-10 10:34:05 +09:00
Peter Barker
aad489c8cb
AP_Mount: change namespace of MultiCopter and FixedWing params
...
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00