SimulationOptions

constructor(inLoop: Boolean = false, timeInterval: Duration = 200.milliseconds, restartDelay: Duration = 5.seconds, altitude: Double? = null, deviationRange: ClosedRange<Double>? = null, simulateAttitude: Boolean = false, horizontalAccuracy: Double? = null)

Parameters

inLoop

Indicates whether the simulation restarts from the beginning once it reaches the end.

timeInterval

Time interval between two consecutive coordinate updates.

restartDelay

Delay before the simulation restarts when inLoop is enabled.

altitude

Altitude applied to each simulated coordinate, or null to leave it unset.

deviationRange

Range used to randomly deviate the simulated heading, or null to disable deviation.

simulateAttitude

Indicates whether attitude updates are simulated alongside coordinate updates.

horizontalAccuracy

Horizontal accuracy applied to each simulated coordinate, or null to leave it unset.