My fully self designed first stable working Quadrocopter Software.

Dependencies:   mbed

Dependents:   fluy343

/media/uploads/maetugr/dsc09031.jpg

Committer:
maetugr
Date:
Mon Aug 31 20:20:50 2015 +0000
Revision:
10:14390c90c3f5
Parent:
0:12950aa67f2a
before changing to MPU9250

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maetugr 0:12950aa67f2a 1 #include "mbed.h"
maetugr 0:12950aa67f2a 2
maetugr 0:12950aa67f2a 3 #ifndef PC_H
maetugr 0:12950aa67f2a 4 #define PC_H
maetugr 0:12950aa67f2a 5
maetugr 0:12950aa67f2a 6 #define COMMAND_MAX_LENGHT 300
maetugr 0:12950aa67f2a 7
maetugr 0:12950aa67f2a 8 class PC : public Serial
maetugr 0:12950aa67f2a 9 {
maetugr 0:12950aa67f2a 10 public:
maetugr 0:12950aa67f2a 11 PC(PinName tx, PinName rx, int baud);
maetugr 0:12950aa67f2a 12 void cls(); // to clear the display
maetugr 0:12950aa67f2a 13 void locate(int column, int row); // to relocate the cursor
maetugr 0:12950aa67f2a 14 void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string
maetugr 0:12950aa67f2a 15
maetugr 0:12950aa67f2a 16 char command[COMMAND_MAX_LENGHT];
maetugr 0:12950aa67f2a 17 private:
maetugr 0:12950aa67f2a 18 int command_char_count;
maetugr 0:12950aa67f2a 19 };
maetugr 0:12950aa67f2a 20 #endif