Package com.thegongoliers.input.voltage
Class BatteryVoltageSensor
- java.lang.Object
-
- com.thegongoliers.input.voltage.BatteryVoltageSensor
-
- All Implemented Interfaces:
VoltageSensor
public class BatteryVoltageSensor extends java.lang.Object implements VoltageSensor
A voltage sensor which monitors the voltage of the battery.
-
-
Constructor Summary
Constructors Constructor Description BatteryVoltageSensor()
Monitor the voltage of the battery.
-
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
-
-