Пример #1
0
 /// <summary>
 /// Standard constructor of the Core class
 /// </summary>
 public Core()
 {
     m_pServoController = new PCA9685();
     m_pAccelerometer = new LSM303DLHC();
     m_pGyroscope = new L3GD20H();
     m_pTelemetryClient = new Client();
     m_pRemoteControl = new NetworkRemoteControl();
 }
Пример #2
0
 public AntennaRotateController()
 {
     ServoController = ServoControllerFactory.CreateServoController();
     SetSweepModeData(RotateDirection.ClockWise, RotateRate.Rpm2);  //默认设置为顺时针5转每分钟
 }
Пример #3
0
 public AntennaState()
 {
     servoController = ServoControllerFactory.CreateServoController();   //伺服控制器
 }
Пример #4
0
        private RotateDirection _intentionalDirection = RotateDirection.ClockWise; //期望的天线扫描方向,由于惯性的存在,可能与真实方向不一致

        public AntennaManager()
        {
            _sweepModeObs    = new List <ISweepModeObserver>();
            _sweepSection    = null;
            _servoController = ServoControllerFactory.CreateServoController();
        }