@@ -47,8 +47,8 @@ extern Time64 time64;
4747DMA_RAM uint8_t auav_dma_txbuf[SPI_DMA_MAX_BUFFER_SIZE];
4848DMA_RAM uint8_t auav_dma_rxbuf[SPI_DMA_MAX_BUFFER_SIZE];
4949
50- DTCM_RAM uint8_t pitot_double_buffer [2 * sizeof (PressurePacket)];
51- DTCM_RAM uint8_t baro_double_buffer [2 * sizeof (PressurePacket)];
50+ DTCM_RAM uint8_t auav_pitot_double_buffer [2 * sizeof (PressurePacket)];
51+ DTCM_RAM uint8_t auav_baro_double_buffer [2 * sizeof (PressurePacket)];
5252
5353#define ROLLOVER 10000
5454
@@ -99,7 +99,7 @@ uint32_t Auav::init(uint16_t sample_rate_hz, //
9999 {
100100 spi_[AUAV_PITOT].init (hspi, auav_dma_txbuf, auav_dma_rxbuf, pitot_cs_port, pitot_cs_pin);
101101
102- double_buffer_[AUAV_PITOT].init (pitot_double_buffer , sizeof (pitot_double_buffer ));
102+ double_buffer_[AUAV_PITOT].init (auav_pitot_double_buffer , sizeof (auav_pitot_double_buffer ));
103103
104104 char name[] = " Auav (pitot)" ;
105105 memset (name_local_[AUAV_PITOT], ' \0 ' , sizeof (name_local_[AUAV_PITOT]));
@@ -127,7 +127,7 @@ uint32_t Auav::init(uint16_t sample_rate_hz, //
127127 {
128128 spi_[AUAV_BARO].init (hspi, auav_dma_txbuf, auav_dma_rxbuf, baro_cs_port, baro_cs_pin);
129129
130- double_buffer_[AUAV_BARO].init (baro_double_buffer , sizeof (baro_double_buffer ));
130+ double_buffer_[AUAV_BARO].init (auav_baro_double_buffer , sizeof (auav_baro_double_buffer ));
131131
132132 char name[] = " Auav (baro) " ;
133133 memset (name_local_[AUAV_BARO], ' \0 ' , sizeof (name_local_[AUAV_BARO]));
0 commit comments