Class InputValues


  • public class InputValues
    extends java.lang.Object
    Sensor input values for a remote NXT accessed via LCP.
    Author:
    Brian Bagnall
    • Constructor Summary

      Constructors 
      Constructor Description
      InputValues()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • inputPort

        public int inputPort
      • valid

        public boolean valid
        NXT indicates if it thinks the data is valid
      • isCalibrated

        public boolean isCalibrated
      • sensorType

        public int sensorType
      • sensorMode

        public int sensorMode
      • rawADValue

        public int rawADValue
        The raw value from the Analog to Digital (AD) converter.
      • normalizedADValue

        public int normalizedADValue
        The normalized value from the Analog to Digital (AD) converter. I really don't know for sure which values are normalized yet. 0 to 1023
      • scaledValue

        public short scaledValue
        The scaled value starts working after the first call to the sensor. The first value will be the raw value, but after that it produces scaled values. With the touch sensor, off scales to 0 and on scales to 1.
      • calibratedValue

        public short calibratedValue
        Currently unused.
    • Constructor Detail

      • InputValues

        public InputValues()