aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* mpu6000: removed unsafe printf in interrupt contextAndrew Tridgell2015-01-011-38/+4
| | | | | | | 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
* lsm303d: show all perf counters in "info"Andrew Tridgell2015-01-011-0/+2
|
* lsm303d: check DRDY after check_registers()Andrew Tridgell2015-01-011-13/+14
| | | | this allows recovery from a state where DRDY is not set
* lsm303d: removed unsafe printf in interrupt contextAndrew Tridgell2015-01-011-8/+0
|
* lsm303d: added two more checked registersAndrew Tridgell2015-01-011-3/+5
| | | | these are key for DRDY behaviour
* l3m303d: added testerror commandAndrew Tridgell2015-01-011-2/+34
| | | | useful for testing error handling
* l3gd20: fixed reporting of error countAndrew Tridgell2015-01-011-1/+1
|
* l3gd20: check DRDY after check_registers() is calledAndrew Tridgell2015-01-011-11/+12
| | | | this allows us to recover from an error that disables data ready
* l3gd20: removed printf in interrupt contextAndrew Tridgell2015-01-011-8/+0
| | | | this is not safe
* l3gd20: added testerror commandAndrew Tridgell2015-01-011-2/+33
| | | | useful for testing error handling
* l3gd20: use the I2C disable bit on l3gd20HAndrew Tridgell2014-12-301-2/+9
| | | | | this seems to prevent a mpu6000 reset from causing an issue on the l3gd20H
* l3gd20: added "l3gd20 regdump" commandAndrew Tridgell2014-12-301-2/+41
|
* mpu6000: make register fixup much closer to a reset()Andrew Tridgell2014-12-301-5/+37
| | | | this may help automatic reset on the faulty boards
* mpu6000: wait for 10ms after a full resetAndrew Tridgell2014-12-301-7/+24
| | | | this prevents the mpu6000 getting in a really weird state!
* mpu6000: added "mpu6000 testerror" commandAndrew Tridgell2014-12-301-2/+45
| | | | used to generate a error case for reset testing
* mpu6000: monitor some more registersAndrew Tridgell2014-12-301-2/+6
|
* mpu6000: added factory self-test functionAndrew Tridgell2014-12-301-18/+208
| | | | | 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
* l3gd20: added register checkingAndrew Tridgell2014-12-301-24/+122
| | | | this checks at runtime that key registers have correct values
* mpu6000: try resetting the mpu6000 up to 5 timesAndrew Tridgell2014-12-301-23/+39
| | | | | this mirrors the ardupilot driver. We have seen situations where the mpu6000 on the Pixhawk comes up in SLEEP mode, despite a reset
* lsm303d: replace old register checking with new check_registers() methodAndrew Tridgell2014-12-301-222/+125
| | | | | | | | 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
* mpu6000: monitor some key registers for correct valuesAndrew Tridgell2014-12-301-10/+132
| | | | | this will catch both bad SPI bus comms and a sensor that has been reset causing incorrect configuration.
* Minor re-additionM.H.Kabir2014-12-301-0/+3
|
* Merge remote-tracking branch 'upstream/master' into flow_orientM.H.Kabir2014-12-305-6/+602
|\ | | | | | | | | Conflicts: src/drivers/px4flow/px4flow.cpp
| * Clean up docs in PX4FLOW driverLorenz Meier2014-12-301-5/+6
| |
| * batt_smbus: add searchRandy Mackay2014-12-301-3/+38
| |
| * batt_smbus: add get_PECRandy Mackay2014-12-301-7/+77
| |
| * batt_smbus: minor format fixRandy Mackay2014-12-301-1/+1
| |
| * batt_smbus: remove redundant ORB_DECLARERandy Mackay2014-12-301-3/+0
| |
| * batt_smbus: remove sleep before I2C transferRandy Mackay2014-12-301-3/+0
| |
| * batt_smbus: driver for smart batteryRandy Mackay2014-12-303-0/+496
| |
| * i2c: const get_addressRandy Mackay2014-12-301-1/+1
| |
* | fix Z rotationM.H.Kabir2014-12-271-2/+3
| |
* | Add rotation switching to flow from mavlinkM.H.Kabir2014-12-271-1/+1
| |
* | Add support for rotations of PX4flowM.H.Kabir2014-12-273-8/+31
|/
* Rework HoTT into a proper library, which fixes parallel build breakageLorenz Meier2014-12-265-16/+53
|
* Added HMC chip select supportLorenz Meier2014-12-262-0/+17
|
* Merged master into indoor branchLorenz Meier2014-12-2620-230/+1324
|\
| * Merge pull request #1527 from dagar/WerrorLorenz Meier2014-12-259-8/+11
| |\ | | | | | | turn on -Werror and fix resulting errors
| | * turn on -Werror and fix resulting errorsDaniel Agar2014-12-229-8/+11
| | |
| * | add interrupt latency printout command and mean/variance to interval ↵Mark Whitehorn2014-12-241-3/+5
| |/ | | | | | | performance counter
| * MPU6000: Add regdump commandGrant Morphett2014-12-211-2/+42
| | | | | | | | Add mpu6000 regdump command for debugging mpu6000.
| * Merge pull request #1497 from PX4/ll40lsdefaultmaxLorenz Meier2014-12-141-1/+1
| |\ | | | | | | ll40ls: max distance according to datasheet
| | * ll40ls: max distance according to datasheetThomas Gubler2014-12-131-1/+1
| | | | | | | | | | | | | | | Datasheet: http://pulsedlight3d.com/pl3d/wp-content/uploads/2014/11/LIDAR-Lite.pdf
| | * ll40ls: fix whitespaceThomas Gubler2014-12-131-9/+9
| | |
| * | ll40ls: write min and max to reportThomas Gubler2014-12-141-0/+2
| | |
| * | ll40ls: fix whitespaceThomas Gubler2014-12-141-9/+9
| | |
| * | trone: write min and max to reportThomas Gubler2014-12-141-0/+2
| | |
| * | trone: fix whitespaceThomas Gubler2014-12-141-4/+4
| | |
| * | sf0x: write min and max to reportThomas Gubler2014-12-141-0/+2
| | |
| * | sf0x: fix whitespaceThomas Gubler2014-12-141-1/+1
| | |