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
- Branch:
- DistanceRegulation
- Revision:
- 16:9490bb68e1fb
- Parent:
- 15:9cdf757269fb
- Child:
- 17:1896d242945b
diff -r 9cdf757269fb -r 9490bb68e1fb hardware.h --- a/hardware.h Fri Oct 27 15:29:51 2017 +0000 +++ b/hardware.h Sun Oct 29 10:22:06 2017 +0000 @@ -36,7 +36,7 @@ char* _str = new char[1024]; char* _serverMessage = new char[1024]; -bool pidChanged = false; +bool _pidChanged = false; // zero is default value float _P = 0; float _I = 0; @@ -80,7 +80,7 @@ _configFile.write("/local/config.cfg"); - pidChanged = true; + _pidChanged = true; }