50 int channel,
NotifyCallback callback,
bool initialNotify)
override;
Class for operating a compressor connected to a pneumatics module.
Definition Compressor.hpp:34
Base class for pneumatics devices.
Definition PneumaticsBase.hpp:25
PneumaticsBaseSim(const int index)
Constructs a PneumaticsBaseSim with the given index.
int GetCompressorConfigType() const
Check whether the closed loop compressor control is active.
void SetCompressorOn(bool compressorOn) override
Set whether the compressor is active.
~REVPHSim() override=default
std::unique_ptr< CallbackStore > RegisterPressureSwitchCallback(NotifyCallback callback, bool initialNotify) override
Register a callback to be run whenever the pressure switch value changes.
bool GetInitialized() const override
Check whether the PCM/PH has been initialized.
void SetPressureSwitch(bool pressureSwitch) override
Set the value of the pressure switch.
void SetAllSolenoidOutputs(uint8_t outputs) override
Change all of the solenoid outputs.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify) override
Register a callback to be run when the PCM/PH is initialized.
void SetCompressorCurrent(double compressorCurrent) override
Set the compressor current.
std::unique_ptr< CallbackStore > RegisterSolenoidOutputCallback(int channel, NotifyCallback callback, bool initialNotify) override
Register a callback to be run when the solenoid output on a channel changes.
void SetSolenoidOutput(int channel, bool solenoidOutput) override
Change the solenoid output on a specific channel.
std::unique_ptr< CallbackStore > RegisterCompressorCurrentCallback(NotifyCallback callback, bool initialNotify) override
Register a callback to be run whenever the compressor current changes.
REVPHSim(int module)
Constructs from a PCM module number (CAN ID).
bool GetPressureSwitch() const override
Check the value of the pressure switch.
void SetCompressorConfigType(int compressorConfigType)
Turn on/off the closed loop control of the compressor.
bool GetCompressorOn() const override
Check if the compressor is on.
double GetCompressorCurrent() const override
Read the compressor current.
bool GetSolenoidOutput(int channel) const override
Check the solenoid output on a specific channel.
REVPHSim()
Constructs with the default PCM module number (CAN ID).
uint8_t GetAllSolenoidOutputs() const override
Get the current value of all solenoid outputs.
REVPHSim(const PneumaticsBase &pneumatics)
void ResetData() override
Reset all simulation data for this object.
void SetInitialized(bool solenoidInitialized) override
Define whether the PCM/PH has been initialized.
std::unique_ptr< CallbackStore > RegisterCompressorConfigTypeCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the closed loop state changes.
std::unique_ptr< CallbackStore > RegisterCompressorOnCallback(NotifyCallback callback, bool initialNotify) override
Register a callback to be run when the compressor activates.
Definition CTREPCMSim.hpp:13
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.hpp:16
Definition CvSource.hpp:15