NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Mixer.h
00001 // by MaEtUgR 00002 00003 #ifndef MIXER_H 00004 #define MIXER_H 00005 00006 #define RT 0.70710678118654752440084436210485 // 1 / squrt(2) for the X configuration 00007 00008 #include "mbed.h" 00009 00010 class Mixer 00011 { 00012 public: 00013 Mixer(int Configuration); 00014 void compute(int Throttle, const float * controller_value); 00015 float Motor_speed[4]; // calculated motor speeds to send to the ESCs 00016 private: 00017 int Configuration; // number of the configuration used (for example +) 00018 }; 00019 00020 #endif
Generated on Tue Jul 12 2022 20:54:01 by 1.7.2