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

Branch:
DistanceRegulation
Revision:
17:1896d242945b
Parent:
16:9490bb68e1fb
Child:
21:0afb91824792
--- a/hardware.h	Sun Oct 29 10:22:06 2017 +0000
+++ b/hardware.h	Sun Oct 29 10:25:58 2017 +0000
@@ -36,7 +36,7 @@
 
 char*  _str = new char[1024];
 char* _serverMessage = new char[1024];
-bool _pidChanged = false;
+bool _configChanges = false;
 // zero is default value
 float _P = 0;
 float _I = 0;
@@ -80,7 +80,7 @@
     
     _configFile.write("/local/config.cfg");        
     
-    _pidChanged = true;
+    _configChanges = true;
     
 }