Class HiTechnicAngleSensor

    • Constructor Detail

      • HiTechnicAngleSensor

        public HiTechnicAngleSensor​(I2CPort port)
      • HiTechnicAngleSensor

        public HiTechnicAngleSensor​(Port port)
    • Method Detail

      • init

        protected void init()
      • resetAccumulatedAngle

        public void resetAccumulatedAngle()
        Reset the rotation count of accumulated angle to zero. Not saved in EEPORM.
      • calibrateAngle

        public void calibrateAngle()
        Calibrate the zero position of angle. Zero position is saved in EEPROM on sensor. Thread sleeps for 50ms while that is done.
      • getAngleMode

        public SensorMode getAngleMode()
        HiTechnic angle sensor, Angle mode
        Measures the rotation position of a rotating axle.

        Size and content of the sample
        The sample contains one elements containing the angle of the sensor in the range of 0 to 359 degrees.

      • getAccumulatedAngleMode

        public SensorMode getAccumulatedAngleMode()
        HiTechnic angle sensor, Accumulated angle mode
        Measures the accumulated number of degrees an axle has rotated.

        Size and content of the sample
        The sample contains one elements containing the accumulated rotation (in degrees) of the axle.

      • getAngularVelocityMode

        public SensorMode getAngularVelocityMode()
        HiTechnic angle sensor, Angular velocity mode
        Measures the rotational speed of an axle.

        Size and content of the sample
        The sample contains one elements containing the angular velocity (in degrees) of the axle.