Class PDPCurrentSensor

    • Constructor Summary

      Constructors 
      Constructor Description
      PDPCurrentSensor​(int port)
      Creates a current sensor at the specified port of the main PDP
      PDPCurrentSensor​(edu.wpi.first.wpilibj.PowerDistributionPanel pdp, int port)
      Creates a current sensor at the specified port of the specified PDP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getCurrent()
      Get the current detected by the sensor in Amps.
      • Methods inherited from class java.lang.Object

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

      • PDPCurrentSensor

        public PDPCurrentSensor​(int port)
        Creates a current sensor at the specified port of the main PDP
        Parameters:
        port - The port on the PDP to monitor
      • PDPCurrentSensor

        public PDPCurrentSensor​(edu.wpi.first.wpilibj.PowerDistributionPanel pdp,
                                int port)
        Creates a current sensor at the specified port of the specified PDP
        Parameters:
        pdp - The PDP that contains the specified port
        port - The port on the PDP to monitor
    • Method Detail

      • getCurrent

        public double getCurrent()
        Description copied from interface: CurrentSensor
        Get the current detected by the sensor in Amps.
        Specified by:
        getCurrent in interface CurrentSensor
        Returns:
        The current in Amps.