Every Arduino library example program includes the last 3 lines: #if !defined(EI_CLASSIFIER_SENSOR) || EI_CLASSIFIER_SENSOR != EI_CLASSIFIER_SENSOR_ACCELEROMETER #error “Invalid model for current sensor” #endif
I am wondering how this works because I cannot compile any of the examples, due to this error message.
If you cannot compile this means that the model you’ve exported does not match the sensor (in the example applcation).
See EI_CLASSIFIER_SENSOR in model-parameters/model_metadata.h. In your case it should read EI_CLASSIFIER_SENSOR_ACCELEROMETER.
Hello, i was trying to use EI to run my first accelerator test with my RAK4631. Following your precious suggestion i was able to compile the code. there was only necessity to change this part: in front of ( EI_CLASSIFIER_SENSOR ) you will find ( EI_CLASSIFIER_SENSOR_FUSION ), the coordinates line was different (#define EI_CLASSIFIER_FUSION_AXES_STRING “‘X’ + ‘Y’ + ‘Z’”) and the samples per frame was already 3, but on runtime i get an error: Failed to initialize IMU! Could you please suggest me what could be wrong now?