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