bez sterowania

Dependencies:   FastPWM mbed-src

Fork of 2015_01_29_quadro2 by Quadrocopter

Committer:
Michu90
Date:
Tue Feb 10 15:08:04 2015 +0000
Revision:
10:605b0bfadc2e
Parent:
5:c3caf8b83e6b
Jeszcze sterowanie do zmiany jest tylko

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 10:605b0bfadc2e 17 void setOffsets(float *, float *, Serial &serial, IMU &imu);
Michu90 5:c3caf8b83e6b 18 void offsetData(float *, float *, float *);
Michu90 5:c3caf8b83e6b 19 void offsetData2(double *, float *, float *);
Michu90 10:605b0bfadc2e 20 void offsetMagneto(float *, float *, float *);
Michu90 5:c3caf8b83e6b 21
Michu90 5:c3caf8b83e6b 22 private:
Michu90 5:c3caf8b83e6b 23 int i;
Michu90 5:c3caf8b83e6b 24
Michu90 5:c3caf8b83e6b 25 //void setOffsets(float *, Serial serial, IMU imu);
Michu90 5:c3caf8b83e6b 26
Michu90 5:c3caf8b83e6b 27
Michu90 5:c3caf8b83e6b 28 };
Michu90 5:c3caf8b83e6b 29
Michu90 5:c3caf8b83e6b 30 #endif