oboboboboobo

Dependencies:   P_motor T_motor

Fork of omuni by gaku takasawa

Committer:
fujikenac
Date:
Mon Oct 16 08:18:30 2017 +0000
Revision:
3:51f47bf405a0
Parent:
2:fe76af2dff4d
disable ticker

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"
fujikenac 2:fe76af2dff4d 4 #include "P_motor.h"
gaku_sigu 0:c0f3e14f1ed1 5 #include "mbed.h"
gaku_sigu 0:c0f3e14f1ed1 6
gaku_sigu 0:c0f3e14f1ed1 7 #define PI 3.14159265359
gaku_sigu 0:c0f3e14f1ed1 8 #define dataNum 5
gaku_sigu 0:c0f3e14f1ed1 9
gaku_sigu 0:c0f3e14f1ed1 10 class omuni{
gaku_sigu 0:c0f3e14f1ed1 11 private:
gaku_sigu 0:c0f3e14f1ed1 12 I2C *i2c;
fujikenac 2:fe76af2dff4d 13 P_motor m1,m2,m3;
gaku_sigu 0:c0f3e14f1ed1 14 char RXData[dataNum];
gaku_sigu 0:c0f3e14f1ed1 15 int8_t map(int8_t in, int8_t inMin, int8_t inMax, int8_t outMin, int8_t outMax);
gaku_sigu 0:c0f3e14f1ed1 16
gaku_sigu 0:c0f3e14f1ed1 17 public:
fujikenac 2:fe76af2dff4d 18 omuni(I2C* i2c_,int8_t addr1,int8_t addr2,int8_t addr3, double delta = 0.1);
gaku_sigu 0:c0f3e14f1ed1 19 void out(char rxdata[dataNum],float L = 0.275);
gaku_sigu 0:c0f3e14f1ed1 20
gaku_sigu 0:c0f3e14f1ed1 21 };
gaku_sigu 0:c0f3e14f1ed1 22 #endif