WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
frc::PneumaticHub::Faults Struct Reference

Faults for a REV PH. More...

#include <frc/PneumaticHub.h>

Public Member Functions

bool GetChannelFault (int channel) const
 Gets whether there is a fault at the specified channel.
 

Public Attributes

uint32_t Channel0Fault: 1
 Fault on channel 0.
 
uint32_t Channel1Fault: 1
 Fault on channel 1.
 
uint32_t Channel2Fault: 1
 Fault on channel 2.
 
uint32_t Channel3Fault: 1
 Fault on channel 3.
 
uint32_t Channel4Fault: 1
 Fault on channel 4.
 
uint32_t Channel5Fault: 1
 Fault on channel 5.
 
uint32_t Channel6Fault: 1
 Fault on channel 6.
 
uint32_t Channel7Fault: 1
 Fault on channel 7.
 
uint32_t Channel8Fault: 1
 Fault on channel 8.
 
uint32_t Channel9Fault: 1
 Fault on channel 9.
 
uint32_t Channel10Fault: 1
 Fault on channel 10.
 
uint32_t Channel11Fault: 1
 Fault on channel 11.
 
uint32_t Channel12Fault: 1
 Fault on channel 12.
 
uint32_t Channel13Fault: 1
 Fault on channel 13.
 
uint32_t Channel14Fault: 1
 Fault on channel 14.
 
uint32_t Channel15Fault: 1
 Fault on channel 15.
 
uint32_t CompressorOverCurrent: 1
 An overcurrent event occurred on the compressor output.
 
uint32_t CompressorOpen: 1
 The compressor output has an open circuit.
 
uint32_t SolenoidOverCurrent: 1
 An overcurrent event occurred on a solenoid output.
 
uint32_t Brownout: 1
 The input voltage is below the minimum voltage.
 
uint32_t CanWarning: 1
 A warning was raised by the device's CAN controller.
 
uint32_t HardwareFault: 1
 The hardware on the device has malfunctioned.
 

Detailed Description

Faults for a REV PH.

These faults are only active while the condition is active.

Member Function Documentation

◆ GetChannelFault()

bool frc::PneumaticHub::Faults::GetChannelFault ( int channel) const

Gets whether there is a fault at the specified channel.

Parameters
channelChannel to check for faults.
Returns
True if a a fault exists at the channel, otherwise false.
Throws:
A ChannelIndexOutOfRange error if the provided channel is outside of the range supported by the hardware.

Member Data Documentation

◆ Brownout

uint32_t frc::PneumaticHub::Faults::Brownout

The input voltage is below the minimum voltage.

◆ CanWarning

uint32_t frc::PneumaticHub::Faults::CanWarning

A warning was raised by the device's CAN controller.

◆ Channel0Fault

uint32_t frc::PneumaticHub::Faults::Channel0Fault

Fault on channel 0.

◆ Channel10Fault

uint32_t frc::PneumaticHub::Faults::Channel10Fault

Fault on channel 10.

◆ Channel11Fault

uint32_t frc::PneumaticHub::Faults::Channel11Fault

Fault on channel 11.

◆ Channel12Fault

uint32_t frc::PneumaticHub::Faults::Channel12Fault

Fault on channel 12.

◆ Channel13Fault

uint32_t frc::PneumaticHub::Faults::Channel13Fault

Fault on channel 13.

◆ Channel14Fault

uint32_t frc::PneumaticHub::Faults::Channel14Fault

Fault on channel 14.

◆ Channel15Fault

uint32_t frc::PneumaticHub::Faults::Channel15Fault

Fault on channel 15.

◆ Channel1Fault

uint32_t frc::PneumaticHub::Faults::Channel1Fault

Fault on channel 1.

◆ Channel2Fault

uint32_t frc::PneumaticHub::Faults::Channel2Fault

Fault on channel 2.

◆ Channel3Fault

uint32_t frc::PneumaticHub::Faults::Channel3Fault

Fault on channel 3.

◆ Channel4Fault

uint32_t frc::PneumaticHub::Faults::Channel4Fault

Fault on channel 4.

◆ Channel5Fault

uint32_t frc::PneumaticHub::Faults::Channel5Fault

Fault on channel 5.

◆ Channel6Fault

uint32_t frc::PneumaticHub::Faults::Channel6Fault

Fault on channel 6.

◆ Channel7Fault

uint32_t frc::PneumaticHub::Faults::Channel7Fault

Fault on channel 7.

◆ Channel8Fault

uint32_t frc::PneumaticHub::Faults::Channel8Fault

Fault on channel 8.

◆ Channel9Fault

uint32_t frc::PneumaticHub::Faults::Channel9Fault

Fault on channel 9.

◆ CompressorOpen

uint32_t frc::PneumaticHub::Faults::CompressorOpen

The compressor output has an open circuit.

◆ CompressorOverCurrent

uint32_t frc::PneumaticHub::Faults::CompressorOverCurrent

An overcurrent event occurred on the compressor output.

◆ HardwareFault

uint32_t frc::PneumaticHub::Faults::HardwareFault

The hardware on the device has malfunctioned.

◆ SolenoidOverCurrent

uint32_t frc::PneumaticHub::Faults::SolenoidOverCurrent

An overcurrent event occurred on a solenoid output.


The documentation for this struct was generated from the following file: