Module class for controlling a Cross The Road Electronics Pneumatics Control Module.
More...
|
| PneumaticsControlModule () |
| Constructs a PneumaticsControlModule with the default ID (0). More...
|
|
| PneumaticsControlModule (int module) |
| Constructs a PneumaticsControlModule. More...
|
|
| ~PneumaticsControlModule () override=default |
|
bool | GetCompressor () const override |
| Returns whether the compressor is active or not. More...
|
|
void | DisableCompressor () override |
| Disables the compressor. More...
|
|
void | EnableCompressorDigital () override |
| Enables the compressor in digital mode using the digital pressure switch. More...
|
|
void | EnableCompressorAnalog (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure) override |
| Enables the compressor in digital mode. More...
|
|
void | EnableCompressorHybrid (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure) override |
| Enables the compressor in digital mode. More...
|
|
CompressorConfigType | GetCompressorConfigType () const override |
| Returns the active compressor configuration. More...
|
|
bool | GetPressureSwitch () const override |
| Returns the state of the pressure switch. More...
|
|
units::ampere_t | GetCompressorCurrent () const override |
| Returns the current drawn by the compressor. More...
|
|
bool | GetCompressorCurrentTooHighFault () const |
| Return whether the compressor current is currently too high. More...
|
|
bool | GetCompressorCurrentTooHighStickyFault () const |
| Returns whether the compressor current has been too high since sticky faults were last cleared. More...
|
|
bool | GetCompressorShortedFault () const |
| Returns whether the compressor is currently shorted. More...
|
|
bool | GetCompressorShortedStickyFault () const |
| Returns whether the compressor has been shorted since sticky faults were last cleared. More...
|
|
bool | GetCompressorNotConnectedFault () const |
| Returns whether the compressor is currently disconnected. More...
|
|
bool | GetCompressorNotConnectedStickyFault () const |
| Returns whether the compressor has been disconnected since sticky faults were last cleared. More...
|
|
bool | GetSolenoidVoltageFault () const |
| Returns whether the solenoid is currently reporting a voltage fault. More...
|
|
bool | GetSolenoidVoltageStickyFault () const |
| Returns whether the solenoid has reported a voltage fault since sticky faults were last cleared. More...
|
|
void | ClearAllStickyFaults () |
| Clears all sticky faults on this device. More...
|
|
void | SetSolenoids (int mask, int values) override |
| Sets solenoids on a pneumatics module. More...
|
|
int | GetSolenoids () const override |
| Gets a bitmask of solenoid values. More...
|
|
int | GetModuleNumber () const override |
| Get module number for this module. More...
|
|
int | GetSolenoidDisabledList () const override |
| Get a bitmask of disabled solenoids. More...
|
|
void | FireOneShot (int index) override |
| Fire a single solenoid shot. More...
|
|
void | SetOneShotDuration (int index, units::second_t duration) override |
| Set the duration for a single solenoid shot. More...
|
|
bool | CheckSolenoidChannel (int channel) const override |
| Check if a solenoid channel is valid. More...
|
|
int | CheckAndReserveSolenoids (int mask) override |
| Check to see if the masked solenoids can be reserved, and if not reserve them. More...
|
|
void | UnreserveSolenoids (int mask) override |
| Unreserve the masked solenoids. More...
|
|
bool | ReserveCompressor () override |
| Reserve the compressor. More...
|
|
void | UnreserveCompressor () override |
| Unreserve the compressor. More...
|
|
units::volt_t | GetAnalogVoltage (int channel) const override |
| Unsupported by the CTRE PCM. More...
|
|
units::pounds_per_square_inch_t | GetPressure (int channel) const override |
| Unsupported by the CTRE PCM. More...
|
|
Solenoid | MakeSolenoid (int channel) override |
| Create a solenoid object for the specified channel. More...
|
|
DoubleSolenoid | MakeDoubleSolenoid (int forwardChannel, int reverseChannel) override |
| Create a double solenoid object for the specified channels. More...
|
|
Compressor | MakeCompressor () override |
| Create a compressor object. More...
|
|
virtual | ~PneumaticsBase ()=default |
|
virtual bool | GetCompressor () const =0 |
| Returns whether the compressor is active or not. More...
|
|
virtual bool | GetPressureSwitch () const =0 |
| Returns the state of the pressure switch. More...
|
|
virtual units::ampere_t | GetCompressorCurrent () const =0 |
| Returns the current drawn by the compressor. More...
|
|
virtual void | DisableCompressor ()=0 |
| Disables the compressor. More...
|
|
virtual void | EnableCompressorDigital ()=0 |
| Enables the compressor in digital mode using the digital pressure switch. More...
|
|
virtual void | EnableCompressorAnalog (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)=0 |
| If supported by the device, enables the compressor in analog mode. More...
|
|
virtual void | EnableCompressorHybrid (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)=0 |
| If supported by the device, enables the compressor in hybrid mode. More...
|
|
virtual CompressorConfigType | GetCompressorConfigType () const =0 |
| Returns the active compressor configuration. More...
|
|
virtual void | SetSolenoids (int mask, int values)=0 |
| Sets solenoids on a pneumatics module. More...
|
|
virtual int | GetSolenoids () const =0 |
| Gets a bitmask of solenoid values. More...
|
|
virtual int | GetModuleNumber () const =0 |
| Get module number for this module. More...
|
|
virtual int | GetSolenoidDisabledList () const =0 |
| Get a bitmask of disabled solenoids. More...
|
|
virtual void | FireOneShot (int index)=0 |
| Fire a single solenoid shot. More...
|
|
virtual void | SetOneShotDuration (int index, units::second_t duration)=0 |
| Set the duration for a single solenoid shot. More...
|
|
virtual bool | CheckSolenoidChannel (int channel) const =0 |
| Check if a solenoid channel is valid. More...
|
|
virtual int | CheckAndReserveSolenoids (int mask)=0 |
| Check to see if the masked solenoids can be reserved, and if not reserve them. More...
|
|
virtual void | UnreserveSolenoids (int mask)=0 |
| Unreserve the masked solenoids. More...
|
|
virtual bool | ReserveCompressor ()=0 |
| Reserve the compressor. More...
|
|
virtual void | UnreserveCompressor ()=0 |
| Unreserve the compressor. More...
|
|
virtual units::volt_t | GetAnalogVoltage (int channel) const =0 |
| If supported by the device, returns the raw voltage of the specified analog input channel. More...
|
|
virtual units::pounds_per_square_inch_t | GetPressure (int channel) const =0 |
| If supported by the device, returns the pressure read by an analog pressure sensor on the specified analog input channel. More...
|
|
virtual Solenoid | MakeSolenoid (int channel)=0 |
| Create a solenoid object for the specified channel. More...
|
|
virtual DoubleSolenoid | MakeDoubleSolenoid (int forwardChannel, int reverseChannel)=0 |
| Create a double solenoid object for the specified channels. More...
|
|
virtual Compressor | MakeCompressor ()=0 |
| Create a compressor object. More...
|
|
Module class for controlling a Cross The Road Electronics Pneumatics Control Module.