Commit Graph

48 Commits

Author SHA1 Message Date
Andrew Tridgell c396a67746 mpu6000: added logging of good transfers
this helps tracking down a startup issue
2014-10-30 08:47:03 +11:00
Lorenz Meier 8ced6bb49b Set filter frequency for hardware and software in parallel, always do so in the same order 2014-09-30 10:05:39 +02:00
Randy Mackay 3e1eec5906 mpu6k: set hardware filter during ACCELIOCLOWPASS
also set from GYROIOCLOWPASS

Conflicts:
	mavlink/include/mavlink/v1.0
2014-09-30 10:03:15 +02:00
Lorenz Meier c5e4f33bb3 Merge sensor_startup_cleanup 2014-07-16 15:26:22 +02:00
Lorenz Meier 164b4ef4ce MPU6K: Cleaner init 2014-07-16 08:58:18 +02:00
Lorenz Meier 5b38b5e371 MPU6K: Start handler startup and stack review and adjustments 2014-07-16 07:55:53 +02:00
Lorenz Meier 32ed1eae80 mpu6000: Support for up to three accels / gyros 2014-07-15 23:14:50 +02:00
Lorenz Meier e696ed5509 Merged master 2014-07-15 22:07:03 +02:00
Andrew Tridgell 8a3a87331d mpu6000: fixed internal/external mixup in pointers
Thanks to Emile for spotting this!

Conflicts:
	mavlink/include/mavlink/v1.0
2014-07-12 16:27:39 +02:00
Lorenz Meier 875be65242 MPU6000: Fix usage function call to fit existing structure. 2014-07-08 13:52:28 +02:00
Andrew Tridgell c681d6621d mpu6000: added -R rotation option 2014-07-08 11:46:47 +02:00
Andrew Tridgell 19dbbf17e8 mpu6000: allow for two mpu6000 instances, one internal, one external
split g_dev into g_dev_int and g_dev_ext
2014-07-08 11:44:58 +02:00
Andrew Tridgell 541dc1825c mpu6000: added -X option for external bus 2014-07-08 11:44:22 +02:00
Andrew Tridgell ef79d03276 mpu6000: allow disabling of on-sensor low pass filter
used for vibration testing
2014-07-08 11:40:54 +02:00
Lorenz Meier 73d4d6faec MPU6K: Use usleep where usleep should be used instead of up_udelay() 2014-06-22 16:49:52 +02:00
Lorenz Meier 506f900513 Introduce MPU6K multi-device uORB support 2014-06-10 15:06:05 +02:00
Lorenz Meier aa312f96f8 drivers: Fix compile warnings and non-standard performance counter names 2014-05-21 14:20:48 +02:00
Julian Oes 1be3ea4f4e MPU6000: gyro topic was not initialized 2014-02-16 12:18:22 +01:00
Lorenz Meier d199710651 Fixed up init sequence of all sensors - we can publish in interrupt context, but not advertise! All advertisements now contain valid data 2014-01-14 15:40:46 +01:00
Lorenz Meier 7af62bbe9e Support for publication blocking: MPU6000, cleaned up device start 2014-01-12 11:54:38 +01:00
Andrew Tridgell bccf65cc28 mpu6000: disable interrupts during initial reset
this seems to avoid a problem where the mpu6000 doesn't startup
correctly if other devices are transferring at the same time.
2013-12-16 15:06:45 +01:00
Lorenz Meier f4ac204f46 Cranking up bus speeds for all sensors to achievable 10.4 MHz, will cut the bus lock time to half 2013-12-15 18:32:46 +01:00
Andrew Tridgell 2b491a7954 mpu6000: treat all zero data from mpu6k as bad 2013-12-10 11:39:50 +01:00
Andrew Tridgell 39b40e41c2 mpu6000: close fds before exit 2013-12-10 11:39:20 +01:00
Andrew Tridgell b55403c551 mpu6000: use register_class_devname() 2013-12-10 11:38:30 +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
Andrew Tridgell af47a3d795 mpu6000: change bus speed based on registers being accessed
this ensures we follow the datasheet requirement of 1MHz for general
registers and up to 20MHz for sensor and int status registers
2013-11-30 20:17:55 +11: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 815ccee0e7 mpu6000: fixed race condition in buffer increment 2013-09-12 00:52:13 +02:00
Andrew Tridgell 37d09f0944 mpu6000: use a wrapper struct to avoid a linker error
the linker doesn't cope with us having multiple modules implementing
RingBuffer<gyro_report>

this also switches to use force() instead of put(), so we discard old
entries when the buffer overflows
2013-09-12 00:51:54 +02:00
Lorenz Meier fab110d21f Moved math library to library dir, improved sensor-level HIL, cleaned up geo / conversion libs 2013-08-21 18:13:01 +02:00
Julian Oes 4f51f333a9 Adapted the MPU6000 to have the same get range ioctls and defines for defaults 2013-08-21 14:52:20 +02:00
Lorenz Meier 2a58929ffd Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup 2013-08-20 16:26:15 +02:00
Julian Oes ae3a549d57 Fixed accel self test 2013-08-20 10:39:11 +02:00
Lorenz Meier dccdc977d5 Made accel / gyro self tests aware of offsets and scales, added support to config command to call these 2013-08-09 17:56:32 +02:00
Lorenz Meier 461b2eb366 Merge branch 'mpu6k_queue' of github.com:PX4/Firmware into fmuv2_bringup 2013-08-06 09:15:24 +02:00
Andrew Tridgell 338e506a28 mpu6000: set the default DLFP filter to 42Hz
this allows for apps to ask for slightly higher filters with the
software filter and not have it completely ruined by the on-chip DLPF
2013-08-06 09:07:12 +02:00
Lorenz Meier b5d19d08ea Equipped MPU6k driver with Butterworth for accel and gyro 2013-08-05 21:05:08 +02:00
Lorenz Meier e95861e9df Merge branch 'mpu6k_queue' of github.com:PX4/Firmware into fmuv2_bringup 2013-08-04 23:50:41 +02:00
Lorenz Meier f45e74265e Fixed driver test / direct read, looks good 2013-08-04 15:15:41 +02:00
px4dev 02f5b79948 Try to save our sanity a bit and use the generic ringbuffer class rather than re-implementing the wheel. 2013-08-03 19:03:24 -07:00
Lorenz Meier 9a97001cc8 Added queue to mpu6k driver 2013-08-04 01:50:58 +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 95dde5f1be Implemented config command, fixed a number range set / get issues for some sensor drivers, fixed gyro calibration 2013-07-26 18:24:37 +02: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
sergeil 496127ca45 mpu6000 driver support for setting rate 2013-05-31 11:44:20 +02:00
Lorenz Meier 5974c37abb Moved the bulk of sensor drivers to the new world 2013-04-27 14:06:23 +02:00