ArSensorManager constructor

ArSensorManager({
  1. AttitudeFilter? attitudeFilter,
  2. HeadingFilter? headingFilter,
  3. LocationFilter? locationFilter,
  4. bool smoothAttitude = true,
  5. bool smoothLocation = true,
})

Pass a null filter to use the raw sensor values.

Implementation

ArSensorManager({
  AttitudeFilter? attitudeFilter,
  HeadingFilter? headingFilter,
  LocationFilter? locationFilter,
  bool smoothAttitude = true,
  bool smoothLocation = true,
})  : _attitudeFilter =
          smoothAttitude ? (attitudeFilter ?? AttitudeFilter()) : null,
      _headingFilter =
          smoothAttitude ? (headingFilter ?? HeadingFilter()) : null,
      _locationFilter =
          smoothLocation ? (locationFilter ?? LocationFilter()) : null;