Loading...
Searching...
No Matches
SensorMeasurement Class Reference

Structure representing a sensor measurement with type, values, and timestamp. More...

Public Member Functions

 SensorMeasurement (this.type, this.values, this.time)
 Default constructor.
 

Public Attributes

SensorType type
 Type of the sensor.
 
Vector3d values
 3D vector containing sensor measurement values
 
int time
 Timestamp of the measurement in milliseconds.
 

Detailed Description

Structure representing a sensor measurement with type, values, and timestamp.

Referenced from MeasurementListener.

Definition at line 20 of file sensor_measurement.dart.

Constructor & Destructor Documentation

◆ SensorMeasurement()

SensorMeasurement.SensorMeasurement ( this. type,
this. values,
this. time )

Default constructor.

Member Data Documentation

◆ time

int SensorMeasurement.time

Timestamp of the measurement in milliseconds.

Dart code snippet:

// Get measurement timestamp
int time = measurement.time;
print("Measurement time: $time ms");

Definition at line 52 of file sensor_measurement.dart.

◆ type

SensorType SensorMeasurement.type

Type of the sensor.

Dart code snippet:

// Get sensor type
SensorType type = measurement.type;
print("Sensor type: $type");

Definition at line 32 of file sensor_measurement.dart.

◆ values

Vector3d SensorMeasurement.values

3D vector containing sensor measurement values

Dart code snippet:

// Get sensor values
Vector3d values = measurement.values;
print("Sensor values - X: ${values.x}, Y: ${values.y}, Z: ${values.z}");

Definition at line 42 of file sensor_measurement.dart.


The documentation for this class was generated from the following file: