da
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 typedef union 00019 { 00020 struct 00021 { 00022 unsigned int blue : 8; 00023 unsigned int green : 8; 00024 unsigned int red : 8; 00025 unsigned int : 8; 00026 }; 00027 uint32_t code; 00028 } TapeLedData; 00029 00030 enum TapeLED_Mode 00031 { 00032 EMS, 00033 Normal, 00034 Launch, 00035 }; 00036 00037 enum TapeLED_Color 00038 { 00039 Black = 0x000000, 00040 // Red = 0xff0000, 00041 Green = 0x008000, 00042 Blue = 0x0000ff, 00043 White = 0xffffff, 00044 // Orange = 0xffa500, 00045 // Yellow = 0xffff00, 00046 // Purple = 0x800080, 00047 // Cyan = 0x00ffff, 00048 // Magenta = 0xff00ff, 00049 // Lime = 0x00ff00 00050 00051 00052 Dimgray = 0x696969, 00053 Gray = 0x808080, 00054 DarkGray = 0xa9a9a9, 00055 Silver = 0xc0c0c0, 00056 LightGray = 0xd3d3d3, 00057 Gainsboro = 0xdcdcdc, 00058 Whitesmoke = 0xf5f5f5, 00059 Snow = 0xfffafa, 00060 Ghostwhite = 0xf8f8ff, 00061 Floralwhite = 0xfffaf0, 00062 Linen = 0xfaf0e6, 00063 Antiquewhite = 0xfaebd7, 00064 Papayawhip = 0xffefd5, 00065 Blanchedalmond = 0xffebcd, 00066 Bisque = 0xffe4c4, 00067 Moccasin = 0xffe4b5, 00068 Navajowhite = 0xffdead, 00069 Peachpuff = 0xffdab9, 00070 Mistyrose = 0xffe4e1, 00071 Lavenderblush = 0xfff0f5, 00072 Seashell = 0xfff5ee, 00073 Oldlace = 0xfdf5e6, 00074 Ivory = 0xfffff0, 00075 Honeydew = 0xf0fff0, 00076 Mintcream = 0xf5fffa, 00077 Azure = 0xf0ffff, 00078 Aliceblue = 0xf0f8ff, 00079 Lavender = 0xe6e6fa, 00080 Lightsteelblue = 0xb0c4de, 00081 Lightslategray = 0x778899, 00082 Slategray = 0x708090, 00083 Steelblue = 0x4682b4, 00084 Royalblue = 0x4169e1, 00085 Midnightblue = 0x191970, 00086 Navy = 0x000080, 00087 Darkblue = 0x00008b, 00088 Mediumblue = 0x0000cd, 00089 Dodgerblue = 0x1e90ff, 00090 Cornflowerblue = 0x6495ed, 00091 Deepskyblue = 0x00bfff, 00092 Lightskyblue = 0x87cefa, 00093 Skyblue = 0x87ceeb, 00094 Lightblue = 0xadd8e6, 00095 Powderblue = 0xb0e0e6, 00096 Paleturquoise = 0xafeeee, 00097 // Lightcyan = 0xe0ffff, 00098 Cyan = 0x00ffff, 00099 // Aqua = 0x00ffff, 00100 Turquoise = 0x40e0d0, 00101 Mediumturquoise = 0x48d1cc, 00102 Darkturquoise = 0x00ced1, 00103 Lightseagreen = 0x20b2aa, 00104 Cabetblue = 0x5f9ea0, 00105 Darkcyan = 0x008b8b, 00106 Teal = 0x008080, 00107 Darkslategray = 0x2f4f4f, 00108 Darkgreen = 0x006400, 00109 Forestgreen = 0x228b22, 00110 Seagreen = 0x2e8b57, 00111 Mediumseagreen = 0x3cb371, 00112 Mediumaquamarine = 0x66cdaa, 00113 Darkseagreen = 0x8fbc8f, 00114 Aquamarine = 0x7fffd4, 00115 Palegreen = 0x98fb98, 00116 Lightgreen = 0x90ee90, 00117 Springgreen = 0x00ff7f, 00118 Mediumspringgreen = 0x00fa9a, 00119 Lawngreen = 0x7cfc00, 00120 Chartreuse = 0x7fff00, 00121 Greenyellow = 0xadff2f, 00122 Lime = 0x00ff00, 00123 Limegreen = 0x32cd32, 00124 Yellowgreen = 0x9acd32, 00125 Darkolivegreen = 0x556b2f, 00126 Olivedrab = 0x6b8e23, 00127 Olive = 0x808000, 00128 Darkkhaki = 0xbdb76b, 00129 Palegoldenrod = 0xeee8aa, 00130 Cornsilk = 0xfff8dc, 00131 Beige = 0xf5f5dc, 00132 Lightyellow = 0xffffe0, 00133 Lightgoldenrodyellow = 0xfafad2, 00134 Lemonchiffon = 0xfffacd, 00135 Wheat = 0xf5deb3, 00136 Burlywood = 0xdeb887, 00137 Tan = 0xd2b48c, 00138 Khaki = 0xf0e68c, 00139 Yellow = 0xffff00, 00140 Gold = 0xffd700, 00141 // Orange = 0xffa500, 00142 Orange = 0xff2500, 00143 Sandybrown = 0xf4a460, 00144 Darkorange = 0xff8c00, 00145 Goldenrod = 0xdaa520, 00146 Peru = 0xcd853f, 00147 Darkgoldenrod = 0xb8860d, 00148 Chocolate = 0xd2691e, 00149 Sienna = 0xa0522d, 00150 Saddlebrown = 0x8b4513, 00151 Marron = 0x800000, 00152 Darkred = 0x8b0000, 00153 Brown = 0xa52a2a, 00154 Firebrick = 0xb22222, 00155 Indeanred = 0xcd5c5c, 00156 Rosybrown = 0xbc8f8f, 00157 Darksalmon = 0xe9967a, 00158 Lightcoral = 0xf08080, 00159 Salmon = 0xfa8072, 00160 Lightsalmon = 0xffa07a, 00161 Coral = 0xff7f50, 00162 Tomato = 0xff6347, 00163 Orangered = 0xff4500, 00164 Red = 0xff0000, 00165 Crimson = 0xdc143c, 00166 Mediumvioletred = 0xc71585, 00167 Deeppink = 0xff1493, 00168 Hotpink = 0xff69b4, 00169 Palevioletred = 0xdb7093, 00170 Pink = 0xffc0cb, 00171 Lightpink = 0xffb6c1, 00172 Thistle = 0xd8bfd8, 00173 Magenta = 0xff00ff, 00174 // Fuchsia = 0xff00ff, 00175 Violet = 0xee82ee, 00176 Plum = 0xdda0dd, 00177 Orchid = 0xda70d6, 00178 Mediumorchid = 0xba55d3, 00179 Darkorchid = 0x9932cc, 00180 Darkviolet = 0x9400d3, 00181 Darkmagenta = 0x8b008b, 00182 Purple = 0x800080, 00183 Indigo = 0x4b0082, 00184 Darkslateblue = 0x483d8b, 00185 Blueviolet = 0x8a2be2, 00186 Mediumpurple = 0x9370db, 00187 Slateblue = 0x6a5acd, 00188 Mediumslateblue = 0x7b68ee 00189 }; 00190 00191 extern TapeLedData sendLedData; 00192 00193 #endif
Generated on Wed Jul 13 2022 13:45:54 by
1.7.2