Skip to content

Class SensorMeasurement

Il Kadyrov edited this page Nov 9, 2020 · 2 revisions

SensorMeasurement class is used for notifying users about new scanned sensors through [[MeasurementListener|Class-MeasurementListener].

Referenced from: MeasurementManager, MeasurementListener.

Public methods

Function getType

public SignalType getType()

Function returns the type of sensor.

Return value

Type of the sensor, which equal to one of the next enum elements:

  • ACCELEROMETER
  • MAGNETOMETER
  • GYROSCOPE
  • BAROMETER
  • LOCATION
  • ORIENTATION

Function getValues

public Vector3d getValues()

Function returns the values of sensor as vector with 3 params.

Clone this wiki locally