Exemplo n.º 1
0
        double getForceValue()
        {
            double forceValue;

            forceValue = AI_ForceSensor.ReadVoltage();

            return(forceValue);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the current voltage reading of the potentiometer
 /// </summary>
 public double ReadPotentiometerVoltage()
 {
     return(input.ReadVoltage());
 }
Exemplo n.º 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());
 }
Exemplo n.º 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());
 }