![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
main.cpp@17:60de3bfdc70b, 2013-04-02 (annotated)
- Committer:
- syundo0730
- Date:
- Tue Apr 02 04:19:09 2013 +0000
- Revision:
- 17:60de3bfdc70b
- Parent:
- 16:e65c192b7ecf
- Child:
- 20:abb7852df747
+realtime module(not move well)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syundo0730 | 0:d114194bff43 | 1 | #include "LPC17xx.h" |
syundo0730 | 0:d114194bff43 | 2 | #include "mbed.h" |
syundo0730 | 12:6cd135bf03bd | 3 | #include "Motions.h" |
syundo0730 | 15:e37a8c413e51 | 4 | #include "PWM.h" |
syundo0730 | 0:d114194bff43 | 5 | |
syundo0730 | 12:6cd135bf03bd | 6 | uint16_t data[0x2000] __attribute__((section("AHBSRAM1"))); //motion data area |
syundo0730 | 17:60de3bfdc70b | 7 | |
syundo0730 | 17:60de3bfdc70b | 8 | DigitalOut led1(LED1); |
syundo0730 | 5:0ca9f1bc1fb0 | 9 | |
syundo0730 | 8:72b4a248d469 | 10 | int main(void) |
syundo0730 | 16:e65c192b7ecf | 11 | { |
syundo0730 | 13:711f74b2fa33 | 12 | Motions motions(data); |
syundo0730 | 15:e37a8c413e51 | 13 | |
syundo0730 | 5:0ca9f1bc1fb0 | 14 | while (1) { |
syundo0730 | 13:711f74b2fa33 | 15 | motions.control(); |
syundo0730 | 16:e65c192b7ecf | 16 | wait(0.02); |
syundo0730 | 5:0ca9f1bc1fb0 | 17 | } |
syundo0730 | 10:be8b10e54ecb | 18 | } |