Andrew Tridgell
500ac1443b
lsm303d: detect large fixed values and report an error
...
we have logs where the lsm303d gets large fixed values for long
periods. This will detect that error case and raise error_count so the
higher level sensor integration code can choose another sensor
10 years ago
Andrew Tridgell
7b6620b319
ll40ls: fixed exit code on external sensor startup failure
10 years ago
Andrew Tridgell
8470105f9e
lsm303d: fixed build warning
10 years ago
Andrew Tridgell
7864958f1c
l3gd20: fixed build warning
10 years ago
Andrew Tridgell
82b9e08e4c
mpu6000: removed unsafe printf in interrupt context
...
instead delay 3ms between register writes. This seems to give a quite
high probability of correctly resetting the sensor, and does still
reliably detect the sensor going bad, which is the most important
thing in this code
10 years ago
Andrew Tridgell
b5f6fedfa8
lsm303d: show all perf counters in "info"
10 years ago
Andrew Tridgell
083d9e3e69
lsm303d: check DRDY after check_registers()
...
this allows recovery from a state where DRDY is not set
10 years ago
Andrew Tridgell
1de7fab974
lsm303d: removed unsafe printf in interrupt context
10 years ago
Andrew Tridgell
e4318345f3
lsm303d: added two more checked registers
...
these are key for DRDY behaviour
10 years ago
Andrew Tridgell
2ac3a6fcf4
l3m303d: added testerror command
...
useful for testing error handling
10 years ago
Andrew Tridgell
5c1da70d0c
l3gd20: fixed reporting of error count
10 years ago
Andrew Tridgell
1bb3974c84
l3gd20: check DRDY after check_registers() is called
...
this allows us to recover from an error that disables data ready
10 years ago
Andrew Tridgell
8db2066151
l3gd20: removed printf in interrupt context
...
this is not safe
10 years ago
Andrew Tridgell
353ea9beac
l3gd20: added testerror command
...
useful for testing error handling
10 years ago
Andrew Tridgell
a8cea3a4da
l3gd20: use the I2C disable bit on l3gd20H
...
this seems to prevent a mpu6000 reset from causing an issue on the
l3gd20H
10 years ago
Andrew Tridgell
b455d647b2
l3gd20: added "l3gd20 regdump" command
10 years ago
Andrew Tridgell
4a81384b2d
mpu6000: make register fixup much closer to a reset()
...
this may help automatic reset on the faulty boards
10 years ago
Andrew Tridgell
e537de20e3
mpu6000: wait for 10ms after a full reset
...
this prevents the mpu6000 getting in a really weird state!
10 years ago
Andrew Tridgell
333039d3db
mpu6000: added "mpu6000 testerror" command
...
used to generate a error case for reset testing
10 years ago
Andrew Tridgell
b157466608
mpu6000: monitor some more registers
10 years ago
Andrew Tridgell
e5d3c80686
mpu6000: added factory self-test function
...
this follows the factory calibration self-test method in the datasheet
to see if the sensor still has the same calibration it had in the factory
10 years ago
Andrew Tridgell
ca47952281
l3gd20: added register checking
...
this checks at runtime that key registers have correct values
10 years ago
Andrew Tridgell
ae3a92569d
mpu6000: try resetting the mpu6000 up to 5 times
...
this mirrors the ardupilot driver. We have seen situations where the
mpu6000 on the Pixhawk comes up in SLEEP mode, despite a reset
10 years ago
Andrew Tridgell
03c40d5d91
lsm303d: replace old register checking with new check_registers() method
...
this uses the same method as is now used in the MPU6000 to check that
the sensor retains its correct values
Conflicts:
src/drivers/lsm303d/lsm303d.cpp
10 years ago
Andrew Tridgell
3e06a65516
mpu6000: monitor some key registers for correct values
...
this will catch both bad SPI bus comms and a sensor that has been
reset causing incorrect configuration.
10 years ago
M.H.Kabir
32bfc6cdb8
Minor re-addition
10 years ago
Lorenz Meier
7bed5b382f
Clean up docs in PX4FLOW driver
10 years ago
Randy Mackay
c4e3577476
batt_smbus: add search
10 years ago
Randy Mackay
a952a18b42
batt_smbus: add get_PEC
10 years ago
Randy Mackay
65bcd0e122
batt_smbus: minor format fix
10 years ago
Randy Mackay
78b9e06a15
batt_smbus: remove redundant ORB_DECLARE
10 years ago
Randy Mackay
b8e818b387
batt_smbus: remove sleep before I2C transfer
10 years ago
Randy Mackay
df9547e9d3
batt_smbus: driver for smart battery
10 years ago
Randy Mackay
ac9e9835ac
i2c: const get_address
10 years ago
M.H.Kabir
33653b25c6
fix Z rotation
10 years ago
M.H.Kabir
11a14c2c3d
Add rotation switching to flow from mavlink
10 years ago
M.H.Kabir
d40168dc4b
Add support for rotations of PX4flow
10 years ago
Lorenz Meier
e952324fbf
Rework HoTT into a proper library, which fixes parallel build breakage
10 years ago
Lorenz Meier
da977bb39b
Added HMC chip select support
10 years ago
Mark Whitehorn
9292c8f405
add interrupt latency printout command and mean/variance to interval performance counter
10 years ago
Daniel Agar
d511e39ea7
turn on -Werror and fix resulting errors
10 years ago
Grant Morphett
1910b7e88b
MPU6000: Add regdump command
...
Add mpu6000 regdump command for debugging mpu6000.
10 years ago
Thomas Gubler
b6b80dcac1
ll40ls: write min and max to report
10 years ago
Thomas Gubler
0575f67300
ll40ls: fix whitespace
10 years ago
Thomas Gubler
cc2dae23f9
trone: write min and max to report
10 years ago
Thomas Gubler
834ff85930
trone: fix whitespace
10 years ago
Thomas Gubler
8fd9f98904
sf0x: write min and max to report
10 years ago
Thomas Gubler
8ebe463f16
sf0x: fix whitespace
10 years ago
Thomas Gubler
682f30afe6
mb12xx: write min and max to report
10 years ago
Thomas Gubler
4a70da5c2c
ll40ls: max distance according to datasheet
...
Datasheet:
http://pulsedlight3d.com/pl3d/wp-content/uploads/2014/11/LIDAR-Lite.pdf
10 years ago