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

RotationCount() public method

Get the number of rotations (a rotation is 360 degrees) - only makes sense when in angle mode
public RotationCount ( ) : int
return int
        public int RotationCount()
        {
            if (Mode == GyroMode.Angle)
            {
                return brick.BrickPi.Sensor[(int)Port].Value / 360;
            }
            return 0;
        }