Michael du Breuil
85da4955b6
AP_Rangefinder: Enforce checking I2C status on VL53L1X
2019-05-05 12:12:05 -07:00
Michael du Breuil
b31cd1adb5
AP_RangeFinder: Remove pre arm distance check
2019-04-16 11:00:32 +09:00
Michael du Breuil
6dd05db3b7
AP_Rangefinder: Fix VL53L1X ignoring return status
2019-04-12 17:23:19 +10:00
murata
49b0a00182
AP_RangeFinder: Delete unnecessary judgment
2019-04-11 06:11:47 -07:00
Peter Barker
dd567ad18a
AP_RangeFinder: handle RFND logging
2019-04-09 22:17:58 +10:00
Adolfo
428d4d4574
AP_RangeFinder: fixed TeraRangerI2C refresh rate and status
2019-04-09 12:22:19 +10:00
Randy Mackay
5e9aebd678
AP_RangeFinder: BlueRobotics Ping driver
2019-04-08 09:43:41 +09:00
Randy Mackay
65966ac957
AP_RangeFinder: add LidarLitev3HP and PWM to TYPE param desc
2019-04-08 09:43:41 +09:00
Michael du Breuil
21b64ad19b
AP_Rangefinder: Remove parameter manipulation from initializer
2019-04-06 09:15:22 +11:00
Michael du Breuil
49d20d4b4f
AP_Rangefinder: Remove unused AP_Math header
2019-04-05 20:12:53 +11:00
Pierre Kancir
37d121ae02
AP_RangeFinder: remove useless includes
2019-03-26 10:27:54 +11:00
Andrew Tridgell
ccfaaca82b
AP_RangeFinder: fixed lightware serial with LW20 lidar
...
it needs a longer serial write to force it to serial mode from i2c
2019-02-23 11:01:07 +11:00
Peter Barker
b0c65b9014
AP_RangeFinder_PWM: correct integer division issue
2019-02-20 17:50:46 +11:00
Andrew Tridgell
bf4dc2d3b7
AP_RangeFinder: probe all I2C buses for rangefinders
...
we now have flight boards with up to 4 I2C buses, and probing only 2
of them causes user confusion
2019-02-12 13:07:24 +11:00
Randy Mackay
a72477590f
AP_RangeFinder: format fixes
2019-02-04 11:32:13 +09:00
Dmitri Ranfft
f8af5afc53
RangeFinder: Removed the 3 bit limitation for the enumeration
2019-02-04 11:08:50 +09:00
Dmitri Ranfft
5eff01a86f
RangeFinder: allow up to 10 range finders to be used at once
2019-02-04 11:08:47 +09:00
Peter Barker
d71244dd23
APM_RangeFinder: remove PX4 backend type
2019-01-17 12:30:56 +11:00
Peter Barker
f037629fc3
RangeFinder: understand stop pin for AP_RangeFinder_PWM backend
2019-01-10 16:28:14 +11:00
Julien Beraud
e165e9c323
AP_RangeFinder: fix bebop rangefinder
...
Fix Backend constructor call
2018-12-22 08:44:50 +09:00
Nghia Nguyen
60250e4c49
AP_Rangefinder: Add support for ST VL53L1X
2018-12-17 14:00:31 +09:00
Randy Mackay
fbf072d84b
AP_RangeFinder: add range to POS param description
2018-12-13 20:14:05 +09:00
Michael du Breuil
52d6353e33
AP_Rangefinder: Remove unused members
2018-11-27 07:36:17 +11:00
Randy Mackay
6816262e3d
AP_RangeFinder: benewake tfmini always provide cm distances
...
a misunderstanding of the datasheet led to the mistaken idea that while in short-range-mode the distances were returned in millimeters
2018-11-21 08:38:31 +09:00
Randy Mackay
f5a9fdaf42
RangeFinder: benewake buffer uses uint8_t
2018-11-19 11:33:48 +09:00
Randy Mackay
e9c1abfc3c
AP_RangeFinder: fix benewake checksum check
2018-11-15 09:18:45 +09:00
Randy Mackay
123e10c058
AP_RangeFinder: benewake returns at least 12m or 22m when out-of-range
...
value logged and shown to the user will be at least 12m for TFmini or 22m for TF02 which ensure the user won't see the range drop even if they have configured a very short useable distance
2018-11-15 09:18:45 +09:00
Randy Mackay
35be68348d
AP_RangeFinder: benewake logic reordering
...
this should be a non-functional change
2018-11-10 12:20:27 +09:00
Randy Mackay
a09cd8411d
AP_RangeFinder: benewake lidar returns max range + 1m when out-of-range
...
also returns out-of-range when signal is weak
2018-11-10 12:20:27 +09:00
Peter Barker
c2b334eaad
AP_RangeFinder: PWM: take an average of any readings accumulated in irq
2018-11-08 21:03:35 +11:00
Andrew Tridgell
76a2cd1540
AP_RangeFinder: set pin to input before attaching interrupt
...
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Peter Barker
94e0485bdf
AP_RangeFinder: add override keyword where required
2018-11-08 11:30:12 +11:00
Peter Barker
6e84a31613
AP_RangeFinder: use new ChibiOS driver if user attempts to use PX4 PWM driver
2018-11-07 08:59:19 +11:00
Peter Barker
186ce80827
AP_RangeFinder: add pwm backend
2018-11-07 08:59:19 +11:00
Randy Mackay
7fdd0bd996
AP_RangeFinder: Benewake driver discards distances over 327m
2018-11-06 11:58:32 +11:00
murata
c8f93a3ddc
RangeFinder: Added statement FALLTHROUGH
2018-10-30 09:13:29 +09:00
Nghia Nguyen
513eb1f5db
AP_Rangefinder: Add support for Garmin LidarLite-V3HP
2018-10-27 11:22:57 +01:00
Randy Mackay
82a28dc0fc
AP_RangeFinder: check I2C dev during detect
2018-10-26 13:33:27 +09:00
Andrew Tridgell
b1e4434332
AP_RangeFinder: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Peter Barker
3be9f35264
AP_RangeFinder: remove rangefinder prearm requirements for SITL
...
Getting the virtual rangefinder to move in prearm would be better, much
much more involved.
2018-10-09 10:47:38 +11:00
Randy Mackay
3e8d9f4131
RangeFinder: shorten comment
2018-08-28 09:23:38 +09:00
Randy Mackay
1b0f0a7559
AP_RangeFinder: support last_reading_ms
...
Benewake, LeddarOne, LightWareSerial, MAVLink, MaxsonarI2CXL, MaxsonarSerialLV, NMEA, PX4_PWM, uLanding and Wasp already stored the last read time so for these drivers, this change just moves that storage to the state structure
analog, BBB_PRU, Bebop, LightWareI2C, PulsedLightLRF, TeraRangerI2C, VL53L0X did not store the last read time so this was added
2018-08-28 09:23:38 +09:00
Randy Mackay
9e27b93538
AP_RangeFinder: move some backend implementations to cpp file
2018-08-28 09:23:38 +09:00
Randy Mackay
9a7b378ddd
AP_RangeFinder: minor format change
...
lines up with parameter variables below
2018-08-28 09:23:38 +09:00
pierre-louis.k
e62ed19759
AP_RangeFinder: Remove range enforcement on out of range
2018-08-27 10:25:51 +09:00
pierre-louis.k
5577b8b33c
AP_RangeFinder: Rework function structure in TeraRanger driver
2018-08-27 10:25:49 +09:00
pierre-louis.k
b6f1647c31
AP_RangeFinder: Rename function in TeraRanger driver
2018-08-27 10:25:47 +09:00
pierre-louis.k
1b990c116d
AP_RangeFinder: Give back semaphore on whoami error
2018-08-27 10:25:45 +09:00
pierre-louis.k
4d45b68fa3
AP_RangeFinder: Clean TeraRanger driver
2018-08-27 10:25:43 +09:00
pierre-louis.k
d162afb790
AP_RangeFinder: Add error codes rejection for TeraRanger sensors
2018-08-27 10:25:41 +09:00