広田 勇斗 / Mbed 2 deprecated BETA_A

Dependencies:   DataPool MD_PID mbed

main.cpp

Committer:
hirotayamato
Date:
2017-08-26
Revision:
3:15f75374bff5
Parent:
2:cd4c1d0a4346
Child:
7:9eb4edae11c9

File content as of revision 3:15f75374bff5:

#include "mbed.h"

#include "2017_3_h.h"

#include "BetaTransporter.h"
#include "DataPool.h"

Omni_3 Omni(PB_4, PB_0, PA_7, PA_2, PB_5, PB_1, PA_5, PA_6, PA_11, PF_0, PA_4, PA_3, 1);
Serial pc(USBTX, USBRX);

int main() {
    DataPool *beta;
    
    beta = new BetaTransporter;
    
    Omni.Drive(0, 0, 0);
    float x, y, t;
    while(1) {
        beta->set();
        x = beta->read(0);
        y = beta->read(1);
        t = beta->read(2);
        Omni.Drive(x, y, t);
    }
}