示例#1
0
        double getForceValue()
        {
            double forceValue;

            forceValue = AI_ForceSensor.ReadVoltage();

            return(forceValue);
        }
示例#2
0
 /// <summary>
 /// Returns the current voltage reading of the potentiometer
 /// </summary>
 public double ReadPotentiometerVoltage()
 {
     return(input.ReadVoltage());
 }
示例#3
0
 /// <summary>
 /// Returns the current voltage reading of the light sensor
 /// </summary>
 /// <returns>A voltage reading between 0 and 3.3.</returns>
 public double ReadLightSensorVoltage()
 {
     return(input.ReadVoltage());
 }
示例#4
0
 /// <summary>
 /// Returns a value describing the reading of the air.
 /// </summary>
 /// <returns>Value between 0.0 and 3.3</returns>
 public double ReadVoltage()
 {
     return(ain.ReadVoltage());
 }