etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
LeftCourse.h
[詳解]
1 
7 #ifndef __LEFT_COURSE__
8 #define __LEFT_COURSE__
9 
10 #define IS_SHORT_CUT 0
11 
12 #include "AIAnswer.h"
13 #include "BasicWalker.h"
14 #include "Controller.h"
15 #include "LeftNormalCourse.h"
16 #include "Parking.h"
17 #include "Walker.h"
18 
22 class LeftCourse {
23  public:
25  LeftCourse() = default;
26  explicit LeftCourse(Controller& controller_) : walker(controller_), controller(controller_) {}
27 
34  void setFirstCode(int32_t);
35 
37  void run(int16_t brightness, int16_t black, int16_t white, int16_t gray);
39  void runNormalCourse(int16_t brightness);
44  void runBlockRange();
45 
50  void runParking(int16_t brightness, int16_t black, int16_t white, int16_t gray);
51 
52  void aiAnswerGo(std::int16_t brightness, std::int16_t black, std::int16_t white,
53  std::int16_t gray);
54 
55  void runGoBlack();
56 
57  void runGoStraight();
58 
59  private:
60  Walker walker;
61  Controller controller;
62  int16_t target_brightness;
63  LineTracerWalker lineTracer;
64  BasicWalker basic{ controller };
65  MotorAngle motor_angle;
66  // AIAnswer ai_answer;
67  // BasicWalker basicWalker;
68  // Motor motor;
69  // GyroSensor gyro_sensor;
70 
75  int32_t firstCode;
76 };
77 
78 #endif
void setFirstCode(int32_t)
Definition: LeftCourse.cpp:8
LeftCourse(Controller &controller_)
Definition: LeftCourse.h:26
void runParking(int16_t brightness, int16_t black, int16_t white, int16_t gray)
Definition: LeftCourse.cpp:97
void runBlockRange()
Definition: LeftCourse.cpp:131
void runNormalCourse(int16_t brightness)
Definition: LeftCourse.cpp:103
void runGoStraight()
Definition: LeftCourse.cpp:65
LコースのNormalCourseの処理を行うクラス
縦列駐車クラス
AIアンサー
void runGoBlack()
Definition: LeftCourse.cpp:39
Definition: Walker.h:7
void aiAnswerGo(std::int16_t brightness, std::int16_t black, std::int16_t white, std::int16_t gray)
Definition: LeftCourse.cpp:32
LeftCourse()=default
void run(int16_t brightness, int16_t black, int16_t white, int16_t gray)
Definition: LeftCourse.cpp:16