etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
RightNormalCourse.h
[詳解]
1 
7 #ifndef __RIGHTNORMALCOURSE__
8 #define __RIGHTNORMALCOURSE__
9 
10 #include "NormalCourse.h"
11 
15 enum struct RightStatus {
21  SLOW,
22  START,
24  SLOW_DOWN,
25  STOP,
26 };
27 
32  public:
35 
40  bool runNormalCourse(int16_t target_brightness, int16_t black, int16_t white, int16_t gray);
41 
48  bool statusCheck(int32_t countL, int32_t countR);
49 
54  int getStatus();
55 
56  private:
57  RightStatus status;
58  RightStatus old_status;
59 
60  const std::int16_t CALIBRATE_DISTANCE_R = 300;
61  const std::int16_t FIRST_STRAIGHT_DISTANCE_R = 2500;
62  const std::int16_t FIRST_CURVE_DISTANCE_R = 4495;
63  const std::int16_t SECOND_STRAIGHT_DISTANCE_R = 5056;
64  const std::int16_t SECOND_CURVE_DISTANCE_IN_R = 5640;
65  const std::int16_t SECOND_CURVE_DISTANCE_OUT_R = 6542;
66  const std::int16_t THIRD_STRAIGHT_DISTANCE_R = 7100;
67  const std::int16_t THIRD_CURVE_DISTANCE_R = 8680;
68  const std::int16_t FOURTH_STRAIGHT_DISTANCE_R = 11507;
69  const std::int16_t FOR_DECREASE_JACKKNIFE_R = 11607;
70  //const std::int16_t FOURTH_STRAIGHT_DISTANCE_R = 11607;
71 
72 
73  const std::int16_t AFTER_GOAL_CURVE_R = 11900;
74  const std::int16_t GRAY_FIND_AREA_R = 12650;
75 };
76 
77 #endif
bool statusCheck(int32_t countL, int32_t countR)
bool runNormalCourse(int16_t target_brightness, int16_t black, int16_t white, int16_t gray)
RightStatus