Acknowledged
over 1 year ago

BUG REPORT: Invalid accelerometer data with SensorLogger

Hi all. I have several problems while logging to a FIT file inertial data on my Felix 6 Pro (Firmware 26.00) by using the SensorLogging class. The issues are the following:

  • The timestamp field of the Accelerometer Data table is completely bugged: it does not represent valid timestamps, making it impossible to accurately reconstruct the signal on a time axis.
  • The application seems to consistently generate more rows (samples) for the Accelerometer Data table than for the Gyroscope Data table.
  • By checking the timestamps in the Gyroscope Data, data seems to be gathered at a non-constant rate of around 24,3Hz, not at 25Hz.


The relevant code is as follows:

_optionsLogger = {
    :accelerometer => {
        :enabled => true,       // Enable the accelerometer
    },
    :gyroscope => {
        :enabled => true,       // Enable the accelerometer
    }
};


_logger = new SensorLogging.SensorLogger(_optionsLogger);

_session = ActivityRecording.createSession({    // set up recording session
    :name=>"My app name",                       // set session name
    :sport=>Activity.SPORT_GENERIC,             // set sport type
    :sensorLogger=>_logger
});