public DataForGUI() { this.MAX_CHAN = 12; this.MEMS_State = -1; this.PRN_Arr_PRNforSolution = new int[MAX_PRN]; this.PRN_Arr_CNO = new float[MAX_PRN]; this.PRN_Arr_Azimuth = new float[MAX_PRN]; this.PRN_Arr_Elev = new float[MAX_PRN]; this.PRN_Arr_ID = new byte[MAX_PRN]; this.PRN_Arr_State = new ushort[MAX_PRN]; this.PRN_Arr_Info = new ushort[MAX_PRN]; this.PRN_Arr_Status = new uint[MAX_PRN]; this.PRN_Arr_UseCGEE = new bool[MAX_PRN]; this.PRN_Arr_UseSGEE = new bool[MAX_PRN]; this.SignalDataForGUI = new SignalData(12); this.SignalDataForGUI_All = new SignalData(60); this.Positions = new PositionInfo(); this.TruePositions = new PositionInfo(); }
public DataForGUI() { this.MAX_CHAN = 12; this.MEMS_State = -1; this.PRN_Arr_PRNforSolution = new int[MAX_PRN]; this.PRN_Arr_CNO = new float[MAX_PRN]; this.PRN_Arr_Azimuth = new float[MAX_PRN]; this.PRN_Arr_Elev = new float[MAX_PRN]; this.PRN_Arr_ID = new byte[MAX_PRN]; this.PRN_Arr_State = new ushort[MAX_PRN]; this.PRN_Arr_Info = new ushort[MAX_PRN]; this.PRN_Arr_Status = new uint[MAX_PRN]; this.PRN_Arr_UseCGEE = new bool[MAX_PRN]; this.PRN_Arr_UseSGEE = new bool[MAX_PRN]; this.SignalDataForGUI = new SignalData(12); this.SignalDataForGUI_All = new SignalData(60); this.Positions = new PositionInfo(); this.TruePositions = new PositionInfo(); }
private void helper_Paint_Bar(Graphics g, SignalData sd, int secIndex, int i, int k, Brush brush) { int num = (this.startY + ((k * this.boxHeight) / 12)) - 12; g.DrawString(sd.CHAN_Arr_ID[i].ToString("00"), fn, brush, 0f, (float) num); g.DrawString(sd.CHAN_Arr_CNO[i].ToString("00.0"), fn, brush, cnoHorzStartPoint, (float) num); g.DrawString(sd.CHAN_Arr_State[i].ToString("X"), fn, brush, stateHorzStartPoint + 5f, (float) num); g.DrawString(sd.CHAN_Arr_Elev[i].ToString("00.0"), fn, brush, elevStartPoint, (float) num); g.DrawString(sd.CHAN_Arr_Azimuth[i].ToString("000.0"), fn, brush, azimStartPoint, (float) num); int num2 = (signalRegHorzStartPoint + ((secIndex * this.boxWidth) / 5)) + 5; int num3 = this.boxHeight / 12; int y = this.startY + ((k * this.boxHeight) / 12); int x = num2; for (int j = 0; j < 10; j++) { int num7 = sd.CHAN_MEAS_CNO[i][j]; int num8 = y - ((num3 * num7) / cno_MAX); Point point = new Point(x, y); Point point2 = new Point(x, num8); Pen pen = new Pen(brush); g.DrawLine(pen, point, point2); x += this.boxWidth / 50; } }
private void draw_1sec_data_glonass(Graphics g, SignalData sd, int secIndex) { int k = 1; for (int i = 0; i < 60; i++) { if ((sd.CHAN_Arr_ID_All[i] != 0) && ((sd.CHAN_SV_Info[i] & 0xe000) == 0x40)) { if (Math.Abs(sd.CHAN_Arr_CNO_All[i]) <= 0.001) { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.Red); } else if ((this.comm.dataGui_ALL.PRN_Arr_PRNforSolution[sd.CHAN_Arr_ID[i]] == 1) && ((this.comm.dataGui_ALL.PRN_Arr_Status[i] & 0x8000) != 0)) { if (this.comm.dataGui_ALL.PRN_Arr_UseCGEE[sd.CHAN_Arr_ID_All[i]] || this.comm.dataGui_ALL.PRN_Arr_UseSGEE[sd.CHAN_Arr_ID_All[i]]) { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.Purple); } else if (this.comm.ABPModeIndicator) { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.DarkOrange); } else { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.DarkGreen); } } else if (this.comm.dataGui_ALL.Positions.PositionList.Count > 0) { byte num3 = (byte) (((PositionInfo.PositionStruct) this.comm.dataGui.Positions.PositionList[this.comm.dataGui.Positions.PositionList.Count - 1]).NavType & 0x80); if ((sd.CHAN_Arr_ID_All[i] > 100) && (num3 == 0x80)) { this.helper_Paint_Bar(g, sd, secIndex, i, 12, Brushes.DeepSkyBlue); } else { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.Blue); } } else { this.helper_Paint_Bar(g, sd, secIndex, i, k, Brushes.Blue); } k++; } } }