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: definitions.h
- Branch:
- DistanceRegulation
- Revision:
- 30:4d1b3926a3cc
- Parent:
- 2:d172c9963f87
diff -r c35bcfe62c77 -r 4d1b3926a3cc definitions.h --- a/definitions.h Sat Jan 20 12:09:04 2018 +0000 +++ b/definitions.h Sun Jan 21 17:58:41 2018 +0000 @@ -16,6 +16,7 @@ #define AUX1 4 #define AUX2 5 +#define FLIGHT_CONTROLLER_FREQUENCY 10 /* pc.printf("ROLL %d\n\r", channels[ROLL]); pc.printf("PITCH %d\n\r", channels[PITCH]);