-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICM20602 and ICM20608-G: new standalone driver (8 kHz gyro, 4 kHz accel)
- uses the FIFO and SPI DMA - currently implemented on px4_fmu-v4 only - clip counters - new low pass filter that operates on an array of data (LowPassFilter2pArray) - new sensor messages for better visibility - sensor_{accel, gyro}_fifo: full raw data for optional logging and analysis - sensor_{accel, gyro}_status: metadata, clipping, etc - sensor_{accel, gyro}_integrated: delta angles and delta velocities - eventually these will replace the existing sensor_{accel, gyro} monolith
- Loading branch information
Showing
26 changed files
with
1,895 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
/* DMA Channel/Stream Selections | ||
* | ||
* DMAMAP_USART3_RX = DMA1, Stream 1, Channel 4 | ||
* DMAMAP_UART4_RX = DMA1, Stream 2, Channel 4 | ||
* DMAMAP_UART7_RX = DMA1, Stream 3, Channel 5 | ||
* DMAMAP_USART2_RX = DMA1, Stream 5, Channel 4 | ||
* DMAMAP_TIM4_UP = DMA1, Stream 6, Channel 2 | ||
* | ||
* DMAMAP_SPI1_RX_1 = DMA2, Stream 0, Channel 3 | ||
* DMAMAP_USART6_RX_1 = DMA2, Stream 1, Channel 4 | ||
* DMAMAP_USART1_RX_1 = DMA2, Stream 2, Channel 4 | ||
* DMAMAP_SPI1_TX_1 = DMA2, Stream 3, Channel 3 | ||
* DMAMAP_TIM1_UP = DMA2, Stream 5, Channel 6 | ||
* DMAMAP_SDIO_2 = DMA2, Stream 6, Channel 4 | ||
*/ | ||
|
||
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_RX_1 | ||
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_1 | ||
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_1 | ||
#define DMAMAP_SDIO DMAMAP_SDIO_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
/* DMA Channel/Stream Selections | ||
* | ||
* DMAMAP_USART3_RX = DMA1, Stream 1, Channel 4 | ||
* DMAMAP_UART4_RX = DMA1, Stream 2, Channel 4 | ||
* DMAMAP_UART7_RX = DMA1, Stream 3, Channel 5 | ||
* DMAMAP_USART2_RX = DMA1, Stream 5, Channel 4 | ||
* DMAMAP_UART8_RX = DMA1, Stream 6, Channel 5 | ||
* | ||
* DMAMAP_SPI1_RX_1 = DMA2, Stream 0, Channel 3 | ||
* DMAMAP_USART6_RX_2 = DMA2, Stream 2, Channel 5 | ||
* DMAMAP_SPI1_TX_1 = DMA2, Stream 3, Channel 3 | ||
* DMAMAP_USART1_RX_2 = DMA2, Stream 5, Channel 4 | ||
* DMAMAP_SDIO_2 = DMA2, Stream 6, Channel 4 | ||
* DMAMAP_USART6_TX_2 = DMA2, Stream 7, Channel 5 | ||
*/ | ||
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_RX_2 | ||
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_1 | ||
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_2 | ||
#define DMAMAP_SDIO DMAMAP_SDIO_2 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_TX_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.