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.

Dependencies:   mbed MODI2C

Mixer/Mixer.h

Committer:
maetugr
Date:
2014-02-14
Revision:
40:2ca410923691
Parent:
33:fd98776b6cc7

File content as of revision 40:2ca410923691:

// 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(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