手動b足回り

Dependents:   kobayashi_rei

Committer:
THtakahiro702286
Date:
Thu Jul 11 09:19:29 2019 +0000
Revision:
2:9017bbe177b7
Parent:
1:3c9eaf598f21
Child:
3:01a6eca21b23
start work together neko

Who changed what in which revision?

UserRevisionLine numberNew contents of line
THtakahiro702286 0:0d52f303ac08 1 #ifndef WHEELUNIT_H
THtakahiro702286 0:0d52f303ac08 2 #define WHEELUNIT_H
THtakahiro702286 0:0d52f303ac08 3
THtakahiro702286 0:0d52f303ac08 4 #define PI 3.1415926535
THtakahiro702286 0:0d52f303ac08 5
THtakahiro702286 0:0d52f303ac08 6 #include "mbed.h"
THtakahiro702286 1:3c9eaf598f21 7 #include "pin_config.h"
THtakahiro702286 0:0d52f303ac08 8 #include "ikarashiMDC.h"
THtakahiro702286 0:0d52f303ac08 9 #include "omni_wheel.h"
THtakahiro702286 0:0d52f303ac08 10
THtakahiro702286 0:0d52f303ac08 11 class WheelUnit
THtakahiro702286 0:0d52f303ac08 12 {
THtakahiro702286 0:0d52f303ac08 13 public:
THtakahiro702286 0:0d52f303ac08 14 WheelUnit(Serial* serial);
THtakahiro702286 0:0d52f303ac08 15 void move(float x,float y,float turnPower);
THtakahiro702286 0:0d52f303ac08 16 void stop();
THtakahiro702286 0:0d52f303ac08 17
THtakahiro702286 0:0d52f303ac08 18 private:
THtakahiro702286 0:0d52f303ac08 19 OmniWheel omni;
THtakahiro702286 0:0d52f303ac08 20 ikarashiMDC **md;
THtakahiro702286 0:0d52f303ac08 21 Serial pc;
THtakahiro702286 0:0d52f303ac08 22 float print;
THtakahiro702286 2:9017bbe177b7 23 float wheel[4];
THtakahiro702286 0:0d52f303ac08 24 };
THtakahiro702286 0:0d52f303ac08 25
THtakahiro702286 0:0d52f303ac08 26 #endif