MXP analog output class.
More...
#include <frc/AnalogOutput.h>
◆ AnalogOutput() [1/2]
frc::AnalogOutput::AnalogOutput |
( |
int |
channel | ) |
|
|
explicit |
Construct an analog output on the given channel.
All analog outputs are located on the MXP port.
- Parameters
-
channel | The channel number on the roboRIO to represent. |
◆ ~AnalogOutput()
frc::AnalogOutput::~AnalogOutput |
( |
| ) |
|
|
override |
◆ AnalogOutput() [2/2]
◆ GetChannel()
int frc::AnalogOutput::GetChannel |
( |
| ) |
const |
◆ GetVoltage()
double frc::AnalogOutput::GetVoltage |
( |
| ) |
const |
Get the voltage of the analog output.
- Returns
- The value in Volts, from 0.0 to +5.0.
◆ InitSendable()
Initializes this Sendable object.
- Parameters
-
Implements wpi::Sendable.
◆ operator=()
◆ SetVoltage()
void frc::AnalogOutput::SetVoltage |
( |
double |
voltage | ) |
|
Set the value of the analog output.
- Parameters
-
voltage | The output value in Volts, from 0.0 to +5.0. |
◆ m_channel
int frc::AnalogOutput::m_channel |
|
protected |
◆ m_port
The documentation for this class was generated from the following file: