Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Console.h@23:0927e605af4b, 2013-11-22 (annotated)
- Committer:
- syundo0730
- Date:
- Fri Nov 22 00:30:42 2013 +0000
- Revision:
- 23:0927e605af4b
- Parent:
- 22:bf5aa20b9df0
first commit
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 | 23:0927e605af4b | 6 | #include "OnlineMotion.h" |
syundo0730 | 23:0927e605af4b | 7 | |
syundo0730 | 22:bf5aa20b9df0 | 8 | class Console |
syundo0730 | 22:bf5aa20b9df0 | 9 | { |
syundo0730 | 22:bf5aa20b9df0 | 10 | public: |
syundo0730 | 22:bf5aa20b9df0 | 11 | Console(PinName tx, PinName rx); |
syundo0730 | 22:bf5aa20b9df0 | 12 | ~Console(); |
syundo0730 | 22:bf5aa20b9df0 | 13 | |
syundo0730 | 22:bf5aa20b9df0 | 14 | public: |
syundo0730 | 22:bf5aa20b9df0 | 15 | int getid(); |
syundo0730 | 22:bf5aa20b9df0 | 16 | uint8_t getheader(); |
syundo0730 | 22:bf5aa20b9df0 | 17 | uint16_t get_int_cr(); |
syundo0730 | 23:0927e605af4b | 18 | float get_float_cr(); |
syundo0730 | 22:bf5aa20b9df0 | 19 | void printf(char* str); |
syundo0730 | 23:0927e605af4b | 20 | void showOnline(OnlineMotion* on); |
syundo0730 | 22:bf5aa20b9df0 | 21 | |
syundo0730 | 22:bf5aa20b9df0 | 22 | private: |
syundo0730 | 22:bf5aa20b9df0 | 23 | uint8_t getc_wait(); |
syundo0730 | 22:bf5aa20b9df0 | 24 | uint8_t getc_nowait(); |
syundo0730 | 22:bf5aa20b9df0 | 25 | |
syundo0730 | 22:bf5aa20b9df0 | 26 | private: |
syundo0730 | 22:bf5aa20b9df0 | 27 | Serial* serial; |
syundo0730 | 22:bf5aa20b9df0 | 28 | }; |
syundo0730 | 22:bf5aa20b9df0 | 29 | |
syundo0730 | 23:0927e605af4b | 30 | #endif |