oboboboboobo
Fork of omuni by
omuni.h@2:fe76af2dff4d, 2017-10-13 (annotated)
- Committer:
- fujikenac
- Date:
- Fri Oct 13 10:10:32 2017 +0000
- Revision:
- 2:fe76af2dff4d
- Parent:
- 0:c0f3e14f1ed1
- Child:
- 3:51f47bf405a0
add advanced acceleration
Who changed what in which revision?
User | Revision | Line number | New 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 | Ticker tick; |
fujikenac | 2:fe76af2dff4d | 14 | P_motor m1,m2,m3; |
gaku_sigu | 0:c0f3e14f1ed1 | 15 | char RXData[dataNum]; |
gaku_sigu | 0:c0f3e14f1ed1 | 16 | int8_t map(int8_t in, int8_t inMin, int8_t inMax, int8_t outMin, int8_t outMax); |
gaku_sigu | 0:c0f3e14f1ed1 | 17 | |
gaku_sigu | 0:c0f3e14f1ed1 | 18 | public: |
fujikenac | 2:fe76af2dff4d | 19 | omuni(I2C* i2c_,int8_t addr1,int8_t addr2,int8_t addr3, double delta = 0.1); |
gaku_sigu | 0:c0f3e14f1ed1 | 20 | void out(char rxdata[dataNum],float L = 0.275); |
fujikenac | 2:fe76af2dff4d | 21 | void compute_task(); |
gaku_sigu | 0:c0f3e14f1ed1 | 22 | |
gaku_sigu | 0:c0f3e14f1ed1 | 23 | }; |
gaku_sigu | 0:c0f3e14f1ed1 | 24 | #endif |