bez sterowania

Dependencies:   FastPWM mbed-src

Fork of 2015_01_29_quadro2 by Quadrocopter

Committer:
Michu90
Date:
Fri Dec 19 13:33:21 2014 +0000
Revision:
5:c3caf8b83e6b
Child:
10:605b0bfadc2e
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Michu90 5:c3caf8b83e6b 1 #ifndef OFFSETS_H
Michu90 5:c3caf8b83e6b 2 #define OFFSETS_H
Michu90 5:c3caf8b83e6b 3
Michu90 5:c3caf8b83e6b 4 #define M_PI 3.141592
Michu90 5:c3caf8b83e6b 5 #define M_PI2 1.570796
Michu90 5:c3caf8b83e6b 6
Michu90 5:c3caf8b83e6b 7 #include "mbed.h"
Michu90 5:c3caf8b83e6b 8 #include "IMU.h"
Michu90 5:c3caf8b83e6b 9
Michu90 5:c3caf8b83e6b 10 class Offsets
Michu90 5:c3caf8b83e6b 11 {
Michu90 5:c3caf8b83e6b 12 public:
Michu90 5:c3caf8b83e6b 13 Offsets();
Michu90 5:c3caf8b83e6b 14 ~Offsets(void);
Michu90 5:c3caf8b83e6b 15
Michu90 5:c3caf8b83e6b 16 void reset();
Michu90 5:c3caf8b83e6b 17 void setOffsets(float *, Serial &serial, IMU &imu);
Michu90 5:c3caf8b83e6b 18 void offsetData(float *, float *, float *);
Michu90 5:c3caf8b83e6b 19 void offsetData2(double *, float *, float *);
Michu90 5:c3caf8b83e6b 20
Michu90 5:c3caf8b83e6b 21 private:
Michu90 5:c3caf8b83e6b 22 int i;
Michu90 5:c3caf8b83e6b 23
Michu90 5:c3caf8b83e6b 24 //void setOffsets(float *, Serial serial, IMU imu);
Michu90 5:c3caf8b83e6b 25
Michu90 5:c3caf8b83e6b 26
Michu90 5:c3caf8b83e6b 27 };
Michu90 5:c3caf8b83e6b 28
Michu90 5:c3caf8b83e6b 29 #endif