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)

Dependencies:   mbed

Committer:
maetugr
Date:
Tue Sep 08 13:38:10 2015 +0000
Revision:
0:37f0c1e8fa66
MPU9250 on the new Board works fine over SPI; RC is broken and works with FlyBed2 :(

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maetugr 0:37f0c1e8fa66 1 #include "mbed.h"
maetugr 0:37f0c1e8fa66 2
maetugr 0:37f0c1e8fa66 3 #ifndef PC_H
maetugr 0:37f0c1e8fa66 4 #define PC_H
maetugr 0:37f0c1e8fa66 5
maetugr 0:37f0c1e8fa66 6 #define COMMAND_MAX_LENGHT 300
maetugr 0:37f0c1e8fa66 7
maetugr 0:37f0c1e8fa66 8 class PC : public Serial
maetugr 0:37f0c1e8fa66 9 {
maetugr 0:37f0c1e8fa66 10 public:
maetugr 0:37f0c1e8fa66 11 PC(PinName tx, PinName rx, int baud);
maetugr 0:37f0c1e8fa66 12 void cls(); // to clear the display
maetugr 0:37f0c1e8fa66 13 void locate(int column, int row); // to relocate the cursor
maetugr 0:37f0c1e8fa66 14 void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string
maetugr 0:37f0c1e8fa66 15
maetugr 0:37f0c1e8fa66 16 char command[COMMAND_MAX_LENGHT];
maetugr 0:37f0c1e8fa66 17 private:
maetugr 0:37f0c1e8fa66 18 int command_char_count;
maetugr 0:37f0c1e8fa66 19 };
maetugr 0:37f0c1e8fa66 20 #endif