Successful acro and level mode now! Relying on MPU9250 as base sensor. I'm working continuously on tuning and features :) NEWEST VERSION ON: https://github.com/MaEtUgR/FlyBed (CODE 100% compatible/copyable)
Diff: PC/PC.h
- Revision:
- 0:37f0c1e8fa66
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PC/PC.h Tue Sep 08 13:38:10 2015 +0000 @@ -0,0 +1,20 @@ +#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