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:
35:b09e19c855f6
Parent:
34:5dca557e982f
Child:
38:801fee0330e2
--- a/hardware.h	Sun Feb 25 18:32:13 2018 +0000
+++ b/hardware.h	Sat Mar 03 15:38:10 2018 +0000
@@ -46,10 +46,10 @@
 float _P = 0;
 float _I = 0;
 float _D = 0;
-int _groundSetPoint = 0;
-int _bias = 0;
-int _groundPidMinOutput = 0;
-int _groundPidMaxOutput = 0;
+float _groundSetPoint = 0;
+float _bias = 0;
+float _groundPidMinOutput = 0;
+float _groundPidMaxOutput = 0;
 bool _groundRegulation = false;
 // Temporary values for Server to filter noise
 float _newP;