An incomplete quadcopter control programme.

Dependencies:   mbed

Utils/Utils.h

Committer:
Gurvan
Date:
2013-07-17
Revision:
0:9cb9445a11f0

File content as of revision 0:9cb9445a11f0:

#ifndef _UTILS_H_
#define _UTILS_H_

#include "mbed.h"

float max(float a, float b){
    if(a>b) return a;
    else return b;
}

float min(float a, float b){
    if(a<b) return a;
    else return b;
}

float clip(float m, float M, float a){
    return max(min(M,a),m);
}

/*float abs(float a){
    return max(a,-a);
}*/

#endif