BrickPi.Sensors.EV3GyroSensor.Read C# (CSharp) Method

Read() public method

Read the gyro sensor value. The returned value depends on the mode.
public Read ( ) : int
return int
        public int Read()
        {
            if (Mode == GyroMode.Angle)
            {
                return brick.BrickPi.Sensor[(int)Port].Value % 360;
            }
            return brick.BrickPi.Sensor[(int)Port].Value;
        }
        /// <summary>