-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch remaining boards to new InvenSense IMU drivers #14473
Conversation
2c33be1
to
ef59d62
Compare
7a89489
to
54ccf9b
Compare
a03e332
to
827ef02
Compare
Tested on PixRacer V4Flight Card 1 Modes Tested: Procedure: Notes: Logs: https://review.px4.io/plot_app?log=51962f3f-cd86-4bc1-ae74-2515d7ceb3f9 Flight Card 2 Modes Tested Procedure Armed form QGC. Logs: https://review.px4.io/plot_app?log=d5586104-f4d6-477f-8b57-f455ba7a6604 Flight Card 3 Modes Tested Procedure Logs: https://review.px4.io/plot_app?log=c94cd0bd-f694-4789-ba9c-b8d302bfc045 Tested on CUAV nano V5Flight Card 1 Modes Tested: Procedure: Notes: Logs: https://review.px4.io/plot_app?log=b37b1c05-d890-4b94-ac49-2acb707c0be1 Flight Card 2 Modes Tested Procedure Armed form QGC. Logs: https://review.px4.io/plot_app?log=71d64803-adba-4b86-a67f-c52e11aa96a0 Flight Card 3 Modes Tested Procedure Logs: https://review.px4.io/plot_app?log=b178c9d9-b05d-4cfe-bd93-38762f5710fb |
Tested on Pixhawk4 v5 f-450 Modes Tested: Procedure: Notes: Logs: Flight Card 2 Modes Tested Procedure Armed form QGC. Logs: Flight Card 3 Modes Tested Procedure Logs: |
Tested on Pixhawk4 mini v5 f-500 Modes Tested: Procedure: Notes: Logs: Flight Card 2 Modes Tested Procedure Armed form QGC. Logs: Flight Card 3 Modes Tested Procedure Logs: |
boards/airmind/mindpx-v2/src/spi.cpp
Outdated
@@ -46,8 +46,8 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = { | |||
initSPIDevice(DRV_GYR_DEVTYPE_L3GD20, SPI::CS{GPIO::PortB, GPIO::Pin2}, SPI::DRDY{GPIO::PortE, GPIO::Pin14}), | |||
initSPIDevice(DRV_ACC_DEVTYPE_LSM303D, SPI::CS{GPIO::PortD, GPIO::Pin11}), | |||
initSPIDevice(DRV_BARO_DEVTYPE_MS5611, SPI::CS{GPIO::PortC, GPIO::Pin15}), | |||
initSPIDevice(DRV_IMU_DEVTYPE_MPU6000, SPI::CS{GPIO::PortE, GPIO::Pin3}, SPI::DRDY{GPIO::PortC, GPIO::Pin0}), | |||
initSPIDevice(DRV_IMU_DEVTYPE_MPU6500, SPI::CS{GPIO::PortE, GPIO::Pin3}, SPI::DRDY{GPIO::PortC, GPIO::Pin0}), | |||
initSPIDevice(DRV_IMU_DEVTYPE_MPU6000, SPI::CS{GPIO::PortE, GPIO::Pin3}, SPI::DRDY{GPIO::PortE, GPIO::Pin10}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rolandash could you review this part? I tested it on the small mindpx quad I have (with an mpu6500) and it was working (including the data ready interrupt).
e920c69
to
2310938
Compare
3619211
to
09b9066
Compare
Tested with IFO-S, works ok. Board rotation is right as you commited. |
3b26711
to
d021754
Compare
d021754
to
6abc3e1
Compare
A lot of this has already received testing in one form or another. This PR finally makes the switch to the new InvenSense drivers (almost) everywhere.
TODO: board rotations + testing