|
| | DutyCycle (DigitalSource &source) |
| | Constructs a DutyCycle input from a DigitalSource input. More...
|
| |
| | DutyCycle (DigitalSource *source) |
| | Constructs a DutyCycle input from a DigitalSource input. More...
|
| |
| | DutyCycle (std::shared_ptr< DigitalSource > source) |
| | Constructs a DutyCycle input from a DigitalSource input. More...
|
| |
|
| ~DutyCycle () override |
| | Close the DutyCycle and free all resources.
|
| |
|
| DutyCycle (DutyCycle &&)=default |
| |
|
DutyCycle & | operator= (DutyCycle &&)=default |
| |
| int | GetFrequency () const |
| | Get the frequency of the duty cycle signal. More...
|
| |
| double | GetOutput () const |
| | Get the output ratio of the duty cycle signal. More...
|
| |
| unsigned int | GetOutputRaw () const |
| | Get the raw output ratio of the duty cycle signal. More...
|
| |
| unsigned int | GetOutputScaleFactor () const |
| | Get the scale factor of the output. More...
|
| |
| int | GetFPGAIndex () const |
| | Get the FPGA index for the DutyCycle. More...
|
| |
| int | GetSourceChannel () const |
| | Get the channel of the source. More...
|
| |
|
| ErrorBase (const ErrorBase &)=default |
| |
|
ErrorBase & | operator= (const ErrorBase &)=default |
| |
|
| ErrorBase (ErrorBase &&)=default |
| |
|
ErrorBase & | operator= (ErrorBase &&)=default |
| |
| virtual Error & | GetError () |
| | Retrieve the current error. More...
|
| |
| virtual const Error & | GetError () const |
| | Retrieve the current error. More...
|
| |
|
virtual void | ClearError () const |
| | Clear the current error information associated with this sensor.
|
| |
| virtual void | SetErrnoError (const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set error information associated with a C library call that set an error to the "errno" global variable. More...
|
| |
| virtual void | SetImaqError (int success, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated from the nivision Imaq API. More...
|
| |
| virtual void | SetError (Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
| virtual void | SetErrorRange (Error::Code code, int32_t minRange, int32_t maxRange, int32_t requestedValue, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
| virtual void | SetWPIError (const wpi::Twine &errorMessage, Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
|
virtual void | CloneError (const ErrorBase &rhs) const |
| |
| virtual bool | StatusIsFatal () const |
| | Check if the current error code represents a fatal error. More...
|
| |
|
void | ClearGlobalErrors () |
| | Clear global errors.
|
| |
|
| SendableHelper (const SendableHelper &rhs)=default |
| |
|
| SendableHelper (SendableHelper &&rhs) |
| |
|
SendableHelper & | operator= (const SendableHelper &rhs)=default |
| |
|
SendableHelper & | operator= (SendableHelper &&rhs) |
| |
| std::string | GetName () const |
| | Gets the name of this Sendable object. More...
|
| |
| void | SetName (const wpi::Twine &name) |
| | Sets the name of this Sendable object. More...
|
| |
| void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
| | Sets both the subsystem name and device name of this Sendable object. More...
|
| |
| std::string | GetSubsystem () const |
| | Gets the subsystem name of this Sendable object. More...
|
| |
| void | SetSubsystem (const wpi::Twine &subsystem) |
| | Sets the subsystem name of this Sendable object. More...
|
| |
Class to read a duty cycle PWM input.
PWM input signals are specified with a frequency and a ratio of high to low in that frequency. There are 8 of these in the roboRIO, and they can be attached to any DigitalSource.
These can be combined as the input of an AnalogTrigger to a Counter in order to implement rollover checking.