Hello ConnectIQ community,
I need to log the raw accelerometer values for developing offline an algorithm. I was thinking that using the FitContributor fields approach with array was good but... it does not work
// The field creation, 8 samples expected _zImuField = session.createField("IMU z raw", 99, FitContributor.DATA_TYPE_SINT32, {:count => 8, :units=>"mg"}); // The setData in another function _zImuField.setData(sensorData.accelerometer.slice(0, 8));
But in the Fit file with the simulator, it only contains a single value, the 1st one of the sensorData.
But in the Fit file with the device, it crashes with "Cannot convert object to Long" on the setData call.
Can anyone explain me why ? it seems to be an issue reading the doc but...
Setup:
device Garmin Fenix6
fw version: 23.1
SDK: 4.1.7
Thanks for your help / ideas