Package com.thegongoliers.input.voltage
Class MotorVoltageSensor
- java.lang.Object
-
- com.thegongoliers.input.voltage.MotorVoltageSensor
-
- All Implemented Interfaces:
VoltageSensor
public class MotorVoltageSensor extends java.lang.Object implements VoltageSensor
-
-
Constructor Summary
Constructors Constructor Description MotorVoltageSensor(edu.wpi.first.wpilibj.SpeedController motor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getVoltage()
Get the voltage in Volts.
-
-
-
Method Detail
-
getVoltage
public double getVoltage()
Description copied from interface:VoltageSensor
Get the voltage in Volts.- Specified by:
getVoltage
in interfaceVoltageSensor
- Returns:
- The voltage of the sensor
-
-