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:
40:0aa1cefe80ab
Parent:
38:801fee0330e2
Child:
41:5fe200d20022
--- a/definitions.h	Sun Mar 25 12:57:04 2018 +0000
+++ b/definitions.h	Tue May 15 10:34:35 2018 +0000
@@ -17,7 +17,8 @@
 #define AUX2 5
 
 #define THROTTLE_LIMIT 1500
-#define REGULATED_ROLL 1510
+#define PITCH_GO_AHEAD 1512
+#define PITCH_GO_BACK 1488
 
 
 #define             FLIGHT_CONTROLLER_FREQUENCY 100