function connectDrone() {
    // send the drone AT commands
    connect(sockets['at']);

    // get navigation data from the drone
    connect(sockets['nav']);

    // get a video stream from the drone
    // TODO: connect(sockets['vid'], 'tcp');

    // send admin commands to the drone
    connect(sockets['control']);

    chrome.sockets.tcp.onReceive.addListener(callbacks.onReceive);
    chrome.sockets.tcp.onReceiveError.addListener(callbacks.onReceiveError);
    chrome.sockets.udp.onReceive.addListener(callbacks.onReceive);
    chrome.sockets.udp.onReceiveError.addListener(callbacks.onReceiveError);
    log("connection completed.");
  }
Initialises the connections to the Drone