AnalogOutput¶
- class wpilib.AnalogOutput(channel: int)¶
Bases:
Sendable
MXP analog output class.
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.
- getChannel() int ¶
Get the channel of this AnalogOutput.
- getVoltage() float ¶
Get the voltage of the analog output
- Returns:
The value in Volts, from 0.0 to +5.0
- initSendable(builder: wpiutil._wpiutil.SendableBuilder) None ¶
- setVoltage(voltage: float) None ¶
Set the value of the analog output.
- Parameters:
voltage – The output value in Volts, from 0.0 to +5.0