Skip to content

Instantly share code, notes, and snippets.

@hanjae-jea
Created September 13, 2017 12:13
Show Gist options
  • Save hanjae-jea/92dcbf3f08ab5eb344e671ed87256cd5 to your computer and use it in GitHub Desktop.
Save hanjae-jea/92dcbf3f08ab5eb344e671ed87256cd5 to your computer and use it in GitHub Desktop.
코드론
#include <CoDrone.h>
void setup(){
CoDrone.begin(115200);
CoDrone.AutoConnect(NearbyDrone);
CoDrone.FlightEvent(TakeOff);
PITCH = 60;
CoDrone.Control();
delay(1500);
PITCH = 0;
THROTTLE = -50;
CoDrone.Control();
delay(1000);
CoDrone.FlightEvent(Landing);
delay(5000);
CoDrone.FlightEvent(TakeOff);
THROTTLE = 70;
CoDrone.Control();
delay(2500);
THROTTLE = 0;
YAW = 40;
CoDrone.Control();
delay(800);
PITCH = 60;
CoDrone.Control();
delay(1800);
PITCH = 0;
THROTTLE = -50;
delay(1200);
CoDrone.FlightEvent(Landing);
delay(5000);
CoDrone.FlightEvent(TakeOff);
THROTTLE = 40;
CoDrone.Control();
delay(2000);
THROTTLE = 0;
YAW = -20;
CoDrone.Control();
delay(800);
YAW = 0;
PITCH = 60;
CoDrone.Control();
delay(2000);
THROTTLE = -40;
CoDrone.Control();
delay(1200);
CoDrone.FlightEvent(Landing);
}
void loop(){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment