Class RemoteBattery

  • All Implemented Interfaces:
    Power

    public class RemoteBattery
    extends java.lang.Object
    implements Power
    • Constructor Detail

      • RemoteBattery

        public RemoteBattery​(RMIBattery battery)
    • Method Detail

      • getVoltageMilliVolt

        public int getVoltageMilliVolt()
        Description copied from interface: Power
        The NXT uses 6 batteries of 1500 mV each.
        Specified by:
        getVoltageMilliVolt in interface Power
        Returns:
        Battery voltage in mV. ~9000 = full.
      • getVoltage

        public float getVoltage()
        Description copied from interface: Power
        The NXT uses 6 batteries of 1.5 V each.
        Specified by:
        getVoltage in interface Power
        Returns:
        Battery voltage in Volt. ~9V = full.
      • getBatteryCurrent

        public float getBatteryCurrent()
        Description copied from interface: Power
        Return the current draw from the battery
        Specified by:
        getBatteryCurrent in interface Power
        Returns:
        current in Amps
      • getMotorCurrent

        public float getMotorCurrent()
        Description copied from interface: Power
        return the motor current draw
        Specified by:
        getMotorCurrent in interface Power
        Returns:
        current in Amps