I have an ICM20648 on a wrist-band, and I'm trying to get step-counter data. So far, I've been able to get some numbers from the DMP, but they do not reflect actual steps, but seem to increment sporadically.
As reference, I'm looking at the sample code from ExampleDeviceIcm20648EMD.c. A few questions:
- do I need to set the sensor period for the step counter sensor?
- do I need to do any initialization besides what is done in the sample code (see below)?
- is the orientation matrix important for step counting?
- is the body location (in my case, the wrist) important for step counting? If so, can I configure it?
Thanks,
Boaz
My initialization code:
rc += inv_device_icm20648_init2(&device_icm20648, &serif_instance, &sensor_listener, dmp3_image, sizeof(dmp3_image));
rc += inv_device_icm20648_get_base(&device_icm20648);
rc += inv_device_setup(device);
rc += inv_device_start_sensor(device, INV_SENSOR_TYPE_STEP_COUNTER);