This is the DW1000 driver and our self developed distance measurement application based on it. We do this as a semester thesis at ETH Zürich under the Automatic Control Laboratory in the Department of electrical engineering.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PC.h Source File

PC.h

00001 #include "mbed.h"
00002 
00003 #ifndef PC_H
00004 #define PC_H
00005 
00006 #define COMMAND_MAX_LENGHT 300
00007 
00008 class PC : public Serial 
00009 {
00010     public:
00011         PC(PinName tx, PinName rx, int baud);
00012         void cls();                                                                        // to clear the display
00013         void locate(int column, int row);                                                  // to relocate the cursor
00014         void readcommand(void (*executer)(char*));                  // to read a char from the pc to the command string
00015         
00016         char command[COMMAND_MAX_LENGHT];
00017     private:
00018         int command_char_count;
00019 };
00020 #endif