wpilib.simulation functions

wpilib.simulation.getProgramStarted()bool
wpilib.simulation.isTimingPaused()bool

Check if the simulator time is paused.

Returns

true if paused

wpilib.simulation.pauseTiming()None

Pause the simulator time.

wpilib.simulation.restartTiming()None

Restart the simulator time.

wpilib.simulation.resumeTiming()None

Resume the simulator time.

wpilib.simulation.setProgramStarted()None
wpilib.simulation.setRuntimeType(type: hal._wpiHal.RuntimeType)None

Override the HAL runtime type (simulated/real).

Parameters

type – runtime type

wpilib.simulation.stepTiming(delta: seconds)None

Advance the simulator time and wait for all notifiers to run.

Parameters

deltaSeconds – the amount to advance (in seconds)

wpilib.simulation.stepTimingAsync(delta: seconds)None

Advance the simulator time and return immediately.

Parameters

deltaSeconds – the amount to advance (in seconds)

wpilib.simulation.waitForProgramStart()None