ALPHA_A
Dependencies: DataPool MD_PID mbed
main.cpp
- Committer:
- hirotayamato
- Date:
- 2017-08-30
- Revision:
- 0:e77e7d7bbae0
- Child:
- 1:3082e5f990cd
File content as of revision 0:e77e7d7bbae0:
#include "mbed.h" #include "2017_4.h" #include "AlphaTransporter.h" #include "DataPool.h" Mekanamu_4 Mekanamu(PA_8, PB_0, PA_2, PA_7, PA_11, PB_1, PA_6, PA_5, PB_5, PF_0, PA_4, PA_3, PB_4, PF_1, PA_1, PA_0, 1); Serial pc(USBTX, USBRX); int main() { DataPool *alpha; alpha = new AlphaTransporter; Mekanamu.Drive(0, 0, 0); float x, y, t; while(1) { alpha->set(); x = alpha->read(0); y = alpha->read(1); t = alpha->read(2); Mekanamu.Drive(x, y, t); } }