finani / ICM42688

Arduino library for communicating with the InvenSense ICM42688 nine-axis IMUs.
MIT License
47 stars 21 forks source link

compiling error in the FIFO_SPI example file #1

Open paul-dls opened 2 years ago

paul-dls commented 2 years ago

Hello, First, thank you for developing this library which is very well documented Nevertheless I encountered an error while compiling the FIFO_SPI.ino file, it seems it has not been tested yet since there is the following line at the beginning of the code : // TODO: Need to test this with the ICM42688

I don't have the same issue with the basic_SPI example

Here is the error message:

FIFO_SPI: In function 'void setup()':
FIFO_SPI:27: error: 'class ICM42688_FIFO' has no member named 'setDlpfBandwidth'
   IMU.setDlpfBandwidth(ICM42688::DLPF_BANDWIDTH_21HZ);
       ^

FIFO_SPI:27: error: 'DLPF_BANDWIDTH_21HZ' is not a member of 'ICM42688'
   IMU.setDlpfBandwidth(ICM42688::DLPF_BANDWIDTH_21HZ);
                        ^

FIFO_SPI:29: error: 'class ICM42688_FIFO' has no member named 'setSrd'
   IMU.setSrd(19);
       ^

'class ICM42688_FIFO' has no member named 'setDlpfBandwidth'

Thank you very much

Enola-liu commented 9 months ago

Hello, First, thank you for developing this library which is very well documented Nevertheless I encountered an error while compiling the FIFO_SPI.ino file, it seems it has not been tested yet since there is the following line at the beginning of the code : // TODO: Need to test this with the ICM42688

I don't have the same issue with the basic_SPI example

Here is the error message:

FIFO_SPI: In function 'void setup()':
FIFO_SPI:27: error: 'class ICM42688_FIFO' has no member named 'setDlpfBandwidth'
   IMU.setDlpfBandwidth(ICM42688::DLPF_BANDWIDTH_21HZ);
       ^

FIFO_SPI:27: error: 'DLPF_BANDWIDTH_21HZ' is not a member of 'ICM42688'
   IMU.setDlpfBandwidth(ICM42688::DLPF_BANDWIDTH_21HZ);
                        ^

FIFO_SPI:29: error: 'class ICM42688_FIFO' has no member named 'setSrd'
   IMU.setSrd(19);
       ^

'class ICM42688_FIFO' has no member named 'setDlpfBandwidth'

Thank you very much

this question had been come up.That is because it not be added.