A quadcopter control Software (Still in development). achieved single axis stability!!!!! released for others benefit. if you'd like to help co-develop this code, then please let me know
Dependencies: MovingAverageFilter MyI2C PID RC mbed-rtos mbed
Currently on hold, due to the fact that i don't own a RX/TX system
Diff: GlobalDefines.h
- Revision:
- 0:54b67cd15a5b
- Child:
- 1:e08a4f517989
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GlobalDefines.h Sun Dec 23 23:50:21 2012 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "PulseIn.h" +#include "FastPWM.h" + +#define ToRad(x) (x*0.01745329252) // *pi/180 +#define ToDeg(x) (x*57.2957795131) // *180/pi + +//// Motor Pins ///// +FastPWM FrontMotor(p21); // Front Motor Pin +FastPWM RearMotor(p22); // Rear Motor Pin +FastPWM LeftMotor(p23); // Left Motor Pin +FastPWM RightMotor(p24);// Right Motor Pin +///////////////////// + +DigitalOut one(LED1); +PulseIn Throttle(p11); + +Timer Global; + +int16_t RX_Data[4]; +float pitch,roll,deltaTime; +/////PID Variables///// +float PID[3],error[3],I[3],D[3]; \ No newline at end of file