Joli\ArDrone\Control\UdpControl::__construct PHP Method

__construct() public method

public __construct ( $loop )
    public function __construct($loop)
    {
        $this->loop = $loop;
        $this->port = Config::CONTROL_PORT;
        $this->ip = Config::DRONE_IP;
        $this->commandCreator = new AtCommandCreator();
        $this->speed = 0.3;
        $this->ref = ['fly' => false, 'emergency' => false];
        $this->pcmd = [];
        $this->anim = [];
        $this->start();
    }