ETrobocon2017 - 片山研究所モデルベース開発推進事業部
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
Definition: Clock.h:12