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