Regenerating PPM signal based on distances from ultrasonic sensors, ESP8266 for connectin via wifi. Autonomous quadcopter behaviour, autonomou height holding. Flying direction based on front and back ultrasonic sensors.

Dependencies:   ConfigFile HCSR04 PID PPM2 mbed-rtos mbed

Revision:
11:002927b2675d
Parent:
9:86a5af9935b1
Child:
12:18b31682dfe9
Child:
25:69190c222dbf
--- a/main.cpp	Fri Oct 27 09:29:29 2017 +0000
+++ b/main.cpp	Fri Oct 27 10:30:06 2017 +0000
@@ -9,10 +9,7 @@
 #include "ConfigFile.h"
 
 //TEMP
-/*
-ConfigFile _configFile;
-LocalFileSystem local("local");
-*/
+
 
 //VARIABLES
 uint16_t ppmInChannelsValue[CHANNELS];
@@ -35,22 +32,6 @@
     wait(1);
     
     while(1){
-        
-        /*
-        // writing to configFile
-        _configFile.setValue("ahoj", "edo");
-        _configFile.write("/local/config.cfg");
-        
-        
-        //reading configFile
-        _configFile.read("/local/config.cfg");
-        char* key = "ahoj";
-        char value[BUFSIZ];
-        if (_configFile.getValue(key, &value[0], sizeof(value)))
-            pc.printf("'%s'='%s'\n", key, value);
-        */
-        
-        wait(2);
         Thread::wait(osWaitForever);
     }