aa

Dependencies:   mbed

Revision:
25:b3a9f34b201d
Parent:
22:7d93f79a3686
Child:
27:dd9f27fce7d1
--- a/System/Process/Process.h	Wed Sep 18 02:03:56 2019 +0000
+++ b/System/Process/Process.h	Fri Sep 27 07:51:32 2019 +0000
@@ -9,19 +9,59 @@
 
 void SystemProcess();
 
+/* ---------- motor ---------- */
+
 #define  TIRE_FL  0
-#define  TIRE_FR  1
-#define  TIRE_BL  3
+#define  TIRE_BL  1
 #define  TIRE_BR  2
-
+#define  TIRE_FR  3
 #define  LIFT_LB  4
 #define  LIFT_RB  5
 #define  LIFT_U   6
 
-#define  LSW_LB   0
-#define  LSW_RB   1
+/* ---------- motor ---------- */
+
+/* ---------- limitswitch ---------- */
+
+#define  LSW_LB   0  // 上下1段目 左 リミット
+#define  LSW_RB   1  // 上下1段目 右 リミット
+#define  LSW_UU   2  // 上下2段目 上 リミット
+#define  LSW_UB   3  // 上下2段目 下 リミット
+#define  TOW_1L   4  // タオル1 左 リミット
+#define  TOW_1R   5  // タオル1 右 リミット
+#define  TOW_2L   6  // タオル2 左 リミット
+#define  TOW_2R   7  // タオル2 右 リミット
+
+#define  SETTING_SW   8  // セッティングタイム用
+#define  QF_SW        9  // 予選・決勝 切り替え
+#define  UNFOLD_SW   10  // タオルセット用の展開
+#define  TOWEL1_SW   11  // タオル1 切り替え
+#define  REDBLUE_SW  12  // 赤青 切り替え
+#define  SHEETS_SW   13  // シーツ 切り替え
+#define  TOWEL2_SW  14  // タオル2 切り替え
+#define  START_SW    15  // スタートボタン
 
+/* ---------- limitswitch ---------- */
 
+/* ---------- linetrace ---------- */
+
+#define  LINE_FRONT  0
+#define  LINE_BACK   2
+#define  LINE_LEFT   3
+#define  LINE_RIGHT  4
+#define  LINE_TOW_1  5
+#define  LINE_TOW_2  6
+
+/* ---------- linetrace ---------- */
+
+/* ---------- solenoid ---------- */
+
+#define  TOWEL0 solenoid0  // タオル横 展開
+#define  TOWEL1 solenoid2  // タオル1 
+#define  TOWEL2 solenoid4  // タオル2
+#define  CLOTHE solenoid6  // シーツの洗濯ばさみ
+
+/* ---------- solenoid ---------- */