Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Console.h@22:bf5aa20b9df0, 2013-09-06 (annotated)
- Committer:
- syundo0730
- Date:
- Fri Sep 06 08:36:21 2013 +0000
- Revision:
- 22:bf5aa20b9df0
- Child:
- 23:0927e605af4b
Subtile change.; Home position was changed.; SCI class was renamed to Console class and function was modified.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syundo0730 | 22:bf5aa20b9df0 | 1 | #ifndef Console_H_2013_02_03_ |
syundo0730 | 22:bf5aa20b9df0 | 2 | #define Console_H_2013_02_03_ |
syundo0730 | 22:bf5aa20b9df0 | 3 | |
syundo0730 | 22:bf5aa20b9df0 | 4 | #include "mbed.h" |
syundo0730 | 22:bf5aa20b9df0 | 5 | |
syundo0730 | 22:bf5aa20b9df0 | 6 | class Console |
syundo0730 | 22:bf5aa20b9df0 | 7 | { |
syundo0730 | 22:bf5aa20b9df0 | 8 | public: |
syundo0730 | 22:bf5aa20b9df0 | 9 | Console(PinName tx, PinName rx); |
syundo0730 | 22:bf5aa20b9df0 | 10 | ~Console(); |
syundo0730 | 22:bf5aa20b9df0 | 11 | |
syundo0730 | 22:bf5aa20b9df0 | 12 | public: |
syundo0730 | 22:bf5aa20b9df0 | 13 | int getid(); |
syundo0730 | 22:bf5aa20b9df0 | 14 | uint8_t getheader(); |
syundo0730 | 22:bf5aa20b9df0 | 15 | uint16_t get_int_cr(); |
syundo0730 | 22:bf5aa20b9df0 | 16 | void printf(char* str); |
syundo0730 | 22:bf5aa20b9df0 | 17 | |
syundo0730 | 22:bf5aa20b9df0 | 18 | private: |
syundo0730 | 22:bf5aa20b9df0 | 19 | uint8_t getc_wait(); |
syundo0730 | 22:bf5aa20b9df0 | 20 | uint8_t getc_nowait(); |
syundo0730 | 22:bf5aa20b9df0 | 21 | |
syundo0730 | 22:bf5aa20b9df0 | 22 | private: |
syundo0730 | 22:bf5aa20b9df0 | 23 | Serial* serial; |
syundo0730 | 22:bf5aa20b9df0 | 24 | }; |
syundo0730 | 22:bf5aa20b9df0 | 25 | |
syundo0730 | 22:bf5aa20b9df0 | 26 | #endif |