Class MotorVoltageSensor

    • Constructor Summary

      Constructors 
      Constructor Description
      MotorVoltageSensor​(edu.wpi.first.wpilibj.SpeedController motor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getVoltage()
      Get the voltage in Volts.
      • Methods inherited from class java.lang.Object

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

      • MotorVoltageSensor

        public MotorVoltageSensor​(edu.wpi.first.wpilibj.SpeedController motor)
    • Method Detail

      • getVoltage

        public double getVoltage()
        Description copied from interface: VoltageSensor
        Get the voltage in Volts.
        Specified by:
        getVoltage in interface VoltageSensor
        Returns:
        The voltage of the sensor