Package ch.hevs.kart
Class KartRegisters.V1.Status.BatteryVoltageLevel
java.lang.Object
ch.hevs.kart.KartRegisters.V1.Status.BatteryVoltageLevel
- Enclosing class:
KartRegisters.V1.Status
ADC value of the battery voltage level measure.
Raw ADC (Analog to Digital Converter) output value. We refer you to the schematic of the power module, the data-sheet of the used MCP3425 ADC and the information you find about the used battery packs in order to calculate the battery charge in function to the ADC value.
A simpler solution might be to use the KartListener
interface, it returns the normalized battery level from 0.0 (empty) to 1.0
(full).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ADDRESS
public static final int ADDRESS- See Also:
-
MIN
public static final int MIN- See Also:
-
MAX
public static final int MAX- See Also:
-
-
Constructor Details
-
BatteryVoltageLevel
public BatteryVoltageLevel()
-
-
Method Details
-
TO_V
public static double TO_V(int registerValue) -
TO_LEVEL
public static double TO_LEVEL(int registerValue)
-