Flight control with nRF and MPU6050

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Ucial
Date:
Wed Sep 26 02:45:14 2018 +0000
Parent:
1:23afaebeed15
Commit message:
Flight control of drone

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Aug 31 10:17:41 2018 +0000
+++ b/main.cpp	Wed Sep 26 02:45:14 2018 +0000
@@ -6,8 +6,10 @@
 
 DigitalOut myled(LED1);
 
-int main() {
-    while(1) {
+int main() 
+{
+    while(1)
+    {
         myled = 1; // LED is ON
         wait(0.2); // 200 ms
         myled = 0; // LED is OFF