Class RemoteRequestBattery

  • All Implemented Interfaces:
    Power

    public class RemoteRequestBattery
    extends java.lang.Object
    implements Power
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteRequestBattery​(java.io.ObjectInputStream is, java.io.ObjectOutputStream os)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getBatteryCurrent()
      Return the current draw from the battery
      float getMotorCurrent()
      return the motor current draw
      float getVoltage()
      The NXT uses 6 batteries of 1.5 V each.
      int getVoltageMilliVolt()
      The NXT uses 6 batteries of 1500 mV each.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteRequestBattery

        public RemoteRequestBattery​(java.io.ObjectInputStream is,
                                    java.io.ObjectOutputStream os)
    • 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