ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
include
LeftNormalCourse.h
[詳解]
1
7
#ifndef __LEFTNORMALCOURSE__
8
#define __LEFTNORMALCOURSE__
9
10
#include "
NormalCourse.h
"
11
15
enum struct
LeftStatus
{
16
STRAIGHT
,
17
STRAIGHT_SLOW
,
18
CURVE_RIGHT
,
19
CURVE_LEFT
,
20
CURVE_LEFT_SHORT
,
21
NEUTRAL
,
22
EDGE_CHANGE
,
23
EDGE_RESET
,
24
STOP
25
};
26
30
class
LeftNormalCourse
:
public
NormalCourse
{
31
public
:
33
LeftNormalCourse
();
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
LeftStatus
Definition:
LeftNormalCourse.h:15
LeftStatus::EDGE_CHANGE
LeftStatus::CURVE_RIGHT
LeftStatus::EDGE_RESET
LeftStatus::CURVE_LEFT_SHORT
NormalCourse.h
LeftStatus::STRAIGHT_SLOW
LeftStatus::NEUTRAL
LeftNormalCourse
Definition:
LeftNormalCourse.h:30
NormalCourse
Definition:
NormalCourse.h:7
LeftStatus::STRAIGHT
LeftStatus::STOP
LeftStatus::CURVE_LEFT
構築:
1.8.13