示例#1
0
 public frmMapIt(CommunicationManager mainComWin)
 {
     this._html_file = string.Empty;
     this.IsRealTime = true;
     this.InitializeComponent();
     this.CommWindow = mainComWin;
 }
示例#2
0
 public frmCommNavAccVsTime(int length, double[] lat, double[] lon, double[] alt, double[] tows)
 {
     this._refLat = 37.375062;
     this._refLon = -121.914245;
     this._refAlt = -13.8;
     this.comm_forFile = new CommunicationManager("");
     this.IsRealTime = false;
     this._length = length;
     this._lat = new double[length];
     this._lon = new double[length];
     this._alt = new double[length];
     this._tows = new double[length];
     this._tows_Back = new double[length];
     for (int i = 0; i < length; i++)
     {
         this._lat[i] = lat[i];
         this._lon[i] = lon[i];
         this._alt[i] = alt[i];
         this._tows[i] = tows[i];
         this._tows_Back[i] = tows[i];
     }
     this.comm_forFile.RxCtrl.RxNavData.RefLat = this._refLat;
     this.comm_forFile.RxCtrl.RxNavData.RefLon = this._refLon;
     this.comm_forFile.RxCtrl.RxNavData.RefAlt = this._refAlt;
     this.InitializeComponent();
 }
 public frmCommDisplayBufferSizeUpdate(CommunicationManager parentCommWindow)
 {
     this.CUC = new CommonUtilsClass();
     this.InitializeComponent();
     this.CommWindow = parentCommWindow;
     this.frmCommOpenBufferSizeTxtBox.Text = this.CUC.DisplayBuffer.ToString();
 }
示例#4
0
 private void clearBuffer(ref CommunicationManager targetComm)
 {
     this.clearCommands();
     this.setFlagStatus(ref targetComm);
     if (targetComm != null)
     {
         targetComm.ToSendMsgQueue.Clear();
     }
 }
示例#5
0
 public frmCommNavAccVsTime(CommunicationManager mainComWin)
 {
     this._refLat = 37.375062;
     this._refLon = -121.914245;
     this._refAlt = -13.8;
     this.IsRealTime = true;
     this.InitializeComponent();
     this.CommWindow = mainComWin;
 }
示例#6
0
 public frmMEMSView(CommunicationManager mainComWin)
 {
     this.tb_minRange = -2048;
     this.tb_maxRange = 0x7ff;
     this.MEMS_setup();
     this.InitializeComponent();
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
 }
示例#7
0
 public frmSatelliteStats(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     _numberOpen++;
     this._persistedWindowName = "Satellite Satistics Window " + _numberOpen.ToString();
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
     this.CSS = new CSvStats();
     this.CSS.ClearAllData();
     this.CommWindow.DisplayPanelSatelliteStats.Invalidate();
 }
 public frmInterferenceReport(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
     this.zedGraphControl1.GraphPane = this.myPane;
     this.cwConfigComboBox.SelectedIndex = 0;
     this.CMC = new CommMgrClass();
     this.refreshTimer.Elapsed += new ElapsedEventHandler(this.updateSignalWindow);
     this.refreshTimer.Interval = 2000.0;
     this.refreshTimer.AutoReset = true;
     this.refreshTimer.Start();
 }
示例#9
0
 public frmEncryCtrl(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     encryptCtrlFormHandle = this;
     this.currentDirInfo = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory);
     this.InstalledDirectory = this.currentDirInfo.Parent.FullName;
     _EncryCtrlRestoredFilePath = ConfigurationManager.AppSettings["InstalledDirectory"] + @"\Config\EncryptControlRestore.xml";
     this.CommWindow = mainComWin;
     this.CMC = new CommMgrClass();
     this.DrawTheEncryptControl(this.EncryCtrlDataGridView);
     this.AddRowNamesToEncryptControl(this.EncryCtrlDataGridView);
     this.SetAllCheckBoxesToAValue(this.EncryCtrlDataGridView, false);
 }
