Commit Graph

1310 Commits

Author SHA1 Message Date
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
2014-12-30 20:55:57 +01:00
Andrew Tridgell b455d647b2 l3gd20: added "l3gd20 regdump" command 2014-12-30 20:55:57 +01:00
Andrew Tridgell 4a81384b2d mpu6000: make register fixup much closer to a reset()
this may help automatic reset on the faulty boards
2014-12-30 20:55:57 +01:00
Andrew Tridgell e537de20e3 mpu6000: wait for 10ms after a full reset
this prevents the mpu6000 getting in a really weird state!
2014-12-30 20:55:57 +01:00
Andrew Tridgell 333039d3db mpu6000: added "mpu6000 testerror" command
used to generate a error case for reset testing
2014-12-30 20:55:57 +01:00
Andrew Tridgell b157466608 mpu6000: monitor some more registers 2014-12-30 20:55:57 +01:00
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
2014-12-30 20:55:57 +01:00
Andrew Tridgell ca47952281 l3gd20: added register checking
this checks at runtime that key registers have correct values
2014-12-30 20:55:57 +01:00
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
2014-12-30 20:55:57 +01:00
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
2014-12-30 20:55:57 +01:00
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.
2014-12-30 20:55:57 +01:00
M.H.Kabir 32bfc6cdb8 Minor re-addition 2014-12-30 16:32:16 +05:30
M.H.Kabir ce03794eca Merge remote-tracking branch 'upstream/master' into flow_orient
Conflicts:
	src/drivers/px4flow/px4flow.cpp
2014-12-30 16:23:52 +05:30
Lorenz Meier 7bed5b382f Clean up docs in PX4FLOW driver 2014-12-30 10:28:35 +01:00
Randy Mackay c4e3577476 batt_smbus: add search 2014-12-30 13:43:23 +09:00
Randy Mackay a952a18b42 batt_smbus: add get_PEC 2014-12-30 13:43:21 +09:00
Randy Mackay 65bcd0e122 batt_smbus: minor format fix 2014-12-30 13:43:18 +09:00
Randy Mackay 78b9e06a15 batt_smbus: remove redundant ORB_DECLARE 2014-12-30 13:43:15 +09:00
Randy Mackay b8e818b387 batt_smbus: remove sleep before I2C transfer 2014-12-30 13:43:13 +09:00
Randy Mackay df9547e9d3 batt_smbus: driver for smart battery 2014-12-30 13:43:11 +09:00
Randy Mackay ac9e9835ac i2c: const get_address 2014-12-30 13:43:08 +09:00
M.H.Kabir 33653b25c6 fix Z rotation 2014-12-27 23:25:08 +05:30
M.H.Kabir 11a14c2c3d Add rotation switching to flow from mavlink 2014-12-27 23:16:09 +05:30
M.H.Kabir d40168dc4b Add support for rotations of PX4flow 2014-12-27 23:01:31 +05:30
Lorenz Meier e952324fbf Rework HoTT into a proper library, which fixes parallel build breakage 2014-12-26 20:25:31 +01:00
Lorenz Meier da977bb39b Added HMC chip select support 2014-12-26 19:55:58 +01:00
Lorenz Meier 407889ea2c Merged master into indoor branch 2014-12-26 17:06:19 +01:00
Lorenz Meier 6fae021a00 Merge pull request #1527 from dagar/Werror
turn on -Werror and fix resulting errors
2014-12-25 17:44:44 +01:00
Mark Whitehorn 9292c8f405 add interrupt latency printout command and mean/variance to interval performance counter 2014-12-24 14:06:05 -07:00
Daniel Agar d511e39ea7 turn on -Werror and fix resulting errors 2014-12-22 17:56:59 -05:00
Grant Morphett 1910b7e88b MPU6000: Add regdump command
Add mpu6000 regdump command for debugging mpu6000.
2014-12-21 14:59:47 +01:00
Lorenz Meier dfc368ad46 Merge pull request #1497 from PX4/ll40lsdefaultmax
ll40ls: max distance according to datasheet
2014-12-14 13:14:23 +01:00
Thomas Gubler b6b80dcac1 ll40ls: write min and max to report 2014-12-14 12:10:29 +01:00
Thomas Gubler 0575f67300 ll40ls: fix whitespace 2014-12-14 12:10:29 +01:00
Thomas Gubler cc2dae23f9 trone: write min and max to report 2014-12-14 12:10:29 +01:00
Thomas Gubler 834ff85930 trone: fix whitespace 2014-12-14 12:10:28 +01:00
Thomas Gubler 8fd9f98904 sf0x: write min and max to report 2014-12-14 12:10:28 +01:00
Thomas Gubler 8ebe463f16 sf0x: fix whitespace 2014-12-14 12:10:28 +01:00
Thomas Gubler 682f30afe6 mb12xx: write min and max to report 2014-12-14 12:10:28 +01:00
Thomas Gubler 4a70da5c2c ll40ls: max distance according to datasheet
Datasheet:
http://pulsedlight3d.com/pl3d/wp-content/uploads/2014/11/LIDAR-Lite.pdf
2014-12-13 19:01:00 +01:00
Thomas Gubler 046ca1f8e3 ll40ls: fix whitespace 2014-12-13 19:00:35 +01:00
Lorenz Meier e51f72000b Fix RGB led stop command 2014-12-01 11:27:59 +01:00
Lorenz Meier 9d986f5df3 HMC5883: Better status reporting 2014-11-26 18:22:18 +01:00
Lorenz Meier 6200a3e3a5 Added TeraRanger one sensor 2014-11-26 07:56:54 +01:00
Lorenz Meier cbcd1ea1d1 Merged PX4Flow driver changes 2014-11-26 07:43:19 +01:00
Andrew Tridgell 4724c05047 airspeed: use _retries=2 for I2C retries once initialised
airspeed sensors often need to be on longer cables due to having to be
outside the prop wash.
2014-11-26 07:35:32 +01:00
Andrew Tridgell c906c21238 px4io: prevent use of uninitialised memory in io_set_arming_state()
the vehicle may not have setup a control_mode. We need to check the
return of orb_copy() to ensure we are getting initialised values
2014-11-26 11:39:41 +11:00
Andrew Tridgell 29f000dc31 px4io: fixed error returns to be negative
follow standard conventions
2014-11-26 11:39:41 +11:00
Andrew Tridgell 809500cfcd px4io: fixed RC_CONFIG channel limit check
number of channels is the right test, not number of actuators
2014-11-26 11:39:41 +11:00
Lorenz Meier b2671c8f05 GPS: be less verbose 2014-11-22 15:46:28 +01:00