void attemptTiltChange(int newTilt) { newTilt = Math.Max(-30, Math.Min(30, newTilt)); if (newTilt != currentAngle) { currentAngle = newTilt; tcpManager.requestTiltChange(currentAngle); } }