Пример #1
0
 public Controller(Autopilot autopilot)
 {
     if (autopilot == null)
         throw new NullReferenceException ();
     this.Autopilot = autopilot;
     this.Enabled = false;
 }
 public AttitudeController(Autopilot autopilot)
     : base(autopilot)
 {
     this.pidController = new PidController (12, 10, 20);
     this.pitch = 0;
     this.yaw = 0;
     this.spitch = Convert.ToString (this.pitch);
     this.syaw = Convert.ToString (this.yaw);
 }
        public AutopilotController(Autopilot autopilot)
            : base(autopilot)
        {
            this.controllers = new List<Controller> ();
            this.controllers.Add (new AttitudeController (base.Autopilot));
            this.controllers.Add (new AutoLaunchController (base.Autopilot));
            this.controllers.Add (new AutoStagingController (base.Autopilot));

            this.AttitudeController.Enable ();
        }
 public AutoLaunchController(Autopilot autopilot)
     : base(autopilot)
 {
 }