You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
609 B
21 lines
609 B
|
|
#define ft2m(x) ((x) * 0.3048) |
|
#define kt2mps(x) ((x) * 0.514444444) |
|
#define sqr(x) ((x)*(x)) |
|
#define ToRad(x) (x*0.01745329252) // *pi/180 |
|
|
|
void set_nonblocking(int fd); |
|
double normalise(double v, double min, double max); |
|
double normalise180(double v); |
|
void runInterrupt(uint8_t inum); |
|
|
|
void convert_body_frame(double rollDeg, double pitchDeg, |
|
double rollRate, double pitchRate, double yawRate, |
|
double *p, double *q, double *r); |
|
|
|
// generate a random float between -1 and 1 |
|
#define rand_float() (((((unsigned)random()) % 2000000) - 1.0e6) / 1.0e6) |
|
|
|
#ifdef VECTOR3_H |
|
Vector3f rand_vec3f(void); |
|
#endif
|
|
|