An fully working IMU-Filter and Sensor drivers for the 10DOF-Board over I2C. All in one simple class. Include, calibrate sensors, call read, get angles. (3D Visualisation code for Python also included) Sensors: L3G4200D, ADXL345, HMC5883, BMP085
PC/PC.h
- Committer:
- maetugr
- Date:
- 2013-08-29
- Revision:
- 4:f62337b907e5
- Parent:
- 0:3e7450f1a938
File content as of revision 4:f62337b907e5:
#include "mbed.h" #ifndef PC_H #define PC_H #define COMMAND_MAX_LENGHT 300 class PC : public Serial { public: PC(PinName tx, PinName rx, int baud); void cls(); // to clear the display void locate(int column, int row); // to relocate the cursor void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string char command[COMMAND_MAX_LENGHT]; private: int command_char_count; }; #endif