MobilityConfig constructor

MobilityConfig({
  1. required SensorLocation sensorLocation,
  2. bool useAccelerometer = true,
  3. bool useGyroscope = false,
  4. bool useMagnetometer = false,
  5. double accelerometerSamplingRate = 100.0,
  6. double gyroscopeSamplingRate = 100.0,
  7. double magnetometerSamplingRate = 100.0,
  8. List<SensorAxis> accelerometerAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
  9. List<SensorAxis> gyroscopeAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
  10. List<SensorAxis> magnetometerAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
})

Implementation

MobilityConfig({
  required this.sensorLocation,
  this.useAccelerometer = true,
  this.useGyroscope = false,
  this.useMagnetometer = false,
  this.accelerometerSamplingRate = 100.0,
  this.gyroscopeSamplingRate = 100.0,
  this.magnetometerSamplingRate = 100.0,
  this.accelerometerAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
  this.gyroscopeAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
  this.magnetometerAxes = const [SensorAxis.x, SensorAxis.y, SensorAxis.z],
});