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