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:
- 8:72791d8c36b7
- Parent:
- 6:21ae5e53bb5f
- Child:
- 9:9e0d0ba5b6b1
- Child:
- 15:92ecb025fbc5
--- a/quadCommand/quadCommand.h Sun Jun 09 23:08:43 2013 +0000
+++ b/quadCommand/quadCommand.h Sun Jun 09 23:36:31 2013 +0000
@@ -26,8 +26,7 @@
quadCommand(); // Constructor.
void run(); // Loop.
void rxInput(); // Deal with new input from xbee.
- void updatePosition();
- void txPosition();
+ void updateMotors();
private:
motor *myMotors[4]; // Array of motor objects.
@@ -47,6 +46,8 @@
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);
+
+ static const float MOTOR_UPDATE;
};
#endif
\ No newline at end of file
