Lorenz Meier
773f70a9df
Merged origin/master into pubsub_cleanup
2014-02-09 16:04:32 +01:00
Andrew Tridgell
dda50c62bf
hmc5883: much faster calibration code with bug fixes
...
this fixes two bugs in "hmc5883 calibrate" and also makes it much
faster, so it can be run on every boot. It now uses the correct 2.5Ga
range when calibrating, and fixes the expected values for X/Y/Z axes
The basic calibration approach is similar to the APM2 driver, waiting
for 10 good samples after discarding some initial samples. That allows
the calibration to run fast enough that it can be done on every boot
without causing too much boot delay.
2014-01-23 21:40:29 +01:00
Lorenz Meier
28a3dc726f
Support for publication blocking: HMC5883
2014-01-12 11:53:56 +01:00
Andrew Tridgell
5ee41bc083
hmc5883: use register_class_devname()
2013-12-10 11:37:59 +01:00
Lorenz Meier
7becbcdbd5
Made all usual suspects default to their custom names and only register the default name if its not already taken by someone else
2013-12-07 10:34:32 +01:00
Lorenz Meier
90c4664dce
Merged status changes
2013-10-06 14:17:37 +02:00
Lorenz Meier
24648b5294
Minor cleanups in the drivers
2013-09-13 10:16:32 +02:00
Andrew Tridgell
4893509344
drivers: report error_count in drivers where possible
2013-09-12 09:26:49 +02:00
px4dev
cefc7ac00e
Rework the ringbuffer class so that it's not templated, and refactor its clients so they aren't dancing around the linker anymore.
2013-09-12 00:53:08 +02:00
Andrew Tridgell
3c45261117
hmc5883: use a RingBuffer to hold report queue
...
this simplifies the queue handling, and avoids the need for a
start()/stop() on queue resize
2013-09-12 00:51:41 +02:00
Andrew Tridgell
04f8e338b6
hmc5883: add perf count, and removed unnecessary checks for -32768
...
we've already checked that the absolute value is <= 2048
2013-09-12 00:51:13 +02:00
Lorenz Meier
98ac914cb0
Add setting queue depth to HMC test
2013-09-08 22:07:33 +02:00
Julian Oes
e8c309fb14
Workaround to prevent crash during mag calibration
2013-09-05 15:57:09 +02:00
Andrew Tridgell
fdbc09e2a5
avoid counters going above limit in INCREMENT()
...
when using INCREMENT() the counter would temporarily read equal to
limit, which could cause an issue if the task is preempted.
(this macro should be in a common header, though which header?)
2013-08-28 11:16:30 +02:00
Andrew Tridgell
ad732ee3a1
free perf counters in driver destructor
...
this prevents drivers that probe on one bus then instantiate on
another from leaving behind stale/duplicate perf counters
2013-08-28 11:15:43 +02:00
Julian Oes
3875df2fe0
Workaround to get the HMC5883 default rate right
2013-08-21 10:44:47 +02:00
Julian Oes
658276e1cc
Add reset and samplerate ioctl to HMC5883 driver
2013-08-21 09:23:21 +02:00
Julian Oes
f5c92314f1
Improved LSM303D driver, plus some fixes to the HMC5883
2013-08-20 20:02:06 +02:00
Julian Oes
307c9e52c7
Sorry, finally got the axes of the external mag right
2013-08-20 20:00:16 +02:00
Julian Oes
12df5dd269
Corrected orientation of external mag
2013-08-19 16:32:56 +02:00
Julian Oes
408eaf0ad1
Add ioctl to find out if mag is external or onboard
2013-08-18 09:24:27 +02:00
px4dev
9d6ec6b365
Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
...
Rename some directories that got left behind in the great board renaming.
2013-08-02 22:34:55 -07:00
Lorenz Meier
8d1abf4aa4
Lunchtime HOTFIX: Bring back USB console to operational, allow single-USB connection operation via QGC
2013-07-18 13:16:34 +02:00
Lorenz Meier
27ee36b204
Hotfix: Completely silencing HMC5883 probing to not confuse users
2013-05-28 07:18:07 +02:00
Lorenz Meier
f1a8f6e75b
Hotfix: Made HMC driver more verbose to prevent false alarm
2013-05-27 16:58:30 +02:00
Andrew Tridgell
d0122dccfc
hmc5883: fixed use of onboard I2C compass
2013-05-04 18:44:37 +10:00
Lorenz Meier
8040b9b96e
Allowed for onboard bus to be not present
2013-04-27 19:51:06 +02:00
Lorenz Meier
ee498a9d7c
Made HMC bus-agnostic
2013-04-27 19:27:15 +02:00
Lorenz Meier
5974c37abb
Moved the bulk of sensor drivers to the new world
2013-04-27 14:06:23 +02:00