Commit Graph

30 Commits

Author SHA1 Message Date
Thomas Watson 01c6765b6f AP_Mount: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson 2dd98e60ea AP_Mount: Xacti: drop unused subscription status variable 2024-11-18 10:30:29 +11:00
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 edc0e46614 AP_Mount: add and use global NaNf float value 2024-09-26 19:26:59 +10:00
Andrew Tridgell 28da263e16 AP_Mount: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Randy Mackay a6a5cde34c AP_Mount: add set_camera_source support 2024-03-25 09:19:18 +09: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 48b10a3105 AP_Mount: allow for compilation without AP_RTC_ENABLED 2023-10-11 19:17:27 +11:00
Randy Mackay 8999790ff0 AP_Mount: Xacti digital zoom percentage fix 2023-10-03 13:48:41 +09:00
Randy Mackay 6690b19364 AP_Mount: Xacti supports optical zoom 2023-10-03 13:48:41 +09:00
Randy Mackay 0b18de050a AP_Mount: Xacti minor format update 2023-10-03 13:48:41 +09:00
Randy Mackay 18bf9669b0 AP_Mount: Xacti get_param_name_str returns empty string on failure 2023-10-03 11:24:10 +11:00
Randy Mackay 046cf5630e AP_Mount: Xacti uses GCS_SEND_TEXT 2023-10-03 11:24:10 +11:00
Randy Mackay 288f7b5650 AP_Mount: Xacti take pic reliability improved 2023-10-03 11:24:10 +11:00
Randy Mackay 4ba6375d38 AP_Mount: Xacti does not report cannot take pic 2023-10-03 11:24:10 +11:00
Randy Mackay ee7df6b060 AP_Mount: Xacti sets datetime 2023-09-19 10:58:52 +10:00
Randy Mackay 5e77ca483d AP_Mount: Xacti slides reduced flash usage 2023-09-19 10:58:52 +10:00
Randy Mackay b7d44c75a6 AP_Mount: Xacti gets reduced call to AP_HAL::millis() 2023-09-19 10:58:52 +10:00
Randy Mackay fc24b45d56 AP_Mount: Xacti handles firmware ver and status 2023-09-19 10:58:52 +10:00
Randy Mackay 820d00dfcd AP_Mount: xacti supports set lens and zoom 2023-09-05 10:19:08 +10:00
Andrew Tridgell 3752750f0a AP_Mount: removed native_millis/micros 2023-08-24 13:06:40 +10:00
davidsastresas 25e8bd1f42 AP_Mount: Xacti 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
Randy Mackay 471f528233 AP_Mount: Xacti integrates get-date-and-time return of ms 2023-07-18 21:02:02 +09:00
Randy Mackay c28e629af3 AP_Mount: Xacti fix for gnss format 2023-07-12 08:18:46 +09:00
Peter Barker 485fee36ab AP_Mount: add and use SetFocusResult 2023-07-05 16:28:42 +10:00
Randy Mackay 3388e6f25d AP_Mount: remove xacti debug 2023-07-01 18:32:20 +10:00
Randy Mackay a4f34811a0 AP_Mount: add Xacti DroneCAN backend 2023-06-27 21:12:20 +10:00