Commit Graph

34 Commits

Author SHA1 Message Date
Michael Schaeuble bdb76d013e Fix incorrect MPU9250 device ID
We propagate the bus parameters from the bus interface to the sensor
devices. Thus, the device ID of the sensor driver is set to the correct
bus id and address. Otherwise it would be zero, which is an issue if several MPU9250s
are running at the same time.
2016-12-09 18:59:42 +01:00
Carlo Wood 04aa2bb3a4 Add missing header files.
These headers files were missing from the header files that
I added them to; the fact that they were missing didn't
lead to compile errors because by coincidence the missing
headers are included in the source files before including
these headers. But, after the reordering of header inclusions
by Tools/fix_headers.sh, these cases will give rise to compiler
errors.
2016-11-13 19:36:27 +01:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Dennis Shtatnov e6b98b2ab8 Tweak configs for CF2
Fix build error

Capitalization mistake for headers

Non-Mac compiler issue

Baudrate for crazyflie nrf and fix code style

Save space

Cleanup mpu9250 driver
2016-09-04 19:12:08 +02:00
Dennis Shtatnov 5100785f51 MPU9250 I2C mode
Fixes for other boards

Functioning sensors
2016-09-04 19:12:08 +02:00
Tim Dyer b65ff53b00 Initial build for Crazyflie 2.0
Working crazyflie firmware build

* Console on USART3
* Could not disable building PX4IO firmware, currently commented out

Don't build PX4IO firmware if the board doesn't ask for it

Added crazyflie motor driver

Fixed wrong register

CLK_SEL is in PWR_MGMT_1

Initial I2C/SPI MPU9250 device

* Tested with I2C
* Need to add error checking
* Intermittent crash on stop call

Working ak8963 mag driver

Functional lps25h driver. Work in progress.

Works well enough to probe and allow sensors task to start.

Added serial port test module

HACK! Get sensors module working

Set crazyflie PWM range

Extend baudrate for Crazyflie's NRF radio

Added dummy tone alarm to allow for init

Added autostart script for Crazyflie
2016-09-04 19:12:08 +02:00
Lorenz Meier 31bba3a847 Report mag data 2016-09-04 19:10:57 +02:00
Julian Oes dd70b3752a mpu9250: set accel DLPF to 41 Hz (#5177)
Previously, the accel DLPF was not set, so it's not clear what the
settings are or should be.
2016-07-31 08:04:01 -07:00
Lorenz Meier 7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00
Daniel Agar 69c1ce1714 WIP logger serialization 2016-05-14 11:27:07 +02:00
Daniel Agar eb29b33620 use gcc attributes to align and pack 2016-05-14 11:27:07 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Lorenz Meier 5a65f41482 MPU9K: Use shorter perf names 2016-03-28 13:03:56 +02:00
Lorenz Meier 425c5dea2a Fixed 9250 mag readouts. From @Inspirati 2016-03-25 16:07:51 +01:00
Julian Oes e0c41632a6 drivers: some fixes for the calibration refactor 2016-03-24 13:08:30 +01:00
Julian Oes b9cc0b74e2 drivers: re-use calibration topic
E.g. instead of defining a gyro_scale struct in drv_gyro.h, use the
gyro_calibration message.
2016-03-24 13:08:30 +01:00
Lorenz Meier 55e5956f75 Fix mode for mag file 2016-03-08 09:29:17 +01:00
Lorenz Meier 7a6c2ed6f4 Fix mode changes 2016-03-08 09:29:17 +01:00
Robert Dickenson 481e28aae1 Minor format/whitespace changes courtesy of AStyle 2016-03-08 09:29:17 +01:00
Robert Dickenson abeb2b9c7e Hopefully the last of the trivial minor fixups before being able to PR 2016-03-08 09:29:17 +01:00
Robert Dickenson d65bd3f1bd Add magnetometer range and temperature to the 'test' output report 2016-03-08 09:29:17 +01:00
Robert Dickenson 95e51ed8c6 Cleanup mpu9250 driver in preparation for PR 2016-03-08 09:29:17 +01:00
Robert Dickenson 4ef9148517 Preparing MPU9250 driver for PR
Corrected magnetometer gain and alignment, added support for sensitivity adjustment values, cleaned up debugging messages and removed dead code.
2016-03-08 09:29:17 +01:00
Robert Dickenson 0a33ca6e57 Align the magnetometer axis with the accel/gyro 2016-03-08 09:29:17 +01:00
Robert Dickenson 5903891213 Significant work on mpu9250 driver to get magnetometer updates happening reliably. Improved 'mag' utility to aid driver development and testing. 2016-03-08 09:29:17 +01:00
Robert Dickenson 0050057392 Add internal AK8963 magnetometer support to the MPU9250 device driver 2016-03-08 09:29:17 +01:00
Lorenz Meier 260b77dd78 MPU9250: Make check return values more discriminative 2016-01-31 14:53:40 +01:00
Lorenz Meier f4f143927f MPU9K: Remove unused perf counter 2015-11-29 13:41:17 +01:00
David Sidrane e41c3cf876 Missing Close es and poll rate reset 2015-11-21 01:09:58 -10:00
David Sidrane 6bab225fed Added the integration like on mpu6000 2015-11-20 04:17:24 -10:00
Lorenz Meier 9a33e6e2aa Fixed MPU9250 formatting 2015-10-19 10:08:17 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Andrew Tridgell 39e0a487bb mpu9250: first cut at a MPU9250 driver 2015-08-17 09:16:47 +02:00