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

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

Console.h

Committer:
syundo0730
Date:
2013-11-22
Revision:
23:0927e605af4b
Parent:
22:bf5aa20b9df0

File content as of revision 23:0927e605af4b:

#ifndef Console_H_2013_02_03_
#define Console_H_2013_02_03_

#include "mbed.h"

#include "OnlineMotion.h"

class Console
{
  public:
    Console(PinName tx, PinName rx);
    ~Console();
    
  public:
    int getid();
    uint8_t getheader();
    uint16_t get_int_cr();
    float get_float_cr();
    void printf(char* str);
    void showOnline(OnlineMotion* on);
    
  private:
    uint8_t getc_wait();
    uint8_t getc_nowait();
    
  private:
    Serial* serial;
};

#endif