WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
SimHooks.hpp File Reference
#include <stdint.h>
#include "wpi/hal/DriverStationTypes.hpp"
#include "wpi/hal/HALBase.h"
#include "wpi/units/time.hpp"

Go to the source code of this file.

Namespaces

namespace  wpi
namespace  wpi::sim

Functions

void wpi::sim::SetRuntimeType (HAL_RuntimeType type)
 Override the HAL runtime type (simulated/real).
void wpi::sim::WaitForProgramStart ()
 Waits until the user program has started.
void wpi::sim::SetProgramStarted (bool started)
 Sets flag that indicates if the user program has started.
bool wpi::sim::GetProgramStarted ()
 Returns true if the user program has started.
void wpi::sim::SetProgramState (wpi::hal::ControlWord controlWord)
 Sets the user program state (control word).
wpi::hal::ControlWord wpi::sim::GetProgramState ()
 Gets the user program state (control word).
void wpi::sim::RestartTiming ()
 Restart the simulator time.
void wpi::sim::PauseTiming ()
 Pause the simulator time.
void wpi::sim::ResumeTiming ()
 Resume the simulator time.
bool wpi::sim::IsTimingPaused ()
 Check if the simulator time is paused.
void wpi::sim::StepTiming (wpi::units::second_t delta)
 Advance the simulator time and wait for all notifiers to run.
void wpi::sim::StepTimingAsync (wpi::units::second_t delta)
 Advance the simulator time and return immediately.