Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DataPool MD_PID mbed
main.cpp
- Committer:
- hirotayamato
- Date:
- 2017-08-25
- Revision:
- 0:b8fa7a019f5d
- Child:
- 2:cd4c1d0a4346
File content as of revision 0:b8fa7a019f5d:
#include "mbed.h"
#include "2017_3_h.h"
#include "GammaTransporter.h"
#include "DataPool.h"
Omni_3 Omni(PB_0, PB_4, PA_7, PA_2, PF_0, PA_11, PA_5, PA_6, PB_1, PB_5, PA_4, PA_3, 1);
Serial pc(USBTX, USBRX);
int main() {
DataPool *gamma;
gamma = new GammaTransporter;
Omni.Drive(0, 0, 0);
float x, y, t;
while(1) {
gamma->set();
x = gamma->read(0);
y = gamma->read(1);
t = gamma->read(2);
Omni.Drive(x, y, t);
}
}