main
Dependents: 00_yotsuba 200_yotsuba_21 200_yotuba_21_uiChange
Diff: robot.cpp
- Revision:
- 2:fc5545ddf69a
- Parent:
- 1:6a5065829cfc
- Child:
- 3:8e7c24edbaea
--- a/robot.cpp Thu Jan 30 13:58:01 2020 +0000 +++ b/robot.cpp Thu Jan 30 15:48:44 2020 +0000 @@ -46,9 +46,17 @@ } -void robot::outLine(float r, line) +void robot::outLine() +/* ゴールから見て + * 右のライン -> 90° + * 左のライン -> -90° + * 上のライン -> 180° + * 下のライン -> 0° + */ { - + while(/*線を踏んだか見る奴*/){ + omni.compute + } } @@ -60,6 +68,7 @@ void test() { + while(1) { for (int i=0; i<4; i++) { motor[i]->setSpeed(0.2);