45 [[nodiscard]]
virtual std::unique_ptr<CallbackStore>
71 [[nodiscard]]
virtual std::unique_ptr<CallbackStore>
101 [[nodiscard]]
virtual std::unique_ptr<CallbackStore>
103 bool initialNotify) = 0;
129 [[nodiscard]]
virtual std::unique_ptr<CallbackStore>
131 bool initialNotify) = 0;
156 [[nodiscard]]
virtual std::unique_ptr<CallbackStore>
158 bool initialNotify) = 0;
Definition: PneumaticsBase.h:21
Definition: PneumaticsBaseSim.h:15
virtual ~PneumaticsBaseSim()=default
virtual double GetCompressorCurrent() const =0
Read the compressor current.
virtual bool GetCompressorOn() const =0
Check if the compressor is on.
virtual std::unique_ptr< CallbackStore > RegisterSolenoidOutputCallback(int channel, NotifyCallback callback, bool initialNotify)=0
Register a callback to be run when the solenoid output on a channel changes.
virtual void SetSolenoidOutput(int channel, bool solenoidOutput)=0
Change the solenoid output on a specific channel.
virtual void SetAllSolenoidOutputs(uint8_t outputs)=0
Change all of the solenoid outputs.
virtual void SetPressureSwitch(bool pressureSwitch)=0
Set the value of the pressure switch.
PneumaticsBaseSim(const PneumaticsBase &module)
virtual void SetInitialized(bool initialized)=0
Define whether the PCM/PH has been initialized.
virtual std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)=0
Register a callback to be run when the PCM/PH is initialized.
virtual void ResetData()=0
Reset all simulation data for this object.
virtual void SetCompressorCurrent(double compressorCurrent)=0
Set the compressor current.
PneumaticsBaseSim(const int index)
virtual bool GetPressureSwitch() const =0
Check the value of the pressure switch.
virtual uint8_t GetAllSolenoidOutputs() const =0
Get the current value of all solenoid outputs.
virtual bool GetSolenoidOutput(int channel) const =0
Check the solenoid output on a specific channel.
virtual std::unique_ptr< CallbackStore > RegisterCompressorCurrentCallback(NotifyCallback callback, bool initialNotify)=0
Register a callback to be run whenever the compressor current changes.
virtual std::unique_ptr< CallbackStore > RegisterCompressorOnCallback(NotifyCallback callback, bool initialNotify)=0
Register a callback to be run when the compressor activates.
const int m_index
Definition: PneumaticsBaseSim.h:178
virtual bool GetInitialized() const =0
Check whether the PCM/PH has been initialized.
static std::shared_ptr< PneumaticsBaseSim > GetForType(int module, PneumaticsModuleType type)
virtual void SetCompressorOn(bool compressorOn)=0
Set whether the compressor is active.
virtual std::unique_ptr< CallbackStore > RegisterPressureSwitchCallback(NotifyCallback callback, bool initialNotify)=0
Register a callback to be run whenever the pressure switch value changes.
type
Definition: core.h:575
::uint8_t uint8_t
Definition: Meta.h:52
Definition: AnalogOutputSim.h:15
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition: CallbackStore.h:14
PneumaticsModuleType
Definition: PneumaticsModuleType.h:8