ALPHA_A
Dependencies: DataPool MD_PID mbed
Diff: main.cpp
- Revision:
- 0:e77e7d7bbae0
- Child:
- 1:3082e5f990cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Aug 30 05:23:13 2017 +0000 @@ -0,0 +1,25 @@ +#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); + } +} \ No newline at end of file