A utility class to control a simulated RoboRIO.
Definition RoboRioSim.h:22
static std::string GetComments()
Get the comments.
static units::ampere_t GetUserCurrent3V3()
Measure the 3.3V rail current.
static void SetSerialNumber(std::string_view serialNumber)
Set the serial number.
static void SetUserActive3V3(bool userActive3V3)
Set the 3.3V rail active state.
static std::unique_ptr< CallbackStore > RegisterTeamNumberCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the team number changes.
static units::volt_t GetUserVoltage3V3()
Measure the 3.3V rail voltage.
static void ResetData()
Reset all simulation data.
static std::unique_ptr< CallbackStore > RegisterUserFaults3V3Callback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the 3.3V rail number of faults changes.
static std::unique_ptr< CallbackStore > RegisterBrownoutVoltageCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the brownout voltage changes.
static void SetUserFaults3V3(int userFaults3V3)
Set the 3.3V rail number of faults.
static void SetTeamNumber(int32_t teamNumber)
Set the team number.
static bool GetUserActive3V3()
Get the 3.3V rail active state.
static units::volt_t GetVInVoltage()
Measure the Vin voltage.
static void SetUserVoltage3V3(units::volt_t userVoltage3V3)
Define the 3.3V rail voltage.
static units::volt_t GetBrownoutVoltage()
Measure the brownout voltage.
static std::string GetSerialNumber()
Get the serial number.
static int GetUserFaults3V3()
Get the 3.3V rail number of faults.
static units::celsius_t GetCPUTemp()
Get the cpu temp.
static std::unique_ptr< CallbackStore > RegisterCPUTempCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the cpu temp changes.
static std::unique_ptr< CallbackStore > RegisterUserVoltage3V3Callback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the 3.3V rail voltage changes.
static void SetCPUTemp(units::celsius_t cpuTemp)
Define the cpu temp.
static std::unique_ptr< CallbackStore > RegisterUserActive3V3Callback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the 3.3V rail active state changes.
static void SetVInVoltage(units::volt_t vInVoltage)
Define the Vin voltage.
static void SetBrownoutVoltage(units::volt_t brownoutVoltage)
Define the brownout voltage.
static std::unique_ptr< CallbackStore > RegisterVInVoltageCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the Vin voltage changes.
static void SetComments(std::string_view comments)
Set the comments.
static int32_t GetTeamNumber()
Get the team number.
static void SetUserCurrent3V3(units::ampere_t userCurrent3V3)
Define the 3.3V rail current.
static std::unique_ptr< CallbackStore > RegisterUserCurrent3V3Callback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the 3.3V rail current changes.
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.h:14