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)
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
Generated on Tue Jul 12 2022 20:19:36 by 1.7.2