public int RotationCount() { if (Mode == GyroMode.Angle) { return brick.BrickPi.Sensor[(int)Port].Value / 360; } return 0; }