Esempio n. 1
0
        public override void makeElements()
        {
            for (int i = 0; i < 1; i++)
            {
                screenCharts.Add(null);                                     // Initialize Charts
            }
            for (int i = 0; i < 100; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix


            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 5, 1, "SCR 3");
            screenLabels[1] = Helper.CreateCRTLabel(27, 0, 30, 1, "CONSUMABLES", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            screenLabels[4] = Helper.CreateCRTLabel(0, 3, 72, 1, " STG ──────────── PART ─────────────── FUEL ─────── LOX ─────── MONO ──");

            for (int i = 5; i < 37; i++)
            {
                screenLabels[i] = Helper.CreateCRTLabel(0, i + 0.5f, 96, 1, "", 2);
            }

            screenLabels[50] = Helper.CreateCRTLabel(0, 30, 72, 1, "─────────────────────────────────────── FUEL ────── LOX ──── MONO ─────");
            screenLabels[51] = Helper.CreateCRTLabel(25, 32, 8, 1, "TOTALS:");
            screenLabels[52] = Helper.CreateCRTLabel(34, 32, 38, 1, "");

            screenLabels[55] = Helper.CreateCRTLabel(0, 32, 25, 1, "");
        }
Esempio n. 2
0
        public override void makeElements()
        {
            for (int i = 0; i < 250; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 7, 1, "SCR " + form.screenType.ToString());
            screenLabels[1] = Helper.CreateCRTLabel(30, 0, 30, 1, "NODES", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            for (int i = 1; i <= 2; i++)
            {
                for (int n = 0; n <= 19; n++)
                {
                    screenLabels[(i * 20) + n] = Helper.CreateCRTLabel((i - 1) * 36, n + 4, 35, 1, "");
                }
            }

            // SEP LINE
            screenLabels[100] = Helper.CreateCRTLabel(35, 4, 1, 1, "┬");
            for (int i = 0; i < 26; i++)
            {
                screenLabels[101 + i] = Helper.CreateCRTLabel(35, 5 + i, 1, 1, "│");
            }
        }
Esempio n. 3
0
        public override void makeElements()
        {
            for (int i = 0; i < 10; i++)
            {
                screenLabels.Add(null);                                      // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            //string str = "ABCDE\nFGHIL\nJKLMN\nOPQRS\nTUVWX\nYZ   \n01234\n56789\n.-*  \n+()";
            //string str = "ABCDEFG\nHILJKLM\nNOPQRST\nUVWXYZ \n 01234 \n 56789 \n .-*+()";

            string str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n0123456789 .-*+()";


            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 26, 2, str, 1);
            screenLabels[1] = Helper.CreateCRTLabel(0, 2, 26, 2, str, 2);
            screenLabels[2] = Helper.CreateCRTLabel(0, 4, 26, 2, str, 3);
            screenLabels[3] = Helper.CreateCRTLabel(0, 6, 26, 2, str, 4);
            screenLabels[4] = Helper.CreateCRTLabel(0, 8, 26, 2, str, 5);

            screenLabels[5] = Helper.CreateCRTLabel(26, 0, 26, 2, "ZZ", 1);
        }
Esempio n. 4
0
        public override void makeElements()
        {
            for (int i = 0; i < 100; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 5; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            for (int i = 0; i < 5; i++)
            {
                screenButtons.Add(null);                                     // Initialize Buttons
            }
            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 7, 1, "SCR " + form.screenType.ToString());
            screenLabels[1] = Helper.CreateCRTLabel(30, 0, 30, 1, "DEBUG", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            // AUTOPILOT STATUS/TOGGLE BUTTONS
            screenButtons[0] = Helper.CreateButton(0, 3, 10, 2, "AUTOPILOT", false, MocrButton.style.THIN_BORDER_LIGHT);
            screenButtons[0].setLightColor(MocrButton.color.RED);
            screenButtons[0].MouseClick += toggleAutopilot;

            screenButtons[1] = Helper.CreateButton(11, 3, 10, 2, "SAS", false, MocrButton.style.THIN_BORDER_LIGHT);
            screenButtons[1].setLightColor(MocrButton.color.AMBER);
            screenButtons[1].MouseClick += toggleSAS;

            screenButtons[2] = Helper.CreateButton(22, 3, 10, 2, "RCS", false, MocrButton.style.THIN_BORDER_LIGHT);
            screenButtons[2].setLightColor(MocrButton.color.AMBER);
            screenButtons[2].MouseClick += toggleRCS;

            screenLabels[4] = Helper.CreateLabel(0, 6, 22, 1, "DIRECTION UNIT VECTOR");
            screenLabels[5] = Helper.CreateLabel(0, 7, 3, 1, "Dx:");
            screenLabels[6] = Helper.CreateLabel(0, 8, 3, 1, "Dy:");
            screenLabels[7] = Helper.CreateLabel(0, 9, 3, 1, "Dz:");
            screenLabels[8] = Helper.CreateLabel(0, 10, 3, 1, " R:");
            screenInputs[0] = Helper.CreateInput(3, 7, 8, 1);
            screenInputs[1] = Helper.CreateInput(3, 8, 8, 1);
            screenInputs[2] = Helper.CreateInput(3, 9, 8, 1);
            screenInputs[3] = Helper.CreateInput(3, 10, 8, 1);

            screenButtons[3]             = Helper.CreateButton(0, 12, 15, 1, "SET INER DIR", false, MocrButton.style.PUSH);
            screenButtons[3].MouseClick += setINER;

            screenButtons[4]             = Helper.CreateButton(16, 12, 15, 1, "SET SURF DIR", false, MocrButton.style.PUSH);
            screenButtons[4].MouseClick += setSURF;

            screenLabels[9] = Helper.CreateLabel(0, 14, 30, 5, "SURF:\nX: UP\nY: NORTH\nZ: EAST");

            screenLabels[10] = Helper.CreateLabel(30, 14, 50, 5, "");
        }
Esempio n. 5
0
        public override void makeElements()
        {
            for (int i = 0; i < 125; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 5, 1, "SCR 7");
            screenLabels[1] = Helper.CreateCRTLabel(15, 0, 34, 1, "TEMPERATURE / ABLATORS / RADIATORS", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            screenLabels[4] = Helper.CreateCRTLabel(0, 3, 72, 1, "──────────── HOT PARTS ────────────┬────────── ABLATOR PARTS ──────────");
            screenLabels[6] = Helper.CreateCRTLabel(36, 18, 72, 1, "────────── RADIATOR PARTS ─────────");

            // CENTER DIVISOR
            for (int i = 4; i < 34; i++)
            {
                screenLabels[80 + i] = Helper.CreateCRTLabel(35, i, 1, 1, "│");
            }

            // HOT PARTS LABLES
            for (int i = 0; i < 29; i++)
            {
                screenLabels[10 + i] = Helper.CreateCRTLabel(0, 4 + i, 35, 1, "");
            }

            // ABLATOR PARTS LABLES
            for (int i = 0; i < 14; i++)
            {
                screenLabels[40 + i] = Helper.CreateCRTLabel(36, 4 + i, 35, 1, "");
            }

            // RADIATOR PARTS LABLES
            for (int i = 0; i < 14; i++)
            {
                screenLabels[60 + i] = Helper.CreateCRTLabel(36, 19 + i, 35, 1, "");
            }
        }
Esempio n. 6
0
        public override void makeElements()
        {
            for (int i = 0; i < 80; i++)
            {
                screenLabels.Add(null);                                      // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 5, 1, "SCR 6");
            screenLabels[1] = Helper.CreateCRTLabel(17, 0, 30, 1, "SPACECRAFT ELECTRICAL SYSTEMS", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            screenLabels[4] = Helper.CreateCRTLabel(0, 3, 72, 1, "─── SOLAR PANELS ──── GEN ─── SUN ─┬────────────── TOTALS ──────────────");
            screenLabels[5] = Helper.CreateCRTLabel(0, 18, 72, 1, "─────────────── STORAGE ──────────────── CAP ───── LVL ───── FLW ──────");
            screenLabels[6] = Helper.CreateCRTLabel(36, 4, 36, 1, "               GEN     SUN");
            screenLabels[7] = Helper.CreateCRTLabel(36, 5, 36, 1, "    SOLAR:   XXXX.XX    X.XX");
            screenLabels[8] = Helper.CreateCRTLabel(36, 7, 36, 1, "               CAP     LVL     FLW");
            screenLabels[9] = Helper.CreateCRTLabel(36, 8, 36, 1, "  STORAGE:  XXXX.XX XXXX.XX XXXX.XX");
            //screenLabels[7] = Helper.CreateCRTLabel(1, 15, 58, 1, "──────────── STORAGE ───────────── CAP ────── LVL ──────");

            for (int i = 4; i < 17; i++)
            {
                // FROM 10
                screenLabels[i + 6] = Helper.CreateCRTLabel(0, i, 35, 1, "");

                // FROM 50
                screenLabels[i + 46] = Helper.CreateCRTLabel(35, i, 1, 1, "│");

                // FROM 30
                screenLabels[i + 26] = Helper.CreateCRTLabel(0, i + 15, 72, 1, "");
            }
        }
Esempio n. 7
0
        public override void makeElements()
        {
            for (int i = 0; i < 100; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 12; i++)
            {
                screenIndicators.Add(null);                                      // Initialize Indicators
            }
            for (int i = 0; i < 2; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix



            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 5, 1, "SCR 2");
            screenLabels[1] = Helper.CreateCRTLabel(25, 0, 42, 1, "BOOSTER SYSTEMS", 4);             // Screen Title
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            screenLabels[4] = Helper.CreateCRTLabel(84, 1, 1, 1, "│");
            screenLabels[5] = Helper.CreateCRTLabel(0, 3, 85, 1, "───────────────── ENGINES ─────────────────────────────────────────────"); // Obrit/Position headline

            screenLabels[6] = Helper.CreateCRTLabel(0, 4, 20, 1, "");                                                                        // CURRENT STAGE

            screenLabels[7]  = Helper.CreateCRTLabel(40, 4, 1, 1, "│");
            screenLabels[8]  = Helper.CreateCRTLabel(40, 5, 1, 1, "│");
            screenLabels[9]  = Helper.CreateCRTLabel(40, 6, 1, 1, "│");
            screenLabels[10] = Helper.CreateCRTLabel(40, 7, 1, 1, "│");
            screenLabels[11] = Helper.CreateCRTLabel(40, 8, 1, 1, "│");
            screenLabels[12] = Helper.CreateCRTLabel(40, 9, 1, 1, "│");
            screenLabels[13] = Helper.CreateCRTLabel(40, 10, 1, 1, "│");
            screenLabels[14] = Helper.CreateCRTLabel(40, 11, 1, 1, "│");
            screenLabels[15] = Helper.CreateCRTLabel(40, 12, 1, 1, "│");
            screenLabels[16] = Helper.CreateCRTLabel(40, 13, 1, 1, "│");
            screenLabels[17] = Helper.CreateCRTLabel(40, 14, 1, 1, "│");
            screenLabels[18] = Helper.CreateCRTLabel(40, 15, 1, 1, "│");
            screenLabels[19] = Helper.CreateCRTLabel(40, 16, 1, 1, "│");
            screenLabels[20] = Helper.CreateCRTLabel(40, 17, 1, 1, "│");
            screenLabels[21] = Helper.CreateCRTLabel(40, 18, 1, 1, "│");
            screenLabels[22] = Helper.CreateCRTLabel(40, 19, 1, 1, "│");
            screenLabels[23] = Helper.CreateCRTLabel(40, 20, 1, 1, "│");
            screenLabels[24] = Helper.CreateCRTLabel(40, 21, 1, 1, "│");
            screenLabels[25] = Helper.CreateCRTLabel(40, 22, 1, 1, "│");
            screenLabels[26] = Helper.CreateCRTLabel(40, 23, 1, 1, "│");
            screenLabels[27] = Helper.CreateCRTLabel(40, 24, 1, 1, "│");
            screenLabels[28] = Helper.CreateCRTLabel(40, 25, 1, 1, "│");
            screenLabels[29] = Helper.CreateCRTLabel(40, 26, 1, 1, "│");
            screenLabels[30] = Helper.CreateCRTLabel(40, 27, 1, 1, "│");
            screenLabels[31] = Helper.CreateCRTLabel(40, 28, 1, 1, "│");
            screenLabels[32] = Helper.CreateCRTLabel(40, 29, 1, 1, "│");
            screenLabels[33] = Helper.CreateCRTLabel(40, 30, 1, 1, "│");



            // Engine data
            screenLabels[40] = Helper.CreateCRTLabel(41, 4, 30, 1, "      THRUST  MAX THR   vISP"); // Headline
            screenLabels[41] = Helper.CreateCRTLabel(41, 5, 30, 1, "");                             // Engine 1
            screenLabels[42] = Helper.CreateCRTLabel(41, 6, 30, 1, "");                             // Engine 2
            screenLabels[43] = Helper.CreateCRTLabel(41, 7, 30, 1, "");                             // Engine 3
            screenLabels[44] = Helper.CreateCRTLabel(41, 8, 30, 1, "");                             // Engine 4
            screenLabels[45] = Helper.CreateCRTLabel(41, 9, 30, 1, "");                             // Engine 5
            screenLabels[46] = Helper.CreateCRTLabel(41, 10, 30, 1, "");                            // Engine 6
            screenLabels[47] = Helper.CreateCRTLabel(41, 11, 30, 1, "");                            // Engine 7
            screenLabels[48] = Helper.CreateCRTLabel(41, 12, 30, 1, "");                            // Engine 8
            screenLabels[49] = Helper.CreateCRTLabel(41, 13, 30, 1, "");                            // Engine 9
            screenLabels[50] = Helper.CreateCRTLabel(41, 14, 30, 1, "");
            screenLabels[51] = Helper.CreateCRTLabel(41, 14, 30, 1, "");
            screenLabels[52] = Helper.CreateCRTLabel(41, 15, 30, 1, "");
            screenLabels[53] = Helper.CreateCRTLabel(41, 16, 30, 1, "");
            screenLabels[54] = Helper.CreateCRTLabel(41, 17, 30, 1, "");
            screenLabels[55] = Helper.CreateCRTLabel(41, 18, 30, 1, "");
            screenLabels[56] = Helper.CreateCRTLabel(41, 19, 30, 1, "");
            screenLabels[57] = Helper.CreateCRTLabel(41, 20, 30, 1, "");
            screenLabels[58] = Helper.CreateCRTLabel(41, 21, 30, 1, "");
            screenLabels[59] = Helper.CreateCRTLabel(41, 22, 30, 1, "");
            screenLabels[60] = Helper.CreateCRTLabel(41, 23, 30, 1, "");             // Engine 20

            // Weight and TWR
            screenLabels[61] = Helper.CreateCRTLabel(0, 26, 41, 1, "────────────────────────────────────────");
            screenLabels[62] = Helper.CreateCRTLabel(0, 28, 14, 1, " MASS: ");       // Weight
            screenLabels[63] = Helper.CreateCRTLabel(14, 27, 30, 1, "         CUR   LOW   MAX");
            screenLabels[64] = Helper.CreateCRTLabel(14, 28, 30, 1, "");             // TWR

            screenLabels[40] = Helper.CreateCRTLabel(20, 31, 1, 1, "│");
            screenLabels[40] = Helper.CreateCRTLabel(20, 32, 1, 1, "│");
            screenLabels[40] = Helper.CreateCRTLabel(20, 33, 1, 1, "│");
            screenLabels[40] = Helper.CreateCRTLabel(20, 34, 1, 1, "│");


            // Supplies
            screenLabels[69] = Helper.CreateCRTLabel(40, 24, 35, 1, "├─────────── SUPPLIES ────────────┐");
            screenLabels[70] = Helper.CreateCRTLabel(42, 25, 35, 1, "                     ");               // Supply line 1
            screenLabels[71] = Helper.CreateCRTLabel(42, 26, 35, 1, "                     ");               // Supply line 2
            screenLabels[72] = Helper.CreateCRTLabel(42, 27, 35, 1, "                     ");               // Supply line 3
            screenLabels[73] = Helper.CreateCRTLabel(42, 28, 35, 1, "                     ");               // Supply line 4
            screenLabels[74] = Helper.CreateCRTLabel(42, 29, 35, 1, "                     ");               // Supply line 5
            screenLabels[75] = Helper.CreateCRTLabel(42, 30, 35, 1, "                     ");               // Supply line 5
            screenLabels[78] = Helper.CreateCRTLabel(40, 31, 35, 1, "└─────────────────────────────────┘"); // Supply line 6


            // DELTA V BUDGET
            //screenLabels[80] = Helper.CreateCRTLabel(19, 30, 23, 1, "┬── DELTA V AVAIL. ──");
            screenLabels[81] = Helper.CreateCRTLabel(22, 31.5, 23, 1, "STAGE: xxxxx.x m/s");
            screenLabels[82] = Helper.CreateCRTLabel(22, 32.5, 23, 1, "TOTAL: xxxxx.x m/s");

            screenLabels[83] = Helper.CreateCRTLabel(23, 26, 15, 1, "");

            screenLabels[85] = Helper.CreateCRTLabel(0, 30, 52, 1, "── BURN DURATION ───┬── DELTA V AVAIL. ─");
            screenLabels[86] = Helper.CreateCRTLabel(0, 31.5, 10, 1, " REQ'D ΔV:");
            screenLabels[84] = Helper.CreateCRTLabel(0, 33, 20, 1, "BURN TIME:");

            screenInputs[1]      = Helper.CreateInput(99, 444, 72, 17, HorizontalAlignment.Right, true);
            screenInputs[1].Text = "0";
        }
Esempio n. 8
0
        public override void makeElements()
        {
            for (int i = 0; i < 250; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 7, 1, "SCR " + form.screenType.ToString());
            screenLabels[1] = Helper.CreateCRTLabel(26, 0, 30, 1, "FUTURE ORBITS", 4);
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            // THE FOUR ORBIT COLS
            for (int c = 0; c < 4; c++)
            {
                int b = (c * 20) + 10;
                int r = 3;
                if (c > 1)
                {
                    r = 19;
                }

                int l = 36 * c;
                if (c > 1)
                {
                    l = 36 * (c - 2);
                }

                screenLabels[b + 0]  = Helper.CreateCRTLabel(l, r + 0, 35, 1, "───────────────────────────────────");
                screenLabels[b + 1]  = Helper.CreateCRTLabel(l, r + 1, 35, 1, "");
                screenLabels[b + 2]  = Helper.CreateCRTLabel(l, r + 2, 35, 1, "");
                screenLabels[b + 3]  = Helper.CreateCRTLabel(l, r + 3, 35, 1, "");
                screenLabels[b + 4]  = Helper.CreateCRTLabel(l, r + 4, 35, 1, "");
                screenLabels[b + 5]  = Helper.CreateCRTLabel(l, r + 5, 35, 1, "");
                screenLabels[b + 6]  = Helper.CreateCRTLabel(l, r + 6, 35, 1, "");
                screenLabels[b + 7]  = Helper.CreateCRTLabel(l, r + 7, 35, 1, "");
                screenLabels[b + 8]  = Helper.CreateCRTLabel(l, r + 8, 35, 1, "");
                screenLabels[b + 9]  = Helper.CreateCRTLabel(l, r + 9, 35, 1, "");
                screenLabels[b + 10] = Helper.CreateCRTLabel(l, r + 10, 35, 1, "");
                screenLabels[b + 11] = Helper.CreateCRTLabel(l, r + 11, 35, 1, "");
                screenLabels[b + 12] = Helper.CreateCRTLabel(l, r + 12, 35, 1, "");
                screenLabels[b + 13] = Helper.CreateCRTLabel(l, r + 13, 35, 1, "");
                screenLabels[b + 14] = Helper.CreateCRTLabel(l, r + 14, 35, 1, "");
                screenLabels[b + 15] = Helper.CreateCRTLabel(l, r + 15, 35, 1, "");
            }

            // VERTICAL LINES
            for (int c = 1; c < 2; c++)
            {
                int a = (c * 30) + 157;
                int b = (c * 30) + 97;

                screenLabels[a + 3] = Helper.CreateCRTLabel((36 * c) - 1, 3, 17, 1, "┬");
                screenLabels[b + 3] = Helper.CreateCRTLabel((36 * c) - 1, 19, 17, 1, "┼");
                for (int i = 4; i < 25; i++)
                {
                    screenLabels[a + i] = Helper.CreateCRTLabel((36 * c) - 1, i + 16, 17, 1, "│");
                    screenLabels[b + i] = Helper.CreateCRTLabel((36 * c) - 1, i, 17, 1, "│");
                }
            }
        }
Esempio n. 9
0
        public override void makeElements()
        {
            for (int i = 0; i < 80; i++)
            {
                screenLabels.Add(null);                                      // Initialize Labels
            }
            for (int i = 0; i < 1; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix


            int lines = 10;
            int chars = 10;

            switch (fontSize)
            {
            case 1:
                lines = 54;
                chars = 129;
                break;

            case 2:
                lines = 44;
                chars = 92;
                break;

            case 3:
                lines = 34;
                chars = 72;
                break;

            case 4:
                lines = 30;
                chars = 64;
                break;

            case 5:
                lines = 24;
                chars = 46;
                break;
            }

            string str = "";

            for (int i = 0; i < chars; i++)
            {
                if ((i + 1) % 10 == 0)
                {
                    str += Math.Floor((i + 1) / 10d).ToString().Substring(0, 1);
                }
                else
                {
                    str += "X";
                }
            }
            for (int i = 0; i < lines; i++)
            {
                screenLabels[i] = Helper.CreateCRTLabel(0, i, chars, 1, str, fontSize);
            }
        }
Esempio n. 10
0
        public override void makeElements()
        {
            for (int i = 0; i < 120; i++)
            {
                screenLabels.Add(null);                                       // Initialize Labels
            }
            for (int i = 0; i < 12; i++)
            {
                screenIndicators.Add(null);                                      // Initialize Indicators
            }
            for (int i = 0; i < 2; i++)
            {
                screenInputs.Add(null);                                     // Initialize Inputs
            }
            screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2);             // Every page must have an input to capture keypresses on Unix

            screenLabels[0] = Helper.CreateCRTLabel(0, 0, 7, 1, "SCR " + form.screenType.ToString());
            screenLabels[1] = Helper.CreateCRTLabel(27, 0, 42, 1, "ORBIT DATA", 4);             // Screen Title
            screenLabels[2] = Helper.CreateCRTLabel(0, 1.5, 12, 1, "LT: XX:XX:XX");
            screenLabels[3] = Helper.CreateCRTLabel(29, 1.5, 14, 1, "MET: XXX:XX:XX");

            screenLabels[4]   = Helper.CreateCRTLabel(0, 3, 120, 1, "───────── ORBITAL ELEMENTS ──────────┬────── STATE VECTORS (INER) ──────");
            screenLabels[100] = Helper.CreateCRTLabel(37, 4, 1, 1, "│");
            screenLabels[101] = Helper.CreateCRTLabel(37, 5, 1, 1, "│");
            screenLabels[102] = Helper.CreateCRTLabel(37, 6, 1, 1, "│");
            screenLabels[103] = Helper.CreateCRTLabel(37, 7, 1, 1, "│");
            screenLabels[104] = Helper.CreateCRTLabel(37, 8, 1, 1, "│");

            // ORBITAL ELEMENTS
            screenLabels[10] = Helper.CreateCRTLabel(1, 5, 36, 1, "     ECCENTRICITY: ");
            screenLabels[11] = Helper.CreateCRTLabel(1, 6, 36, 1, "   SEMIMAJOR AXIS: ");
            screenLabels[12] = Helper.CreateCRTLabel(1, 7, 36, 1, "      INCLINATION: ");
            screenLabels[13] = Helper.CreateCRTLabel(1, 8, 36, 1, "LONGITUDE OF NODE: ");
            screenLabels[14] = Helper.CreateCRTLabel(1, 9, 36, 1, "ARG. OF PERIAPSIS: ");
            screenLabels[15] = Helper.CreateCRTLabel(1, 10, 36, 1, "     TRUE ANOMALY: ");
            screenLabels[16] = Helper.CreateCRTLabel(1, 12, 36, 1, "       ORB PERIOD: HH:MM:SS.sss");
            screenLabels[17] = Helper.CreateCRTLabel(1, 13, 36, 1, "       SOI CHANGE: HH:MM:SS.sss");
            screenLabels[18] = Helper.CreateCRTLabel(1, 14, 36, 1, "        ORB SPEED:    XXXXX.XX");


            // FLIGHT ELEMENTS
            screenLabels[20] = Helper.CreateCRTLabel(0, 16, 37, 1, "────────── FLIGHT ELEMENTS ──────────");
            screenLabels[21] = Helper.CreateCRTLabel(1, 18, 36, 1, "         ALTITUDE: ");
            screenLabels[22] = Helper.CreateCRTLabel(1, 19, 36, 1, "         APOAPSIS: ");
            screenLabels[23] = Helper.CreateCRTLabel(1, 20, 36, 1, "        PERIAPSIS: ");
            screenLabels[24] = Helper.CreateCRTLabel(1, 21, 36, 1, " TIME TO APOAPSIS: ");
            screenLabels[25] = Helper.CreateCRTLabel(1, 22, 36, 1, "TIME TO PERIAPSIS: ");

            screenLabels[29] = Helper.CreateCRTLabel(0, 24, 72, 1, "──── DIRECTION VECTORS ─────────────────────────────────────────────────");

            // STATE VECTORS
            screenLabels[32] = Helper.CreateCRTLabel(40, 5, 14, 1, "Rx: +XXXX.XXX");
            screenLabels[33] = Helper.CreateCRTLabel(40, 6, 14, 1, "Ry: +XXXX.XXX");
            screenLabels[34] = Helper.CreateCRTLabel(40, 7, 14, 1, "Rz: +XXXX.XXX");

            // SPEED VECTORS
            screenLabels[41] = Helper.CreateCRTLabel(55, 5, 14, 1, "Vx: +XXXX.XXX");
            screenLabels[42] = Helper.CreateCRTLabel(55, 6, 14, 1, "Vy: +XXXX.XXX");
            screenLabels[43] = Helper.CreateCRTLabel(55, 7, 14, 1, "Vz: -XXXX.XXX");

            // ROTATION
            screenLabels[49] = Helper.CreateCRTLabel(37, 10, 37, 1, "│                                 ");
            screenLabels[50] = Helper.CreateCRTLabel(37, 9, 37, 1, "├──────────── ROTATION ────────────");
            screenLabels[51] = Helper.CreateCRTLabel(37, 11, 37, 1, "│            ROLL   PITCH    YAW  ");
            screenLabels[52] = Helper.CreateCRTLabel(37, 12, 37, 1, "│ INER ATT: XXX.XX  XXX.XX  XXX.XX");
            screenLabels[53] = Helper.CreateCRTLabel(37, 13, 37, 1, "│    BURN : XXX.XX  XXX.XX  XXX.XX");
            screenLabels[54] = Helper.CreateCRTLabel(37, 14, 37, 1, "│    REF  : XXX.XX  XXX.XX  XXX.XX");
            screenLabels[55] = Helper.CreateCRTLabel(37, 15, 37, 1, "│    FDAI : XXX.XX  XXX.XX  XXX.XX");
            screenLabels[56] = Helper.CreateCRTLabel(37, 16, 37, 1, "┤          ───────────────────────");
            screenLabels[57] = Helper.CreateCRTLabel(37, 17, 37, 1, "│ SURF ATT: XXX.XX  XXX.XX  XXX.XX");
            screenLabels[58] = Helper.CreateCRTLabel(37, 18, 37, 1, "│    REF  : XXX.XX  XXX.XX  XXX.XX");
            screenLabels[59] = Helper.CreateCRTLabel(37, 19, 37, 1, "│    FDAI : XXX.XX  XXX.XX  XXX.XX");
            screenLabels[60] = Helper.CreateCRTLabel(37, 20, 37, 1, "│                                 ");
            screenLabels[61] = Helper.CreateCRTLabel(37, 21, 37, 1, "├──────────────────────────────────");

            // DIRECTION VECTORS
            screenLabels[70] = Helper.CreateCRTLabel(1, 25, 71, 1, "           ┌─────────── INER ───────────┐┌─────────── SURF ───────────┐");
            screenLabels[71] = Helper.CreateCRTLabel(1, 26, 71, 1, "               ROLL     PITCH     YAW        ROLL     PITCH     YAW");
            screenLabels[72] = Helper.CreateCRTLabel(1, 27, 11, 1, "  PROGRADE:");
            screenLabels[73] = Helper.CreateCRTLabel(1, 28, 11, 1, "RETROGRADE:");
            screenLabels[74] = Helper.CreateCRTLabel(1, 29, 11, 1, "    NORMAL:");
            screenLabels[75] = Helper.CreateCRTLabel(1, 30, 11, 1, "ANTINORMAL:");
            screenLabels[76] = Helper.CreateCRTLabel(1, 31, 11, 1, " RADIAL IN:");
            screenLabels[77] = Helper.CreateCRTLabel(1, 32, 11, 1, "RADIAL OUT:");
            //screenLabels[78] = Helper.CreateCRTLabel(1, 33, 11, 1, "    TARGET:");

            screenLabels[82] = Helper.CreateCRTLabel(13, 27, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[83] = Helper.CreateCRTLabel(13, 28, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[84] = Helper.CreateCRTLabel(13, 29, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[85] = Helper.CreateCRTLabel(13, 30, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[86] = Helper.CreateCRTLabel(13, 31, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[87] = Helper.CreateCRTLabel(13, 32, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            //screenLabels[88] = Helper.CreateCRTLabel(13, 33, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");

            screenLabels[92] = Helper.CreateCRTLabel(43, 27, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[93] = Helper.CreateCRTLabel(43, 28, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[94] = Helper.CreateCRTLabel(43, 29, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[95] = Helper.CreateCRTLabel(43, 30, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[96] = Helper.CreateCRTLabel(43, 31, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            screenLabels[97] = Helper.CreateCRTLabel(43, 32, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
            //screenLabels[98] = Helper.CreateCRTLabel(43, 33, 28, 1, "XXXX.XXX  XXXX.XXX  XXXX.XXX");
        }