produceAttitude static method

Attitude produceAttitude({
  1. DateTime? acquisitionTime,
  2. double roll = 0.0,
  3. double pitch = 0.0,
  4. double yaw = 0.0,
  5. double rollNoise = 0.0,
  6. double pitchNoise = 0.0,
  7. double yawNoise = 0.0,
  8. bool hasRollNoise = false,
  9. bool hasPitchNoise = false,
  10. bool hasYawNoise = false,
})

Produces a new Attitude from provided parameters

Implementation

static Attitude produceAttitude({
  final DateTime? acquisitionTime,
  final double roll = 0.0,
  final double pitch = 0.0,
  final double yaw = 0.0,
  final double rollNoise = 0.0,
  final double pitchNoise = 0.0,
  final double yawNoise = 0.0,
  final bool hasRollNoise = false,
  final bool hasPitchNoise = false,
  final bool hasYawNoise = false,
}) {
  return AttitudeImpl(
    type: DataType.attitude,
    acquisitionTime: acquisitionTime ?? DateTime.now(),
    roll: roll,
    pitch: pitch,
    yaw: yaw,
    rollNoise: rollNoise,
    pitchNoise: pitchNoise,
    yawNoise: yawNoise,
    hasRollNoise: hasRollNoise,
    hasPitchNoise: hasPitchNoise,
    hasYawNoise: hasYawNoise,
  );
}