My fully self designed first stable working Quadrocopter Software.

Dependencies:   mbed

Dependents:   fluy343

/media/uploads/maetugr/dsc09031.jpg

PC/PC.h

Committer:
maetugr
Date:
2015-08-31
Revision:
10:14390c90c3f5
Parent:
0:12950aa67f2a

File content as of revision 10:14390c90c3f5:

#include "mbed.h"

#ifndef PC_H
#define PC_H

#define COMMAND_MAX_LENGHT 300

class PC : public Serial 
{
    public:
        PC(PinName tx, PinName rx, int baud);
        void cls();                                                                        // to clear the display
        void locate(int column, int row);                                                  // to relocate the cursor
        void readcommand(void (*executer)(char*));                  // to read a char from the pc to the command string
        
        char command[COMMAND_MAX_LENGHT];
    private:
        int command_char_count;
};
#endif