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

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

Committer:
syundo0730
Date:
Tue Sep 18 15:49:17 2012 +0000
Revision:
6:fae1b8c01b49
Parent:
4:364582b47aab
opp

Who changed what in which revision?

UserRevisionLine numberNew contents of line
syundo0730 6:fae1b8c01b49 1 #include "LPC17xx.h"
syundo0730 6:fae1b8c01b49 2 #include "mbed.h"
syundo0730 4:364582b47aab 3 #include "pwm.h"
syundo0730 4:364582b47aab 4
syundo0730 6:fae1b8c01b49 5 Ticker flip;
syundo0730 6:fae1b8c01b49 6 LBC_pwm pwm;
syundo0730 6:fae1b8c01b49 7
syundo0730 6:fae1b8c01b49 8 void main_th(void) {
syundo0730 6:fae1b8c01b49 9 SetDuty(1,0);
syundo0730 6:fae1b8c01b49 10 }
syundo0730 6:fae1b8c01b49 11
syundo0730 4:364582b47aab 12 int main(void) {
syundo0730 4:364582b47aab 13
syundo0730 6:fae1b8c01b49 14 InitPWM();
syundo0730 6:fae1b8c01b49 15 flip.attach(&main_th,5.0);
syundo0730 4:364582b47aab 16
syundo0730 4:364582b47aab 17 while (1);
syundo0730 6:fae1b8c01b49 18 }