added gy80 dcm
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/quadCommand.h
- Revision:
- 15:92ecb025fbc5
- Parent:
- 8:72791d8c36b7
- Child:
- 16:84c7db5b4464
--- a/quadCommand/quadCommand.h Sun Jun 09 23:36:31 2013 +0000 +++ b/quadCommand/quadCommand.h Mon Jun 10 00:03:12 2013 +0000 @@ -9,6 +9,7 @@ #include "motor.h" #include "com.h" #include "sensors.h" +#include "PID/PID.h" const PinName MOTOR1 = PTD4; // Pin used for motor 1. const PinName MOTOR2 = PTA12; // Pin used for motor 2. @@ -43,6 +44,7 @@ float targetRoll; float targetYaw; + PID pidThrottle(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD); PID pidPitch(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD); PID pidRoll(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD); PID pidYaw(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD);