Arduino deployment does not use Gryroscope when instructed

Hello, I am creating a model for gesture detection. I have created my impulse to include accelerometer and gyroscope data, however the deployment does not compile on Arduino. It fails saying “Invalid model for current sensor”, and I can see that EI_CLASSIFIER_SENSOR_ACCELEROMETER = 2 when it is comparing to EI_CLASSIFIER_SENSOR = 6. Upon further inspection of the code, I can see that we are never reading the gyroscope and only reading from the accelerometer.

Project ID:

Hi @Davidcoo,

Can you post the entire error message so we can help you troubleshoot the issue?

I just tried compiling an accelerometer and gyroscope example with Arduino IDE and it worked for me. Note that you should use the “fusion” example to get the accelerometer, gyroscope, and magnetometer readings.