Class AccelerometerDatum
Acceleration in x, y, and z directions according to the following coordinate system:

- Lying flat on its back, the phone will register an acceleration vector of approximately <0,0,-1>.
- Lying flat on its face, the phone will register an acceleration vector of approximately <0,0,1>.
- Lying upright on its left edge, the phone will register an acceleration vector of approximately <-1,0,0>.
- Lying upright on its right edge, the phone will register an acceleration vector of approximately <1,0,0>.
- Lying upright on its bottom edge, the phone will register an acceleration vector of approximately <0,-1,0>.
- Lying upright on its top edge, the phone will register an acceleration vector of approximately <0,1,0>.
Inherited Members
Namespace: Sensus.Probes.Movement
Assembly: SensusAndroid.dll
Syntax
public class AccelerometerDatum : Datum, IAccelerometerDatum, IDatum
Constructors
AccelerometerDatum(DateTimeOffset, Double, Double, Double)
Declaration
public AccelerometerDatum(DateTimeOffset timestamp, double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTimeOffset | timestamp | |
| System.Double | x | |
| System.Double | y | |
| System.Double | z |
Properties
DisplayDetail
Declaration
public override string DisplayDetail { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
StringPlaceholderValue
Gets the string placeholder value, which is the acceleration vector in [x,y,z] format.
Declaration
public override object StringPlaceholderValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Object | The string placeholder value. |
Overrides
X
Acceleration along the X axis.
Declaration
[DoubleProbeTriggerProperty("X Acceleration")]
[Anonymizable]
public double X { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Y
Acceleration along the Y axis.
Declaration
[DoubleProbeTriggerProperty("Y Acceleration")]
[Anonymizable]
public double Y { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Z
Acceleration along the Z axis.
Declaration
[DoubleProbeTriggerProperty("Z Acceleration")]
[Anonymizable]
public double Z { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |