Skip to content

cezarc1/QuadrocopterFlightPlan

Repository files navigation

QuadrocopterFlightPlan for iOS

Extension on objc.io's Quadrocopter Project

###Motivation

This project attempts to add a Flight Plan feature to Parrot's AR Drone. It attempts to accomplish this without Parrot's Flight Recorder.

This by using two iOS devices: One device strapped to the drone and another acting as the "terminal" which the user interacts with.

Remote Client Local Client

The Red pin represents the Drone's Position and the Green pin represents the drones destination.

###Usage

####Building the Local Client or "Terminal"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    
    //Local
    ClientViewController *cvc = [[ClientViewController alloc] init];
    self.window.rootViewController = cvc;
    
    [UIApplication sharedApplication].idleTimerDisabled = YES;
    
    return YES;
}

####Building the Remote Client or the iOS device attached to the drone

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    
    //Remote
    self.vc = [[ViewController alloc] initWithNibName:nil bundle:nil];
    self.window.rootViewController = self.vc;
    
    [UIApplication sharedApplication].idleTimerDisabled = YES;
    
    return YES;
}

Features

  • Communication between the iOS devices is accomplished via the multi-peer connectivity introduced in iOS 7.
  • Ability to land, Hover and choose a location which is outside the drone's range.
  • Choosing a new waypoint is done by long pressing on the client map until a pin appears then tapping "GO".

License

This project is released under the MIT License.

About

Extension on objc.io's Quadrocopter Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published