卒研

Dependencies:   P_motor T_motor

Fork of omuni by gaku takasawa

Committer:
gaku_sigu
Date:
Tue Oct 10 12:50:39 2017 +0000
Revision:
0:c0f3e14f1ed1
Child:
1:75b51c0b7f47
Child:
2:fe76af2dff4d
???

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gaku_sigu 0:c0f3e14f1ed1 1 #ifndef omuni_H
gaku_sigu 0:c0f3e14f1ed1 2 #define omuni_H
gaku_sigu 0:c0f3e14f1ed1 3 #include "T_motor.h"
gaku_sigu 0:c0f3e14f1ed1 4 #include "mbed.h"
gaku_sigu 0:c0f3e14f1ed1 5
gaku_sigu 0:c0f3e14f1ed1 6 #define PI 3.14159265359
gaku_sigu 0:c0f3e14f1ed1 7 #define dataNum 5
gaku_sigu 0:c0f3e14f1ed1 8
gaku_sigu 0:c0f3e14f1ed1 9 class omuni{
gaku_sigu 0:c0f3e14f1ed1 10 private:
gaku_sigu 0:c0f3e14f1ed1 11 I2C *i2c;
gaku_sigu 0:c0f3e14f1ed1 12 T_motor m1,m2,m3;
gaku_sigu 0:c0f3e14f1ed1 13 char RXData[dataNum];
gaku_sigu 0:c0f3e14f1ed1 14 int8_t map(int8_t in, int8_t inMin, int8_t inMax, int8_t outMin, int8_t outMax);
gaku_sigu 0:c0f3e14f1ed1 15
gaku_sigu 0:c0f3e14f1ed1 16 public:
gaku_sigu 0:c0f3e14f1ed1 17 omuni(I2C* i2c_,int8_t addr1,int8_t addr2,int8_t addr3);
gaku_sigu 0:c0f3e14f1ed1 18 void out(char rxdata[dataNum],float L = 0.275);
gaku_sigu 0:c0f3e14f1ed1 19
gaku_sigu 0:c0f3e14f1ed1 20 };
gaku_sigu 0:c0f3e14f1ed1 21 #endif