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:
34:5dca557e982f
Parent:
32:c729e6da7f9a
Child:
35:b09e19c855f6
--- a/hardware.h	Sun Feb 18 17:10:48 2018 +0000
+++ b/hardware.h	Sun Feb 25 18:32:13 2018 +0000
@@ -18,12 +18,14 @@
 PID*            _groundDistance;
 //RtosTimer       *_groudRegulationUpdateTimer;
 HCSR04*         _sonic;
+uint32_t        _frontDistance;
 PpmRegen*       _ppmRegen;
 
 ConfigFile _configFile;
 LocalFileSystem local("local");
 
-Thread serverThread;
+Thread _serverThread;
+Thread _frontSensorThread;
 Thread *_distanceThread;