When I flash the binary(compiled from Edge Impulse) I get the following error when I try to run it on the board:
Failed to find sensor 'accX + accY + accZ + gryX + gryY + gryZ + magX + magY + magZ' in the sensor list
I also tried to use the Arduino library generated by Edge Impulse and chose the example nano_ble33_sense_accelerometer_continuous but I also get a similar error during compilation.
nano_ble33_sense_accelerometer_continuous:194:2: error: #error "Invalid model for current sensor"
#error "Invalid model for current sensor"
^~~~~
exit status 1
#error "Invalid model for current sensor"
In the /src/model-parameters/model_metadata.h header file I have noticed this:
I guess the problem comes from the defined sensor type, which in the case is not EI_CLASSIFIER_SENSOR_ACCELEROMETER.
My questions are: Isn’t this supposed to work out of the box and if not, can somebody guide me on how to change the accelerometer example in order to get it working?
I think I need to format the sensor data as a string with the structure shown in EI_CLASSIFIER_FUSION_AXES_STRING but I am not sure.
Thank you very much for pointing this out… I didn’t notice the typo at all… The interesting part is that the axes names were automatically generated by edge impulse.
I used the edge-impulse-daemon on MacOS and I captured the data using the Arduino Nano BLE Sense. Check the attached screenshot. The axes are named wrong on data capture.
Thanks for the response. Yea, we’ve fixed it upstream but haven’t (yet) pushed the fix to this repo. Thanks for pointing that out. I’ll provide a hot-fix.