Connect IQ > APIメモ > Toybox > Sensor > Info


Contents

Class: Toybox::Sensor::Info


The Sensor.Info class contains all information necessary for the Sensor. It can be passed on the update or it can be retrieved on demand. The fields in this class may return null so you should null check a value before using it.

  • Since : 1.0.0

Instance Attribute Details

(Array) accel

Accelerometer reading for X, Y, and Z as an Array of Number values (milli-g-units).
  • Returns : (Array)
  • Since : 1.2.0

(Float) altitude : 標高[m]

Position.Infoの altitude も参照
  • Returns : (Float)
  • Since : 1.0.0

(Number) cadence

Cadence (rpm) Cadence is derived (in order of priority) from bike sensors (cadence or speed must be enabled), advanced running dynamics sensors (e.g. heart strap with running dynamics enabled), footpod, or watch-based cadence calculations.
  • Returns : (Number)
  • Since : 1.0.0

(Float) heading : True north referenced heading (radians).

This metric provides compass orientation if it is supported by the device.
  • Returns : (Float)
  • Since : 1.0.0

(Number) heartRate : 心拍数[bpm]

  • Returns : (Number)
  • Since : 1.0.0

(Array) mag

Magnetometer reading for X, Y, and Z as an Array of Number values (mGauss)
  • Returns : (Array)
  • Since : 1.2.0

(Number) power : パワー[W]

  • Returns : (Number)
  • Since : 1.0.0

(Float) pressure : 気圧[Pa]

Returns base level (sea-level) pressure. This requires that a GPS altitude has been obtained, in order to take the local (ambient) pressure and convert the barometric pressure to base level pressure.
  • Returns : (Float)
  • Since : 1.0.0

(Float) speed : スピード[m/s]

Position.Info の speed も参照
  • Returns : (Float)
  • Since : 1.0.0

(Float) temperature : 温度[C]

  • Returns : (Float)
  • Since : 1.0.0
最終更新:2016年03月06日 23:22