public void paint(GLCD lcd) { draw_course(lcd); draw_horizon(lcd); lcd.DrawString(3, 2, "Spd"); lcd.DrawString(24, 2, string.Format("{0:f0}", aspd)); lcd.DrawString(3, 10, "Thr"); lcd.DrawString(24, 10, string.Format("{0:p0}", thr)); //lcd.DrawString(3, 10, "GS"); //lcd.DrawString(24, 10, string.Format("{0:f0}", gspd)); lcd.DrawString(54, 2, "Dis"); lcd.DrawString(54, 10, "Alt"); lcd.DrawString(75, 2, string.Format("{0:f0}", dis)); lcd.DrawString(75, 10, string.Format("{0:f0}", alt)); lcd.DrawString(3, 20 /*127 - 8*/, DateTime.Now.ToString("mm:ss")); lcd.DrawString(111, 2, "Vol"); lcd.DrawString(111, 10, "Amp"); lcd.DrawString(132, 2, string.Format("{0:f1}", vol)); lcd.DrawString(132, 10, string.Format("{0:f1}", amp)); lcd.DrawString(3, 127 - 8 * 2, string.Format("{0:f6}", lat)); lcd.DrawString(3, 127 - 8, string.Format("{0:f6}", lon)); lcd.DrawChar(81, 127 - 8 * 2, 0xf0); lcd.DrawString(96, 127 - 8 * 2, "6"); lcd.DrawString(96, 127 - 8, "2D"); lcd.DrawString(120, 127 - 8 * 2, "Auto"); lcd.DrawString(126, 127 - 8, "360>2"); lcd.FillRectange(54, 57, 53, 9, Color.Blue); lcd.DrawString(57, 58, "Disarmed"); }
public void paint(GLCD lcd) { draw_course(lcd); draw_horizon(lcd); lcd.DrawString(3, 2, "Spd"); lcd.DrawString(24, 2, string.Format("{0:f0}", aspd)); lcd.DrawString(3, 10, "Thr"); lcd.DrawString(24, 10, string.Format("{0:p0}", thr)); //lcd.DrawString(3, 10, "GS"); //lcd.DrawString(24, 10, string.Format("{0:f0}", gspd)); lcd.DrawString(54, 2, "Dis"); lcd.DrawString(54, 10, "Alt"); lcd.DrawString(75, 2, string.Format("{0:f0}", dis)); lcd.DrawString(75, 10, string.Format("{0:f0}", alt)); lcd.DrawString(3, 20/*127 - 8*/, DateTime.Now.ToString("mm:ss")); lcd.DrawString(111, 2, "Vol"); lcd.DrawString(111, 10, "Amp"); lcd.DrawString(132, 2, string.Format("{0:f1}", vol)); lcd.DrawString(132, 10, string.Format("{0:f1}", amp)); lcd.DrawString(3, 127 - 8 * 2, string.Format("{0:f6}", lat)); lcd.DrawString(3, 127 - 8, string.Format("{0:f6}", lon)); lcd.DrawChar(81, 127 - 8 * 2, 0xf0); lcd.DrawString(96, 127 - 8 * 2, "6"); lcd.DrawString(96, 127 - 8, "2D"); lcd.DrawString(120, 127 - 8 * 2, "Auto"); lcd.DrawString(126, 127 - 8, "360>2"); lcd.FillRectange(54, 57, 53, 9, Color.Blue); lcd.DrawString(57, 58, "Disarmed"); }
public void paint(GLCD lcd) { /* lcd.DrawString(3, 2, "Servo Setup"); lcd.DrawHLine(3, 12, 152); lcd.DrawString(9, 20, "Pan"); //lcd.DrawHLine(9, 23, 30); lcd.DrawString(15, 30, "Cen"); //lcd.DrawRectange(40, 31, 105, 5); draw_processbar(lcd, 40, 31, 105, 5, 2200, 800, 1500); lcd.DrawString(15, 40, "Max"); //lcd.DrawRectange(40, 41, 105, 5); draw_processbar(lcd, 40, 41, 105, 5, 2200, 800, 2000); lcd.DrawString(9, 60, "Tilt"); lcd.DrawString(15, 60 + 10, "Cen"); //lcd.DrawRectange(40, 71, 105, 5); draw_processbar(lcd, 40, 71, 105, 5, 1800, 1200, 1500); lcd.DrawString(15, 60 + 10 * 2, "Max"); //lcd.DrawRectange(40, 60 + 10 * 2 + 1, 105, 5); draw_processbar(lcd, 40, 81, 105, 5, 2200, 800, 2000); lcd.DrawString(15, 60 + 10 * 3, "Min"); //lcd.DrawRectange(40, 60 + 10 * 3 + 1, 105, 5); draw_processbar(lcd, 40, 91, 105, 5, 2200, 800, 1000); lcd.DrawString(15, 60 + 10 * 4, "Rev"); lcd.DrawRectange(40, 60 + 10 * 4 + 1, 105, 5); lcd.DrawString(15, 60 + 10 * 5, "90"); //lcd.DrawRectange(40, 60 + 10 * 5 + 1, 105, 5); draw_processbar(lcd, 40, 111, 105, 5, 2200, 800, 2000); */ lcd.DrawString(3, 2, "Setup"); lcd.DrawHLine(3, 12, 152); lcd.DrawString(3, 20, "Tilt Servo"); lcd.DrawString(15, 30, "Cen"); lcd.DrawString(39, 30, "+150"); lcd.DrawString(81, 30, "90"); lcd.DrawChar(93, 30, 0x80); lcd.DrawString(105, 30, "+150"); lcd.DrawString(15, 40, "Min"); lcd.DrawString(39, 40, "-100"); lcd.DrawString(81, 40, "Max"); lcd.DrawString(105, 40, "-200"); //lcd.DrawString(60, 40, "Rev"); //lcd.DrawRectange(81, 41, 5, 5); lcd.DrawString(3, 55, "Compass"); lcd.DrawString(15, 65, "Declination -175"); lcd.DrawChar(15 + 6*16, 65, 0x80); lcd.DrawString(15 + 6*17, 65, "30'"); lcd.DrawString(15, 75, "Calibrate"); lcd.DrawRectange(87, 76, 5, 5); lcd.DrawString(3, 90, "Accel."); lcd.DrawString(15, 100, "Calibrate"); lcd.DrawRectange(87, 101, 5, 5); //lcd.DrawString(60, 30, "Max 2200"); }
public void paint(GLCD lcd) { /* * lcd.DrawString(3, 2, "Servo Setup"); * lcd.DrawHLine(3, 12, 152); * * lcd.DrawString(9, 20, "Pan"); * //lcd.DrawHLine(9, 23, 30); * lcd.DrawString(15, 30, "Cen"); * //lcd.DrawRectange(40, 31, 105, 5); * draw_processbar(lcd, 40, 31, 105, 5, 2200, 800, 1500); * lcd.DrawString(15, 40, "Max"); * //lcd.DrawRectange(40, 41, 105, 5); * draw_processbar(lcd, 40, 41, 105, 5, 2200, 800, 2000); * * lcd.DrawString(9, 60, "Tilt"); * lcd.DrawString(15, 60 + 10, "Cen"); * //lcd.DrawRectange(40, 71, 105, 5); * draw_processbar(lcd, 40, 71, 105, 5, 1800, 1200, 1500); * * lcd.DrawString(15, 60 + 10 * 2, "Max"); * //lcd.DrawRectange(40, 60 + 10 * 2 + 1, 105, 5); * draw_processbar(lcd, 40, 81, 105, 5, 2200, 800, 2000); * * lcd.DrawString(15, 60 + 10 * 3, "Min"); * //lcd.DrawRectange(40, 60 + 10 * 3 + 1, 105, 5); * draw_processbar(lcd, 40, 91, 105, 5, 2200, 800, 1000); * lcd.DrawString(15, 60 + 10 * 4, "Rev"); * lcd.DrawRectange(40, 60 + 10 * 4 + 1, 105, 5); * lcd.DrawString(15, 60 + 10 * 5, "90"); * //lcd.DrawRectange(40, 60 + 10 * 5 + 1, 105, 5); * draw_processbar(lcd, 40, 111, 105, 5, 2200, 800, 2000); */ lcd.DrawString(3, 2, "Setup"); lcd.DrawHLine(3, 12, 152); lcd.DrawString(3, 20, "Tilt Servo"); lcd.DrawString(15, 30, "Cen"); lcd.DrawString(39, 30, "+150"); lcd.DrawString(81, 30, "90"); lcd.DrawChar(93, 30, 0x80); lcd.DrawString(105, 30, "+150"); lcd.DrawString(15, 40, "Min"); lcd.DrawString(39, 40, "-100"); lcd.DrawString(81, 40, "Max"); lcd.DrawString(105, 40, "-200"); //lcd.DrawString(60, 40, "Rev"); //lcd.DrawRectange(81, 41, 5, 5); lcd.DrawString(3, 55, "Compass"); lcd.DrawString(15, 65, "Declination -175"); lcd.DrawChar(15 + 6 * 16, 65, 0x80); lcd.DrawString(15 + 6 * 17, 65, "30'"); lcd.DrawString(15, 75, "Calibrate"); lcd.DrawRectange(87, 76, 5, 5); lcd.DrawString(3, 90, "Accel."); lcd.DrawString(15, 100, "Calibrate"); lcd.DrawRectange(87, 101, 5, 5); //lcd.DrawString(60, 30, "Max 2200"); }