Commit Graph

9 Commits

Author SHA1 Message Date
Thomas Watson 1c08119dd9 AP_OpticalFlow: 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
Peter Barker d2400ad39b AP_OpticalFlow: correct names of variables in HereFlow OF driver
my guess is that the heavy maths was moved out of the timer function
2024-01-10 09:44:58 +11:00
Andrew Tridgell 6bc060d8ab AP_OpticalFlow: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
bugobliterator bcecda5c3f AP_Opticalflow: replace libuavcan with libcanard based driver 2023-03-29 17:16:39 +11:00
Peter Barker e45f938056 AP_OpticalFlow: rename OpticalFlow class to AP_OpticalFlow
Brings us in-line with other classes in ArduPilot.

Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets
2022-08-18 14:24:01 +10:00
Peter Barker 99ccbee474 AP_OpticalFlow: create and use AP_OPTICALFLOW_ENABLED
Including a define for each backend.
2021-12-29 18:12:03 +11:00
Siddharth Purohit 8a31448709 AP_OpticalFlow: move to using CANManager library 2020-08-19 17:31:09 +10:00
Peter Barker 18999aab72 AP_OpticalFlow: correct bad include of old semaphore library 2019-05-15 19:34:31 +09:00
Siddharth Purohit 67fcd773a6 OpticalFlow: add support for HereFlow message over can 2019-05-15 16:01:53 +09:00