ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
include
BasicWalker.h
[詳解]
1
#ifndef __BASIC_WALKER__
2
#define __BASIC_WALKER__
3
4
#include "
Motor.h
"
5
#include "
Clock.h
"
6
#include "
util.h
"
7
8
using namespace
ev3api
;
9
10
class
BasicWalker
{
11
public
:
12
BasicWalker
() ;
13
void
spin ( int32_t,
bool
, int32_t ) ;
14
void
goStraight ( int32_t, int32_t ) ;
15
void
backStraight ( int32_t, int32_t ) ;
16
17
const
bool
SPIN_LEFT =
false
;
18
const
bool
SPIN_RIGHT =
true
;
19
20
private
:
21
Motor
leftWheel;
22
Motor
rightWheel;
23
Clock
clock;
24
int32_t leftReverseValue ;
25
int32_t rightReverseValue ;
26
27
} ;
28
29
#endif
ev3api
Definition:
Clock.h:12
BasicWalker
Definition:
BasicWalker.h:10
Clock.h
Motor.h
ev3api::Motor
Definition:
Motor.h:17
util.h
ev3api::Clock
Definition:
Clock.h:16
構築:
1.8.13