MagneticField
Magnetic field of the device in 3D space, measured in microteslas μT for each three-dimensional axis. Typically captured by a magnetometer sensor.
Data type CarpDataTypes.MAGNETIC_FIELD.
- Inheritance
-
- Object
- Serializable
- Data
- SensorData
- MagneticField
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
MagneticField.fromJson
MagneticField
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
x
getter/setter pair
y
getter/setter pair
z
getter/setter pair
Methods
toJson
Return a JSON encoding of this object.