Tobi's ubw test branch

Dependencies:   mavlink_bridge mbed

Fork of AIT_UWB_Range by Benjamin Hepp

Committer:
naegelit
Date:
Tue Jan 05 17:06:19 2016 +0000
Revision:
67:bd0f0580af5a
Parent:
0:f50e671ffff7
working with 4 odroids (hacky version)

Who changed what in which revision?

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