oboboboboobo
Fork of omuni by
omuni.h
- Committer:
- fujikenac
- Date:
- 2017-10-11
- Revision:
- 1:75b51c0b7f47
- Parent:
- 0:c0f3e14f1ed1
File content as of revision 1:75b51c0b7f47:
#ifndef omuni_H #define omuni_H #include "T_motor.h" #include "mbed.h" #define PI 3.14159265359 #define dataNum 5 class omuni{ private: I2C *i2c; T_motor m1,m2,m3; Timer timer; double speed; char RXData[dataNum]; int8_t map(int8_t in, int8_t inMin, int8_t inMax, int8_t outMin, int8_t outMax); void acceleration(); void speed_reset(); public: omuni(I2C* i2c_,int8_t addr1,int8_t addr2,int8_t addr3); void out(char rxdata[dataNum],float L = 0.275); }; #endif