private void SetAntennaSweepState(RotateDirection direction, uint countPerMinute) { lock (this) { _rotationRate = countPerMinute; //保存当前设置的转速 var rate = GetRotationRate(direction, countPerMinute); _servoController.SetRotationRate(rate); } }
public void StopSweep() { ServoController.SetRotationRate(RotateMode.Stop); }