added gy80 dcm

Dependencies:   mbed DCM_AHRS_GY80 PID MMA8451Q

Fork of quadCommand by Greg Abdo

main.cpp

Committer:
oprospero
Date:
2013-06-10
Revision:
30:75caa2d18286
Parent:
21:63b99aee1c7c
Parent:
28:c6f6d6034d22
Child:
31:42688840106f

File content as of revision 30:75caa2d18286:

#include "quadCommand.h"
#include "debug.h"

int main() 
{
    DEBUG(pc.printf("DEBUG ENABLED\r\n");)
    Ticker motorProcess;// Control timer
    quadCommand quad;   // Create quadCommand object.
    
    DEBUG(pc.printf("Initialized\r\n");)
    quad.run();         // Start quadCommand running.
    
    //Updates motors on set intervals
    motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f);
}