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
Diff: hardware.h
- Revision:
- 13:33024b5880b3
- Parent:
- 11:002927b2675d
- Child:
- 14:076ef843e1ba
--- a/hardware.h Fri Oct 27 10:30:06 2017 +0000 +++ b/hardware.h Fri Oct 27 10:47:12 2017 +0000 @@ -34,6 +34,7 @@ char* _str = new char[1024]; +bool pidChanged = false; float _P = 0; float _I = 0; float _D = 0; @@ -65,6 +66,8 @@ _configFile.write("/local/config.cfg"); + pidChanged = true; + }