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:
- 32:c729e6da7f9a
- Parent:
- 31:5f1737e480f3
- Child:
- 34:5dca557e982f
diff -r 5f1737e480f3 -r c729e6da7f9a hardware.h --- a/hardware.h Sun Feb 04 15:21:12 2018 +0000 +++ b/hardware.h Sat Feb 17 15:48:49 2018 +0000 @@ -50,9 +50,9 @@ int _groundPidMaxOutput = 0; bool _groundRegulation = false; // Temporary values for Server to filter noise -float _tempP; -float _tempI; -float _tempD; +float _newP; +float _newI; +float _newD; bool _tempGroundRegulation = false; @@ -105,11 +105,8 @@ strcat(_serverMessage, "groundSetPoint value could not be saved to configFile\n\r"); pc.printf("groundSetPoint value could not be saved to configFile\n\r"); } - _configFile.write("/local/config.cfg"); - //_configChanges = true; - }