quadCommand!
Dependencies: mbed PID MMA8451Q
Diff: main.cpp
- Revision:
- 49:f202fb0d4128
- Parent:
- 41:40e432c5cbe6
- Child:
- 54:bca9c9e92da6
--- a/main.cpp Mon Jun 10 02:18:56 2013 +0000 +++ b/main.cpp Mon Jun 10 04:43:30 2013 +0000 @@ -4,14 +4,9 @@ int main() { DEBUG(pc.printf("DEBUG ENABLED\r\n");) - Ticker motorProcess;// Control timer quadCommand quad; // Create quadCommand object. DEBUG(pc.printf("Initialized.\r\n");) - //Updates motors on set intervals - DEBUG(pc.printf("Updating motors on interval %f.\r\n", quadCommand::MOTOR_UPDATE/1000.0f);) - motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f); - quad.run(); // Start quadCommand running. }