Exemplo n.º 1
0
 public AxesController(PIDSettings pitchSettings, PIDSettings rollSettings, PIDSettings yawSettings, bool useWindup)
 {
     if (useWindup)
     {
         _pitchController = new PIDWindup(pitchSettings);
         _rollController = new PIDWindup(rollSettings);
         _yawController = new PIDWindup(yawSettings);
     }
     else
     {
         _pitchController = new ControlAlgorithms.Implementations.PID.PID(pitchSettings);
         _rollController = new ControlAlgorithms.Implementations.PID.PID(rollSettings);
         _yawController = new ControlAlgorithms.Implementations.PID.PID(yawSettings);
     }
     Axes = new AircraftPrincipalAxes(){Pitch = 0, Roll = 0, Yaw = 0};
 }
Exemplo n.º 2
0
 public AxesController(PIDSettings pitchSettings, PIDSettings rollSettings, PIDSettings yawSettings, bool useWindup)
 {
     if (useWindup)
     {
         _pitchController = new PIDWindup(pitchSettings);
         _rollController = new PIDWindup(rollSettings);
         _yawController = new PIDWindup(yawSettings);
     }
     else
     {
         _pitchController = new ControlAlgorithms.Implementations.PID.PID(pitchSettings);
         _rollController = new ControlAlgorithms.Implementations.PID.PID(rollSettings);
         _yawController = new ControlAlgorithms.Implementations.PID.PID(yawSettings);
     }
     Axes = new AircraftPrincipalAxes(){Pitch = 0, Roll = 0, Yaw = 0};
 }