ETrobocon2017 - 片山研究所モデルベース開発推進事業部
LeftNormalCourse.h
[詳解]
1 
7 #ifndef __LEFTNORMALCOURSE__
8 #define __LEFTNORMALCOURSE__
9 
10 #include "NormalCourse.h"
11 
15 enum struct LeftStatus {
16  STRAIGHT,
19  CURVE_LEFT,
21  NEUTRAL,
23  EDGE_RESET,
24  STOP
25 };
26 
31 public:
34 
39  bool runNormalCourse (int32_t countL, int32_t countR, int8_t light_value);
40 
47  bool statusCheck(int32_t countL, int32_t countR);
48 
53  int getStatus();
54 private:
55  LeftStatus status;
56  LeftStatus old_status;
57  bool isChangedEdge;
58  int16_t time_count;
59 };
60 
61 #endif
LeftStatus