produceAttitude static method
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,
);
}