大季 矢花 / Mbed 2 deprecated MainBoard2019_Master_9_18_Maruyama

Dependencies:   mbed TrapezoidControl QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Process.h Source File

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