Tobi's ubw test branch

Dependencies:   mavlink_bridge mbed

Fork of AIT_UWB_Range by Benjamin Hepp

Committer:
manumaet
Date:
Sun Nov 16 09:53:25 2014 +0000
Revision:
0:f50e671ffff7
draft with first success to send a hello world frame to the other node :)

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