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:
- 31:5f1737e480f3
- Parent:
- 27:5956d5e3ff63
- Child:
- 32:c729e6da7f9a
--- a/hardware.h Sat Jan 20 12:09:04 2018 +0000 +++ b/hardware.h Sun Feb 04 15:21:12 2018 +0000 @@ -39,6 +39,7 @@ char* _str = new char[1024]; char* _serverMessage = new char[1024]; bool _configChanges = false; +bool _onlyDistanChanged = false; // zero is default value float _P = 0; float _I = 0; @@ -48,6 +49,12 @@ int _groundPidMinOutput = 0; int _groundPidMaxOutput = 0; bool _groundRegulation = false; +// Temporary values for Server to filter noise +float _tempP; +float _tempI; +float _tempD; +bool _tempGroundRegulation = false; + @@ -101,7 +108,7 @@ _configFile.write("/local/config.cfg"); - _configChanges = true; + //_configChanges = true; }