NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.

Dependencies:   mbed MODI2C

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PC.h Source File

PC.h

00001 #include "mbed.h"
00002 
00003 #ifndef PC_H
00004 #define PC_H
00005 
00006 #define COMMAND_MAX_LENGHT 300
00007 
00008 class PC : public Serial 
00009 {
00010     public:
00011         PC(PinName tx, PinName rx, int baud);
00012         void cls();                                                                        // to clear the display
00013         void locate(int column, int row);                                                  // to relocate the cursor
00014         void readcommand(void (*executer)(char*));                  // to read a char from the pc to the command string
00015         
00016         char command[COMMAND_MAX_LENGHT];
00017     private:
00018         int command_char_count;
00019 };
00020 #endif