Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PID MMA8451Q
Diff: quadCommand/quadCommand.h
- Revision:
- 16:84c7db5b4464
- Parent:
- 9:9e0d0ba5b6b1
- Parent:
- 15:92ecb025fbc5
- Child:
- 17:d73944c3c945
--- a/quadCommand/quadCommand.h Mon Jun 10 00:01:48 2013 +0000
+++ b/quadCommand/quadCommand.h Mon Jun 10 00:04:56 2013 +0000
@@ -9,6 +9,7 @@
#include "motor.h"
#include "com.h"
#include "sensors.h"
+#include "PID/PID.h"
// Motor constants.
const PinName MOTOR1 = PTD4; // Pin used for motor 1.
@@ -51,6 +52,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);
