Commit Graph

31 Commits

Author SHA1 Message Date
Andrew Tridgell f8d64afc69 AP_IRLock: use SocketAPM_native 2024-01-03 12:14:47 +11:00
murata 42264599f2 AP_IRLock: correct spelling mili -> milli 2022-01-31 08:55:29 +09:00
Iampete1 66e1baa94c AP_IRLock_I2C: add comment on calibration equation 2021-09-13 10:56:00 +09:00
bugobliterator 58baad9949 AP_IRLock: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Andrew Tridgell 4895a08ab2 AP_IRLock: convert SITL backends to double precision position 2021-06-24 21:34:30 +10:00
murata 03e658772a AP_IRLock: Change the tab code to whitespace 2020-04-27 09:29:11 +09:00
Andrew Tridgell a3b283708b AP_IRLock: removed unusued AP_Common/Semaphore.h 2019-05-15 15:33:48 +10:00
Pierre Kancir 42cc9c755a AP_IRLock: add SITL IRLock
AP_IRLock: simplify include

AP_IRLock: reduce scope of gazebo irlock_paquet

AP_IRLock: add z pos for IRLock SITL, set to 1.0 for pixycam

AP_IRLock: remove unused target size and get_angle_to_target_rad function
2019-03-01 20:28:22 +11:00
Andrew Tridgell dedfa54d5a AP_IRLock: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Pierre Kancir 0ee6e41f6e AP_IRLock: Replace find_object with SITL singleton 2018-06-27 14:59:33 -07:00
Andrew Tridgell 7992a21f6f AP_IRLock: added override keyword 2017-04-14 08:47:39 +10:00
Andrew Tridgell 2eb363a950 AP_IRLock: allow specification of i2c bus 2017-04-14 08:47:39 +10:00
Pierre Kancir 1bb4e3c9b7 AP_IRLock_SITL: make port variable 2017-03-18 19:58:11 +11:00
murata fe93bdbc5e AP_IRLock: Change from magic number 0 to definition name. 2017-02-18 14:12:36 +00:00
Pierre Kancir 83c7217911 AP_IRLock_SITL: correct packet timestamp 2017-01-19 17:08:43 +00:00
Lucas De Marchi 5472bc4de1 Global: change Device::PeriodicCb signature
Remove bool return as it's never being used and not supported on PX4.
2017-01-14 10:03:54 +11:00
Andrew Tridgell bc33c19f21 AP_IRLock: fixed build 2016-12-05 16:51:49 -08:00
Randy Mackay bac5deed43 AP_IRLock: health reporting based on successful I2C transfer
This change is required because sync messages are only sent if a target is visible
2016-11-28 12:08:36 +09:00
Andrew Tridgell c62b64a600 AP_IRLock: improved sync protocol for IRLock I2C driver 2016-11-28 08:39:06 +11:00
Andrew Tridgell c6ea451c56 AP_IRLock: new in-tree IRLock driver on I2C 2016-11-28 08:26:58 +11:00
John Hsu a8cf38b366 SITL: implement Gazebo SITL for IRLock tracking. 2016-10-13 12:03:20 +11:00
LukeMike e6c8653302 AP_IRLock_PX4: enabled sensor driver startup on bus2 if don't start on bus1 2016-08-11 07:52:39 +10:00
Andrew Tridgell e24cebec33 AP_IRLock: auto-start batt_smbus driver if enabled 2016-08-10 19:54:00 +10:00
Jonathan Challinger 6254608c45 AP_IRLock: refactor interface 2016-07-12 18:40:25 +09:00
Lucas De Marchi 152f169b76 AP_IRLock: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
Caio Marcelo de Oliveira Filho 87b9b4463e AP_IRLock: use millis/micros/panic functions 2015-11-20 12:31:35 +09:00
Randy Mackay 2351e84592 IRLock: replace tabs with spaces
No functional change
2015-08-31 18:00:33 +09:00
Randy Mackay 6f3ff0866f IRLock: adjust to px4 lib calculating bf angles 2015-08-31 18:00:20 +09:00
Randy Mackay 04c682542c IRLock: correct include paths 2015-08-31 18:00:14 +09:00
bstone04 cf8ce867e6 IRLock: many changes to integrate with PrecLand library
irlock_center_x_pos calculates the lateral x position of the marker in cm. relative to the quad
irlock_x_pos_to_latlon rotates the frame based x position to latitude/longtitude based coordinates
same case for the y position
add get_angle_to_target method
get_angle_to_target replaces pixel to position calculations
Also removed ahrs reference (now in AC_PrecLand lib), unused references
to orb and commented out parameter declaration
reduce max objects to 5
remove ahrs reference
add timeout
return true if new sample found
bug fix get_angle_to_target
remove unused get_frame
2015-08-31 17:57:57 +09:00
Michael Landes 59928ed677 IRLock: Initial implementation
Define the IRLock sensor object using PX4 level driver
2015-08-31 17:57:56 +09:00