![](/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@4:364582b47aab, 2012-09-15 (annotated)
- Committer:
- syundo0730
- Date:
- Sat Sep 15 06:36:13 2012 +0000
- Revision:
- 4:364582b47aab
- Child:
- 6:fae1b8c01b49
opp pre
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syundo0730 | 4:364582b47aab | 1 | #include "pwm.h" |
syundo0730 | 4:364582b47aab | 2 | |
syundo0730 | 4:364582b47aab | 3 | int main(void) { |
syundo0730 | 4:364582b47aab | 4 | |
syundo0730 | 4:364582b47aab | 5 | for(int i = 0; i < SRV_CH_NUM; i++) |
syundo0730 | 4:364582b47aab | 6 | { |
syundo0730 | 4:364582b47aab | 7 | SetDuty(i, (SRV_MAX_DUTY + SRV_MIN_DUTY) / 2); |
syundo0730 | 4:364582b47aab | 8 | } |
syundo0730 | 4:364582b47aab | 9 | |
syundo0730 | 4:364582b47aab | 10 | Init_PWM(); |
syundo0730 | 4:364582b47aab | 11 | |
syundo0730 | 4:364582b47aab | 12 | while (1); |
syundo0730 | 4:364582b47aab | 13 | } |
syundo0730 | 4:364582b47aab | 14 | |
syundo0730 | 4:364582b47aab | 15 | |
syundo0730 | 4:364582b47aab | 16 |