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/Mixer.h
- Committer:
- maetugr
- Date:
- 2013-02-10
- Revision:
- 30:021e13b62575
- Parent:
- 29:8b7362a2ee14
- Child:
- 33:fd98776b6cc7
File content as of revision 30:021e13b62575:
// by MaEtUgR #ifndef MIXER_H #define MIXER_H #define RT 0.70710678118654752440084436210485 // 1 / squrt(2) for the X configuration #include "mbed.h" class Mixer { public: Mixer(int Configuration); void compute(unsigned long dt, int Throttle, const float * controller_value); float Motor_speed[4]; // calculated motor speeds to send to the ESCs private: int Configuration; // number of the configuration used (for example +) }; #endif