Jake Dahl
5a678295b3
added a check to ensure the initialize settings function succeeds. If it does not, the driver fails gracefully. This handles the case that the device is not there.
2018-08-28 18:52:23 -04:00
Jake Dahl
507a872546
Made changes as requested by the dev team.
2018-08-27 21:15:04 +02:00
Jake Dahl
07d606ef83
Added TI PGA460 driver functionality to PX4.
2018-08-27 21:15:04 +02:00
Daniel Agar
fa9b968a16
ulanding cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
f2ef8708b2
tfmini cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
483bacad87
teraranger cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
cfe34ee19c
srf02 cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
ebcd3b0b2e
sf1xx cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
8cb222494a
sf0x cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
9a2def25f3
mb12xx cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
bdba733dd4
ll40ls cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
585d3bbe55
leddar_one cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
b7bf2dd688
hc_sr04 cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Lorenz Meier
1d027f938c
tfmini: fix format and fix driver start / stop logic so it works when running PX4 as threads on Linux.
2018-08-26 12:05:09 +02:00
Mohammed Kabir
38bae7d401
tfmini : restructure parsing logic to always publish latest measurement
2018-08-26 12:05:09 +02:00
Mohammed Kabir
3afa018954
tfmini : fix scheduling and modernize output
...
This reduces the scheduling interval to 9ms, such that the driver is always ready to read new data. Running it at exactly 100Hz is not correct since the driver and sensor measurement intervals are not "in sync", causing the driver to miss data. This causes a fill-up of the UART buffer.
2018-08-26 12:05:09 +02:00
mcsauder
722e891730
Add doxy styling to method comments and update comments, replace goto statements with stop() calls and return statements.
2018-08-05 09:54:46 +02:00
Philipp Oettershagen
da2fbf60b5
distance sensors: Improve variable naming / description
2018-07-16 21:59:04 +10:00
Philipp Oettershagen
35bde5c9fc
LL40LS: Implement driver-specific filtering based on the datasheet and experiments
2018-07-16 21:59:04 +10:00
DanielePettenuzzo
6cb17839ee
distance sensors: remove bus_option array and add it to i2c.h header
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
c13d69a610
distance sensor drivers: change all open and close to px4_open and px4_close
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
8f4e9228bf
mb12xx driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
fed6c9ae34
srf02 driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
5b259a008a
vl53lxx driver: add -b, -a and -R flags to choose i2c busses and sensor rotation and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
040662ff04
sf1xx driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
7d281b2619
teraranger driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
cf74166801
double promotion warning fix or ignore per module
2018-07-01 09:36:55 +00:00
Daniel Agar
02d4405a62
c++11 default destructors
2018-06-30 19:55:08 -04:00
DanielePettenuzzo
1da87aa173
Vl53lxx Driver Coverity Fixes ( #9671 )
2018-06-14 20:36:43 -04:00
Beat Küng
5cc450c7cb
srf02: fix resource leak (unclosed fd)
2018-06-13 16:19:34 +02:00
Philipp Oettershagen
be4ba32cf0
vl53lxx distance sensor: Remove subsystem_info calls because all sensors are now checked inside commander
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
f5847a4a7b
Subsystem_info status flags & checks: Switch back to uORB for inter-process communication, handle GPS checks completely inside ekf2, add distance_sensor checks
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
6f1f414b49
Subsystem_info status flags & checks : Initial commit, updating the health flags in a centralized way mostly in commander and the votedSensorsUpdate function.
2018-06-06 18:54:24 +02:00
DanielePettenuzzo
7a760ee501
fmu-v5: add PX4_I2C_BUS_EXPANSION1 and 2 to all drivers that check all the busses
2018-06-06 17:31:33 +02:00
Beat Küng
7a3b34be74
tfmini: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
eabfac71d6
teraranger: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
554003b3f1
srf02: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
490ccc0076
sf1xx: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
2a7cd392b1
sf0x: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
85c676316c
mb12xx: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
DanielePettenuzzo
9cad11d832
crazyflie: clean up
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
9c8e97a1ba
crazyflie: optical flow and distace sensor driver fixes
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
533f42adb8
crazyflie: add probe() to vl53lxx driver and set imu sampling rate to 200 Hz for this board
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
f49fd2acc7
crazyflie: increase imu reading rate
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
9c1cbdfa11
vl53lxx driver: change I2C frequency to 400 kHz
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
2d20f31a70
vl53lxx and pmw3901 drivers: style fix
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
3377ec181e
vl53lxx driver: add saturation when distance goes beyond max_distance
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
ad49509b84
vl53lxx driver: added work queue between measure and collect
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
ddf75db154
vl53lxx driver: cleanup for pull request
2018-05-22 12:21:45 +02:00