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

Committer:
maetugr
Date:
Fri Feb 14 14:17:32 2014 +0000
Revision:
40:2ca410923691
Parent:
34:3aa1cbcde59d
now with MPU6050 before taking it too FlyBed2

Who changed what in which revision?

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