Example #1
0
 public PIDController(DroneMovement drone, float P, float I, float D)
 {
     this.drone         = drone;
     this.P_Constant    = P;
     this.I_Constant    = I;
     this.D_Constant    = D;
     this.previousState = 0;
     this.integrator    = 0;
     this.derivative    = 0;
 }
Example #2
0
        //CONSTRUCTOR

        public DroneSensors(DroneMovement drone)
        {
            this.drone            = drone;
            this.droneBody        = drone.GetDroneBody();
            this.previousVelocity = new Vector3(0, 0, 0);
        }