Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TrapezoidControl QEI
Process.h
00001 #ifndef PROCESS_H_ 00002 #define PROCESS_H_ 00003 00004 #include "mbed.h" 00005 00006 #define BUZZER_PIN PA_5 00007 #define EMG_0 LimitSw::IsPressed(0) 00008 #define EMG_1 LimitSw::IsPressed(1) 00009 00010 void SystemProcess(); 00011 00012 #define TIRE_FL 0 00013 #define TIRE_BL 1 00014 #define TIRE_BR 2 00015 #define TIRE_FR 3 00016 #define MOTOR_0 4 00017 00018 #define StertSW LimitSw::IsPressed(9) //スタートスイッチ 00019 #define ZoneSW LimitSw::IsPressed(6) //赤・青ゾーン用スイッチ 00020 #define ThSW LimitSw::IsPressed(4) //シーツタオルスイッチ 00021 #define DWSW LimitSw::IsPressed(1) //上下機構上移動スイッチ 00022 #define DOSW LimitSw::IsPressed(3) //上下機構下移動スイッチ 00023 #define AIRSW LimitSw::IsPressed(2) //上下機構トリガー 00024 #define UPLS LimitSw::IsPressed(8) //上下機構リミット1 00025 #define UPLS2 LimitSw::IsPressed(0) //上下機構リミット2 00026 #define YELLOW LimitSw::IsPressed(10) //掛けるときのライントレース切り替え 00027 #define LIF LimitSw::IsPressed(11) //フェンス用リミット1 00028 #define LIB LimitSw::IsPressed(7) //フェンス用リミット2 00029 #define DOLS LimitSw::IsPressed(5) //上下機構下部リミット 00030 00031 00032 typedef union 00033 { 00034 struct 00035 { 00036 unsigned int blue : 8; 00037 unsigned int green : 8; 00038 unsigned int red : 8; 00039 unsigned int : 8; 00040 }; 00041 uint32_t code; 00042 } TapeLedData; 00043 00044 enum TapeLED_Mode 00045 { 00046 EMS, 00047 Normal, 00048 Launch, 00049 }; 00050 00051 enum TapeLED_Color 00052 { 00053 Black = 0x000000, 00054 // Red = 0xff0000, 00055 Green = 0x008000, 00056 Blue = 0x0000ff, 00057 White = 0xffffff, 00058 // Orange = 0xffa500, 00059 // Yellow = 0xffff00, 00060 // Purple = 0x800080, 00061 // Cyan = 0x00ffff, 00062 // Magenta = 0xff00ff, 00063 // Lime = 0x00ff00 00064 00065 00066 Dimgray = 0x696969, 00067 Gray = 0x808080, 00068 DarkGray = 0xa9a9a9, 00069 Silver = 0xc0c0c0, 00070 LightGray = 0xd3d3d3, 00071 Gainsboro = 0xdcdcdc, 00072 Whitesmoke = 0xf5f5f5, 00073 Snow = 0xfffafa, 00074 Ghostwhite = 0xf8f8ff, 00075 Floralwhite = 0xfffaf0, 00076 Linen = 0xfaf0e6, 00077 Antiquewhite = 0xfaebd7, 00078 Papayawhip = 0xffefd5, 00079 Blanchedalmond = 0xffebcd, 00080 Bisque = 0xffe4c4, 00081 Moccasin = 0xffe4b5, 00082 Navajowhite = 0xffdead, 00083 Peachpuff = 0xffdab9, 00084 Mistyrose = 0xffe4e1, 00085 Lavenderblush = 0xfff0f5, 00086 Seashell = 0xfff5ee, 00087 Oldlace = 0xfdf5e6, 00088 Ivory = 0xfffff0, 00089 Honeydew = 0xf0fff0, 00090 Mintcream = 0xf5fffa, 00091 Azure = 0xf0ffff, 00092 Aliceblue = 0xf0f8ff, 00093 Lavender = 0xe6e6fa, 00094 Lightsteelblue = 0xb0c4de, 00095 Lightslategray = 0x778899, 00096 Slategray = 0x708090, 00097 Steelblue = 0x4682b4, 00098 Royalblue = 0x4169e1, 00099 Midnightblue = 0x191970, 00100 Navy = 0x000080, 00101 Darkblue = 0x00008b, 00102 Mediumblue = 0x0000cd, 00103 Dodgerblue = 0x1e90ff, 00104 Cornflowerblue = 0x6495ed, 00105 Deepskyblue = 0x00bfff, 00106 Lightskyblue = 0x87cefa, 00107 Skyblue = 0x87ceeb, 00108 Lightblue = 0xadd8e6, 00109 Powderblue = 0xb0e0e6, 00110 Paleturquoise = 0xafeeee, 00111 // Lightcyan = 0xe0ffff, 00112 Cyan = 0x00ffff, 00113 // Aqua = 0x00ffff, 00114 Turquoise = 0x40e0d0, 00115 Mediumturquoise = 0x48d1cc, 00116 Darkturquoise = 0x00ced1, 00117 Lightseagreen = 0x20b2aa, 00118 Cabetblue = 0x5f9ea0, 00119 Darkcyan = 0x008b8b, 00120 Teal = 0x008080, 00121 Darkslategray = 0x2f4f4f, 00122 Darkgreen = 0x006400, 00123 Forestgreen = 0x228b22, 00124 Seagreen = 0x2e8b57, 00125 Mediumseagreen = 0x3cb371, 00126 Mediumaquamarine = 0x66cdaa, 00127 Darkseagreen = 0x8fbc8f, 00128 Aquamarine = 0x7fffd4, 00129 Palegreen = 0x98fb98, 00130 Lightgreen = 0x90ee90, 00131 Springgreen = 0x00ff7f, 00132 Mediumspringgreen = 0x00fa9a, 00133 Lawngreen = 0x7cfc00, 00134 Chartreuse = 0x7fff00, 00135 Greenyellow = 0xadff2f, 00136 Lime = 0x00ff00, 00137 Limegreen = 0x32cd32, 00138 Yellowgreen = 0x9acd32, 00139 Darkolivegreen = 0x556b2f, 00140 Olivedrab = 0x6b8e23, 00141 Olive = 0x808000, 00142 Darkkhaki = 0xbdb76b, 00143 Palegoldenrod = 0xeee8aa, 00144 Cornsilk = 0xfff8dc, 00145 Beige = 0xf5f5dc, 00146 Lightyellow = 0xffffe0, 00147 Lightgoldenrodyellow = 0xfafad2, 00148 Lemonchiffon = 0xfffacd, 00149 Wheat = 0xf5deb3, 00150 Burlywood = 0xdeb887, 00151 Tan = 0xd2b48c, 00152 Khaki = 0xf0e68c, 00153 Yellow = 0xffff00, 00154 Gold = 0xffd700, 00155 // Orange = 0xffa500, 00156 Orange = 0xff2500, 00157 Sandybrown = 0xf4a460, 00158 Darkorange = 0xff8c00, 00159 Goldenrod = 0xdaa520, 00160 Peru = 0xcd853f, 00161 Darkgoldenrod = 0xb8860d, 00162 Chocolate = 0xd2691e, 00163 Sienna = 0xa0522d, 00164 Saddlebrown = 0x8b4513, 00165 Marron = 0x800000, 00166 Darkred = 0x8b0000, 00167 Brown = 0xa52a2a, 00168 Firebrick = 0xb22222, 00169 Indeanred = 0xcd5c5c, 00170 Rosybrown = 0xbc8f8f, 00171 Darksalmon = 0xe9967a, 00172 Lightcoral = 0xf08080, 00173 Salmon = 0xfa8072, 00174 Lightsalmon = 0xffa07a, 00175 Coral = 0xff7f50, 00176 Tomato = 0xff6347, 00177 Orangered = 0xff4500, 00178 Red = 0xff0000, 00179 Crimson = 0xdc143c, 00180 Mediumvioletred = 0xc71585, 00181 Deeppink = 0xff1493, 00182 Hotpink = 0xff69b4, 00183 Palevioletred = 0xdb7093, 00184 Pink = 0xffc0cb, 00185 Lightpink = 0xffb6c1, 00186 Thistle = 0xd8bfd8, 00187 Magenta = 0xff00ff, 00188 // Fuchsia = 0xff00ff, 00189 Violet = 0xee82ee, 00190 Plum = 0xdda0dd, 00191 Orchid = 0xda70d6, 00192 Mediumorchid = 0xba55d3, 00193 Darkorchid = 0x9932cc, 00194 Darkviolet = 0x9400d3, 00195 Darkmagenta = 0x8b008b, 00196 Purple = 0x800080, 00197 Indigo = 0x4b0082, 00198 Darkslateblue = 0x483d8b, 00199 Blueviolet = 0x8a2be2, 00200 Mediumpurple = 0x9370db, 00201 Slateblue = 0x6a5acd, 00202 Mediumslateblue = 0x7b68ee 00203 }; 00204 00205 extern TapeLedData sendLedData; 00206 00207 #endif
Generated on Thu Aug 11 2022 13:16:31 by
