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: distanceRegulation.h
- Branch:
- DistanceRegulation
- Revision:
- 16:9490bb68e1fb
- Parent:
- 13:33024b5880b3
- Child:
- 17:1896d242945b
--- a/distanceRegulation.h Fri Oct 27 15:29:51 2017 +0000 +++ b/distanceRegulation.h Sun Oct 29 10:22:06 2017 +0000 @@ -23,8 +23,8 @@ distance = _sonic->getDistan(); //calculate PID for given channel - if(pidChanged){ - pidChanged = false; + if(_pidChanged){ + _pidChanged = false; pc.printf("PID tunings changed \n\r"); _groundDistance->setTunings(_P, _I, _D); }