Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.

Dependencies:   Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed

main.cpp

Committer:
syundo0730
Date:
2013-02-21
Revision:
15:e37a8c413e51
Parent:
14:522bb06f0f0d
Child:
16:e65c192b7ecf

File content as of revision 15:e37a8c413e51:

#include "LPC17xx.h"
#include "mbed.h"
#include "Motions.h"
#include "PWM.h"

uint16_t data[0x2000] __attribute__((section("AHBSRAM1"))); //motion data area
Ticker tick;    //Ticker for main control roop

int main(void)
{  
    PWM* pwm = new PWM();
    delete pwm;
    Motions motions(data);
    
    while (1) {
        motions.control();
        wait(0.05);
    }
}