Patrick José Pereira
efffed0510
AP_RangeFinder: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Andrew Tridgell
66c05bef76
AP_RangeFinder: added USD1 CAN driver
...
also known as uLanding CAN
4 years ago
Peter Barker
1c57eed66c
AP_RangeFinder: remove unused voltage_mv_orient method
...
This is really backend-specific data and shouldn't be exposed
4 years ago
Andrew Tridgell
0c05e9a2e7
AP_RangeFinder: fixed handling of instance numbers
...
if a backend allocation failed then we could end up with the backend
being assigned to the wrong instance number. Switch to using
_add_backend() everywhere, and pass the instance number to
_add_backend() to ensure that it always uses the correct slot.
Also added comment explaining how num_sensors() works when we have a
sparse set of rangefinders configured
4 years ago
yaapu
bc21e505e3
AP_RangeFinder: aligned msp message data struct name to gps,baro and mag
4 years ago
Andrew Tridgell
34430e9d6c
AP_RangeFinder: allow separate enable of MSP rangefinder
5 years ago
Andrew Tridgell
84f7589f2d
AP_RangeFinder: allow separate enable of MSP rangefinder
5 years ago
yaapu
699ffcbcd2
AP_RangeFinder: added support for MSP based range finders
5 years ago
Iampete1
e18c195df4
AP_RangeFinder: add SITL backend
5 years ago
Randy Mackay
9c7f382392
AP_RangeFinder: remove unused set_rfnd_bit
5 years ago
Peter Barker
6ec497229b
AP_RangeFinder: add serial support for GY-US42v2 rangefinder
5 years ago
Peter Barker
fc1ea612b1
AP_RangeFinder: add support for HC-SR04 rangefinder
5 years ago
Andrew Tridgell
d16f31711e
AP_RangeFinder: fixed mixing UAVCAN and non-UAVCAN rangefinders
...
UAVCAN rangefinders add themselves to the frontend drivers as the
devices appear. If they turn up before RangeFinder::init() is run then
this prevented init() from scanning for the other rangefinders as
num_instances is non-zero
This also fixes a race condition in updating num_instances in the
UAVCAN backend
5 years ago
Andrew Tridgell
603e5c4b55
AP_RangeFinder: added get_address()
...
allows AP_Periph to supply sensor_id for multiple CAN rangefinders
5 years ago
Peter Barker
adcfb60850
AP_RangeFinder: comment out no-loner-used PX4 enum entry
5 years ago
Andrew Tridgell
2fa6f534ab
AP_RangeFinder: added get_type() API
5 years ago
Randy Mackay
b068f15932
AP_RangeFinder: LeddarVu8 driver
5 years ago
Michael du Breuil
8bd4f2b097
AP_RangeFinder: Allow the VL53L1X to be put into short range mode
5 years ago
Peter Barker
7c9ab0203d
AP_RangeFinder: rename source files to include AP_ prefix
...
This makes them look like most of our libraries
5 years ago
Peter Barker
82db4383d4
AP_RangeFinder: use enum-class for Status
5 years ago
Peter Barker
1989decbc1
AP_RangeFinder: use enum-class for RangeFinder function
5 years ago
Peter Barker
ea26e94f66
AP_RangeFinder: use enum-class for RangeFinder type
5 years ago
Andrew Tridgell
282936eab2
AP_RangeFinder: allow for less rangefinder instances
...
for AP_Periph
5 years ago
murata
000aa4f515
AP_RangeFinder: Add TF03-180
5 years ago
Andrew Tridgell
9c900c7176
AP_RangeFinder: added driver for Lanbao CM8JL65
6 years ago
Michael du Breuil
3202a2e0a6
AP_Rangefinder: Add arming checks
6 years ago
Pierre Kancir
c4ec373b20
AP_RangeFinder: pass mavlink_message_t by const reference
6 years ago
Peter Barker
ac96461c6c
AP_RangeFinder: use AP_SerialManager singleton
6 years ago
Peter Barker
4c88a1e9de
AP_RangeFinder: remove dangling update_instance declaration
6 years ago
Lucas De Marchi
b3a8496613
AP_RangeFinder: add support for Benewake TFMini Plus on I2C
...
This was tested with firmware 1.7.0 on the sensor.
6 years ago
Siddharth Purohit
479c238177
RangeFinder: add support for rangefinder sensor over can
6 years ago
Michael du Breuil
b31cd1adb5
AP_RangeFinder: Remove pre arm distance check
6 years ago
Peter Barker
dd567ad18a
AP_RangeFinder: handle RFND logging
6 years ago
Randy Mackay
5e9aebd678
AP_RangeFinder: BlueRobotics Ping driver
6 years ago
Michael du Breuil
21b64ad19b
AP_Rangefinder: Remove parameter manipulation from initializer
6 years ago
Michael du Breuil
49d20d4b4f
AP_Rangefinder: Remove unused AP_Math header
6 years ago
Dmitri Ranfft
f8af5afc53
RangeFinder: Removed the 3 bit limitation for the enumeration
6 years ago
Dmitri Ranfft
5eff01a86f
RangeFinder: allow up to 10 range finders to be used at once
6 years ago
Peter Barker
186ce80827
AP_RangeFinder: add pwm backend
6 years ago
Nghia Nguyen
513eb1f5db
AP_Rangefinder: Add support for Garmin LidarLite-V3HP
6 years ago
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.
6 years ago
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
7 years ago
Randy Mackay
9a7b378ddd
AP_RangeFinder: minor format change
...
lines up with parameter variables below
7 years ago
Randy Mackay
e520d4fe42
AP_RangeFinder: Benewake TF02 and TFmini lidar driver
7 years ago
Andrew Tridgell
3b8d5ea4cf
AP_Rangefinder: fixed param handling for Wasp backends
7 years ago
Michael du Breuil
b678302aed
AP_Rangefinder: Add WASP 200 LRF backend
7 years ago
Randy Mackay
3f749051d3
AP_RangeFinder: NMEA sonar driver
7 years ago
Michael du Breuil
7d6c3ec683
AP_RangeFinder: Make singleton
7 years ago
Michael du Breuil
9e551350a4
AP_RangeFinder: Remove unneeded state member
7 years ago
Francisco Ferreira
45531775cd
AP_Rangefinder: support multiple serial rangefinders
7 years ago