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:
41:5fe200d20022
Parent:
40:0aa1cefe80ab
--- a/definitions.h	Tue May 15 10:34:35 2018 +0000
+++ b/definitions.h	Tue May 22 19:43:09 2018 +0000
@@ -16,9 +16,10 @@
 #define AUX1 4
 #define AUX2 5
 
-#define THROTTLE_LIMIT 1500
-#define PITCH_GO_AHEAD 1512
-#define PITCH_GO_BACK 1488
+#define THROTTLE_LIMIT  1500
+#define PITCH_MOVE_FORWARD      15
+#define PITCH_MOVE_BACKWARD     15
+#define LANDING_HEIGHT  6
 
 
 #define             FLIGHT_CONTROLLER_FREQUENCY 100