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:
27:5956d5e3ff63
Parent:
26:11539036f0fb
Child:
30:4d1b3926a3cc
Child:
31:5f1737e480f3
--- a/hardware.h	Fri Dec 01 11:11:23 2017 +0000
+++ b/hardware.h	Sat Jan 20 11:44:46 2018 +0000
@@ -16,7 +16,7 @@
 
 Serial          pc(USBTX, USBRX); // tx, rx
 PID*            _groundDistance;
-RtosTimer       *_groudRegulationUpdateTimer;
+//RtosTimer       *_groudRegulationUpdateTimer;
 HCSR04*         _sonic;
 PpmRegen*       _ppmRegen;
 
@@ -24,7 +24,8 @@
 LocalFileSystem local("local");
 
 Thread serverThread;
-Thread _distanceThread;
+Thread *_distanceThread;
+
 
 InterruptIn*    _interruptPort =    new InterruptIn(p28);
 PwmOut*         _roll =             new PwmOut(p21);