Interface IVoltageOutputController
-
- All Known Implementing Classes:
MixedMotorCollection
,SparkCollection
,TalonSRXCollection
,VictorSPXCollection
public interface IVoltageOutputController
A common interface for devices that can be controlled with a desired output voltage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getEstimatedVoltage()
Estimate controller output voltage from speedvoid
setVoltage(double volts)
Set desired controller output in volts.
-
-
-
Method Detail
-
setVoltage
void setVoltage(double volts)
Set desired controller output in volts. Negative voltage will result in reverse output- Parameters:
volts
- Controller output
-
getEstimatedVoltage
double getEstimatedVoltage()
Estimate controller output voltage from speed- Returns:
- Controller output voltage
-
-