added gy80 dcm
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/quadCommand.h
- Revision:
- 51:60258b84ebab
- Parent:
- 50:197a18e49eb4
- Child:
- 52:24590a45b807
diff -r 197a18e49eb4 -r 60258b84ebab quadCommand/quadCommand.h --- a/quadCommand/quadCommand.h Mon Jun 10 05:04:53 2013 +0000 +++ b/quadCommand/quadCommand.h Mon Jun 10 05:57:47 2013 +0000 @@ -29,6 +29,7 @@ #define ACCSDA PTE25 // Pin for accelerometer SDA line. #define ACCSCL PTE24 // Pin for accelerometer SCL line. #define SENSSOR_DELAY 500.0f +#define SEND_DELAY 500.0f // PID constants. #define DEFAULT_WINDUP_GUARD 20.0f @@ -54,8 +55,11 @@ PID pidRoll; // PID for roll. PID pidYaw; // PID for yaw. + bool txValues; + Ticker sensorProcess; // Timer for getting sensor data. Ticker motorProcess; // Timer for updating the motors. + Ticker sendProcess; // Timer for sending data through the Xbee. float currentThrottle; // Current throttle. float currentPitch; // Current pitch.