Class: Toybox.SensorLogging.SensorLogger
- Inherits:
-
Toybox.Lang.Object
Overview
Class for the SensorLogger object. This object gets passed to FIT session to start recording sensor data.
Instance Method Summary collapse
-
getStats() as SensorLogging.SensorLoggingStats or Null
Get statistics for the data gathered in the current session.
-
getStats2(sensor as Lang.Symbol or Null) as SensorLogging.SensorLoggingStats or { :accelerometer as SensorLogging.SensorLoggingStats, :gyroscope as SensorLogging.SensorLoggingStats, :magnetometer as SensorLogging.SensorLoggingStats }
Get statistics for the sensor data gathered in the current session.
-
initialize(options as { :accelerometer as { :enabled as Lang.Boolean }, :gyroscope as { :enabled as Lang.Boolean }, :magnetometer as { :enabled as Lang.Boolean } })
Constructor.
Instance Method Details
getStats() as SensorLogging.SensorLoggingStats or Null
Get statistics for the data gathered in the current session.
getStats2(sensor as Lang.Symbol or Null) as SensorLogging.SensorLoggingStats or { :accelerometer as SensorLogging.SensorLoggingStats, :gyroscope as SensorLogging.SensorLoggingStats, :magnetometer as SensorLogging.SensorLoggingStats }
Get statistics for the sensor data gathered in the current session.
initialize(options as { :accelerometer as { :enabled as Lang.Boolean }, :gyroscope as { :enabled as Lang.Boolean }, :magnetometer as { :enabled as Lang.Boolean } })
Constructor
Note:
A SensorLogger may be initialized with the same dictionary of options provided to registerSensorDataListener(), but only the options documented below will be used.