示例#10
0
 public frmMaskMode(CommunicationManager parentComm)
 {
     this.degMode = 4;
     this.altMode = 2;
     this.InitializeComponent();
     this.comm = parentComm;
     if (this.comm.ProductFamily == CommonClass.ProductType.GSD4t)
     {
         this.ABP_ckBx.Visible = false;
     }
     else
     {
         this.ABP_ckBx.Visible = true;
     }
     this.TrackSmoothing_ckBx.Checked = false;
     this.AltHoldAuto_rBtn.Checked = true;
     this.VelocityDRmode_chkBx.Checked = true;
     this.AltHoldAuto_rBtn.Checked = true;
     this.lastCompAlt_ckBx.Checked = true;
     this.ABP_ckBx.Checked = false;
 }
 public frmTrackerICConfiguration(CommunicationManager commMgr)
 {
     this.InitializeComponent();
     this.comm = commMgr;
 }
示例#12
0
 private void setAsDefault(ref CommunicationManager targetComm)
 {
     try
     {
         if (this.frmRxInitCmdRefLocationComboBox.Text != "USER_DEFINED")
         {
             targetComm.m_NavData.SetDefaultReferencePosition(this.frmRxInitCmdRefLocationComboBox.Text, this.frmRxInitCmdRefLatitudeTxtBox.Text, this.frmRxInitCmdRefLongitudeTxtBox.Text, this.frmRxInitCmdRefAltitudeTxtBox.Text, false);
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message + "\nMost likely invalid reference name", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
示例#13
0
 private void OpenLoggingFile(CommunicationManager comm)
 {
     string inFilename = string.Empty;
     string path = clsGlobal.InstalledDirectory + @"\Log";
     if (comm.IsSourceDeviceOpen())
     {
         if (this.logFileName.Text.Length == 0)
         {
             if (!Directory.Exists(path))
             {
                 Directory.CreateDirectory(path);
             }
             inFilename = path + @"\SiRFLive.log";
             this.logFileName.Text = inFilename;
         }
         else
         {
             Regex regex = new Regex("^(([a-zA-Z]\\:)|(\\\\))(\\\\{1}|((\\\\{1})[^\\\\]([^/:*?<>\"|]*))+)$");
             if (!regex.IsMatch(this.logFileName.Text))
             {
                 MessageBox.Show("Invalid File Path");
                 return;
             }
             inFilename = this.logFileName.Text;
         }
         if (!comm.Log.IsFileOpen())
         {
             if (comm.Log.OpenFile(inFilename))
             {
                 this.frmCommOpenLogStatusLabel.Text = comm.Log.LoggingState.ToString() + " ...";
                 this.btn_logFileBroswer.Enabled = false;
                 this.logFileName.Enabled = false;
             }
         }
         else
         {
             this.frmCommOpenLogStatusLabel.Text = comm.Log.LoggingState.ToString() + " ...";
         }
         comm.Log.DurationLoggingStatusLabel = this.frmCommOpenDurationLoggingStatusLabel;
         comm.Log.LoggingStatusLabel = this.frmCommOpenLogStatusLabel;
         this.logFileName.Text = comm.Log.filename;
         comm.RxCtrl.PollSWVersion();
         comm.RxCtrl.PollNavigationParameters();
     }
     else
     {
         MessageBox.Show("Port not open", "Error logging", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
示例#14
0
 protected override void OnClosed(EventArgs e)
 {
     try
     {
         if (this.comm.RxType != CommunicationManager.ReceiverType.TTB)
         {
             this.frmSaveSettingsOnClosing_CommOpen(this._lastWindowsRestoredFilePath);
         }
     }
     catch
     {
     }
     this.StopAsyncProcess();
     Thread.Sleep(500);
     this.commWindowCleanup();
     Thread.Sleep(0x5dc);
     if (this.updateTTBPort != null)
     {
         this.updateTTBPort();
     }
     this.comm.Dispose();
     this.comm = null;
     if (this.UpdatePortManager != null)
     {
         this.UpdatePortManager(base.Name, base.Left, base.Top, base.Width, base.Height, false);
     }
     base.OnClosed(e);
 }
示例#15
0
 public frmLPBufferWindow(CommunicationManager pComm)
 {
     this.InitializeComponent();
     this.comm = pComm;
     this.setFlagStatus(ref pComm);
 }
示例#16
0
 private void sendFlag(ref CommunicationManager targetComm)
 {
     if (this.frmLPCmdBufferAlwaysRadioBtn.Checked)
     {
         targetComm.SendFlag = 0;
     }
     else if (this.frmCmdBufferOnInputRadioBtn.Checked)
     {
         targetComm.SendFlag = 1;
     }
     else if (this.frmCmdBufferForceRadioBtn.Checked)
     {
         targetComm.SendFlag = 2;
         targetComm.OK_TO_SEND = true;
         targetComm.WriteData();
     }
     else if (this.frmLPCmdBufferForceFalseRadioBtn.Checked)
     {
         targetComm.SendFlag = 3;
         targetComm.OK_TO_SEND = false;
     }
 }
示例#17
0
 private void sendBuffer(ref CommunicationManager targetComm)
 {
     bool flag = targetComm.OK_TO_SEND;
     targetComm.OK_TO_SEND = true;
     this.setFlagStatus(ref targetComm);
     targetComm.WriteData();
     this.clearCommands();
     targetComm.OK_TO_SEND = flag;
 }
 public frmTransmitSerialMessage(CommunicationManager controlComm)
 {
     this.InitializeComponent();
     this.comm = controlComm;
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
 }
示例#19
0
 public frmCommSiRFawareV2(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
     this.SVList.Add(this.checkBox1);
     this.SVList.Add(this.checkBox2);
     this.SVList.Add(this.checkBox3);
     this.SVList.Add(this.checkBox4);
     this.SVList.Add(this.checkBox5);
     this.SVList.Add(this.checkBox6);
     this.SVList.Add(this.checkBox7);
     this.SVList.Add(this.checkBox8);
     this.SVList.Add(this.checkBox9);
     this.SVList.Add(this.checkBox10);
     this.SVList.Add(this.checkBox11);
     this.SVList.Add(this.checkBox12);
     this.SVList.Add(this.checkBox13);
     this.SVList.Add(this.checkBox14);
     this.SVList.Add(this.checkBox15);
     this.SVList.Add(this.checkBox16);
     this.SVList.Add(this.checkBox17);
     this.SVList.Add(this.checkBox18);
     this.SVList.Add(this.checkBox19);
     this.SVList.Add(this.checkBox20);
     this.SVList.Add(this.checkBox21);
     this.SVList.Add(this.checkBox22);
     this.SVList.Add(this.checkBox23);
     this.SVList.Add(this.checkBox24);
     this.SVList.Add(this.checkBox25);
     this.SVList.Add(this.checkBox26);
     this.SVList.Add(this.checkBox27);
     this.SVList.Add(this.checkBox28);
     this.SVList.Add(this.checkBox29);
     this.SVList.Add(this.checkBox30);
     this.SVList.Add(this.checkBox31);
     this.SVList.Add(this.checkBox32);
 }
示例#20
0
 public frmCommSettings(ref CommunicationManager parentCommWindow)
 {
     CommonUtilsClass class2 = new CommonUtilsClass();
     this.InitializeComponent();
     this.CommWindow = parentCommWindow;
     if (this.comm != null)
     {
         this.frmCommOpenBufferSizeTxtBox.Text = class2.DisplayBuffer.ToString();
         this.CMC = this.comm.CMC;
     }
 }
示例#21
0
 public static bool ValidateCommManager(CommunicationManager target)
 {
     return (((target != null) && (target.RxCtrl != null)) && (target.RxCtrl.ResetCtrl != null));
 }
示例#22
0
 private void setFlagStatus(ref CommunicationManager targetComm)
 {
     string str = Convert.ToString(targetComm.OK_TO_SEND);
     this.frmLPCmdBufferStatus.Text = "Flag status: " + str;
 }
示例#23
0
 public frmCommOpen()
 {
     this.InitializeComponent();
     this.comm = new CommunicationManager(false);
     this._defaultWindowsRestoredFilePath = ConfigurationManager.AppSettings["InstalledDirectory"] + @"\Config\DefaultWindowsRestore.xml";
     this._lastWindowsRestoredFilePath = ConfigurationManager.AppSettings["InstalledDirectory"] + @"\Config\LastWindowsRestore_CommOpen.xml";
     this.logFileName.DataBindings.Add("Text", this.comm.Log, "filename");
     this.comm.Parity = "None";
     this.comm.StopBits = "One";
     this.comm.DataBits = "8";
     this.comm.BaudRate = "115200";
     this.comm.PortName = "COM6";
     this.comm.EnableLocationMapView = false;
     this.comm.EnableSignalView = false;
     this.comm.EnableSVsMap = false;
     this.comm.EnableSatelliteStats = false;
     if (this.comm.IMUPositionAvailable)
     {
         this.comm.GetIMUDataForGUI();
     }
     _openWinCount++;
     this.Text = "Main COM" + _openWinCount.ToString();
     this.setFocusTimer.Elapsed += new ElapsedEventHandler(this.setWinComFocus);
     this.setFocusTimer.Interval = 1000.0;
     this.setFocusTimer.AutoReset = false;
 }
示例#24
0
 public frmMaskElevation(CommunicationManager parentComm)
 {
     this.InitializeComponent();
     this.comm = parentComm;
     this.maskElevNavigation_txtBx.Text = "5.0";
 }
示例#25
0
 public frmStaticNav(CommunicationManager parentComm)
 {
     this.InitializeComponent();
     this.comm = parentComm;
     this.StatNavDisable_rBtn.Checked = true;
 }
示例#26
0
 public frmCommSiRFaware(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     int num = 0;
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
     string[] strArray = this.paramList.Split(new char[] { ',' });
     this.SA_PARAM_ROWS = strArray.Length;
     foreach (string str in strArray)
     {
         this._SiRFAwareStatsDataGridView.Rows.Add();
         this._SiRFAwareStatsDataGridView["SA_Parameter", num].Value = str;
         num++;
     }
 }
示例#27
0
 public frmSetGPSDRMode(CommunicationManager parentComm)
 {
     this.InitializeComponent();
     this.comm = parentComm;
 }
示例#28
0
 private void sendReset(ref CommunicationManager targetComm)
 {
     if (CommunicationManager.ValidateCommManager(targetComm))
     {
         clsGlobal.ToSwitchProtocol = targetComm.MessageProtocol;
         clsGlobal.ToSwitchBaudRate = targetComm.BaudRate;
         double num = -9999.0;
         double num2 = -9999.0;
         double num3 = -9999.0;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.ECEFX = this.textBox_X.Text;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.ECEFY = this.textBox_Y.Text;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.ECEFZ = this.textBox_Z.Text;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.ClockDrift = this.textBox_ClockDrift.Text;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.Channels = this.textBox_Channels.Text;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.Enable_Development_Data = this.checkBox_enable_Devlopment_Data.Checked;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.Enable_Navlib_Data = this.checkBox_enable_Navlib_Data.Checked;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.EnableFullSystemReset = this.checkBox_enableFullSystemReset.Checked;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.KeepFlashData = this.radioBtn_factoryKeepFlash.Checked;
         targetComm.RxCtrl.ResetCtrl.ResetInitParams.TrueHeading = this.textBox_TrueHeading.Text;
         if (!this.checkBox_usePCTime.Checked)
         {
             targetComm.RxCtrl.ResetCtrl.ResetInitParams.TOW = this.textBox_TimeOfWeek.Text;
             targetComm.RxCtrl.ResetCtrl.ResetInitParams.WeekNumber = this.textBox_WeekNum.Text;
         }
         else
         {
             ushort weeknum = 0;
             uint tow = 0;
             this.GetGpsWkTow(ref weeknum, ref tow, 0);
             targetComm.RxCtrl.ResetCtrl.ResetInitParams.WeekNumber = weeknum.ToString();
             targetComm.RxCtrl.ResetCtrl.ResetInitParams.TOW = tow.ToString();
         }
         try
         {
             num = Convert.ToDouble(this.frmRxInitCmdRefLatitudeTxtBox.Text);
             num2 = Convert.ToDouble(this.frmRxInitCmdRefLongitudeTxtBox.Text);
             num3 = Convert.ToDouble(this.frmRxInitCmdRefAltitudeTxtBox.Text);
         }
         catch (Exception exception)
         {
             MessageBox.Show("Reference Location: " + exception.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             return;
         }
         try
         {
             targetComm.RxCtrl.RxNavData.RefLocationName = this.frmRxInitCmdRefLocationComboBox.Text;
             targetComm.RxCtrl.RxNavData.RefLat = num;
             targetComm.RxCtrl.RxNavData.RefLon = num2;
             targetComm.RxCtrl.RxNavData.RefAlt = num3;
             targetComm.RxCtrl.RxNavData.ValidatePosition = this.frmRxInitCmdValidateLocationChkBox.Checked;
         }
         catch (Exception exception2)
         {
             MessageBox.Show(exception2.Message + "\nMost likely invalid reference name", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             return;
         }
         targetComm.m_NavData = targetComm.RxCtrl.RxNavData;
         string resetType = string.Empty;
         if (this.radioButton_HotStart.Checked)
         {
             if (this.checkBox_slcMode.Checked)
             {
                 resetType = "SLC_HOT";
             }
             else
             {
                 resetType = "HOT";
             }
         }
         else if (this.radioButton_WarmStart_noInit.Checked)
         {
             resetType = "WARM_NO_INIT";
         }
         else if (this.radioButton_WarmStart_Init.Checked)
         {
             resetType = "WARM_INIT";
         }
         else if (this.radioButton_ColdStart.Checked)
         {
             if (this.checkBox_slcMode.Checked)
             {
                 resetType = "SLC_COLD";
             }
             else
             {
                 resetType = "COLD";
             }
         }
         else if (this.radioButton_Factory_Reset.Checked)
         {
             if (this.checkBox_slcMode.Checked)
             {
                 resetType = "SLC_FACTORY";
             }
             else
             {
                 resetType = "FACTORY";
             }
         }
         else if (this.radioButton_Factory_Reset_XO.Checked)
         {
             resetType = "FACTORY_XO";
         }
         else if (this.radioBtn_factoryKeepFlash.Checked)
         {
             resetType = "FACTORY";
         }
         this.setAsDefault(ref targetComm);
         targetComm.RxCtrl.ResetCtrl.IsProtocolSwitchedOnFactory = this.checkBox_switchProtocolOnFactory.Checked;
         targetComm.RxCtrl.ResetCtrl.IsAidingPerformedOnFactory = this.checkBox_performedAdingOnFactory.Checked;
         try
         {
             targetComm.RxCtrl.ResetCtrl.Reset(resetType);
         }
         catch (Exception exception3)
         {
             MessageBox.Show("frmRXInit_cmd: button_Send_Click()\r\r" + exception3.ToString(), "Error Information");
         }
     }
 }
 public frmTrackerSwitchIOFormat(CommunicationManager parentComm)
 {
     this.comm = parentComm;
     this.InitializeComponent();
 }
示例#30
0
 public frmTTFFDisplay(CommunicationManager mainComWin)
 {
     this.InitializeComponent();
     base.MdiParent = clsGlobal.g_objfrmMDIMain;
     this.CommWindow = mainComWin;
 }