problems with low sampling frequency on iOS
I am trying to set a low sampling rate of <10Hz on the BMI160 on the RG MetaWear with the latest firmware. I'm doing this as specified in the documentation using
accelerometer.sampleFrequency = sampleFrequency;
gyro.sampleFrequency = sampleFrequency;
but I'm finding that the number of samples I'm receiving from both streaming and from logging to be inconsistent with the set sampling frequency for frequencies <20Hz. The sampling rate I'm getting is higher than expected for frequencies <20Hz and when I set it to <10Hz, I get that the gyrometer returns twice the samples as does the accelerometer. At >30Hz, everything seems to work fine.
Are arbitrary values permitted for these settings? I suppose a quick workaround would be to downsample a higher frequency that seems to be working, but this wouldn't be useful for logging long times where memory would become a limitation.
This discussion has been closed.
Comments