function loop() {
    if (looping == false) {
      return;
    }

    commands = [
      // Take off
      new DRONE.Command('REF', [
        status.mode
      ]),

      new DRONE.Command('PCMD', [
        // Enables/Disables commands
        status.enabled,
        // Left - Right tilt
        DRONE.Util.float32ToInt32(status.leftRightTilt),
        // Front - Back tilt
        DRONE.Util.float32ToInt32(status.frontBackTilt),
        // Vertical Speed
        DRONE.Util.float32ToInt32(status.verticalSpeed),
        // Angular Speed
        DRONE.Util.float32ToInt32(status.angularSpeed)

      ])
   ];

    // send and schedule the update
    sendCommands(commands);
    setTimeout(loop, 60);
  }
The main loop. This sends the commands to the drone, including
the tilt, speed and whether or not we want it to take off or land