quadCommand!
Dependencies: mbed PID MMA8451Q
Diff: main.cpp
- Revision:
- 24:63b99aee1c7c
- Parent:
- 8:72791d8c36b7
- Child:
- 27:799ccb9be2be
- Child:
- 30:75caa2d18286
--- a/main.cpp Mon Jun 10 00:24:39 2013 +0000 +++ b/main.cpp Mon Jun 10 00:31:18 2013 +0000 @@ -2,10 +2,11 @@ int main() { - Ticker motorProcess; + Ticker motorProcess;// Control timer quadCommand quad; // Create quadCommand object. quad.run(); // Start quadCommand running. + //Updates motors on set intervals motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f); }