public void StartCalibration() { ArdupilotMega.Controls.ProgressReporterDialogue prd = new ArdupilotMega.Controls.ProgressReporterDialogue() { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Compass Mot" }; prd.DoWork += DoCalibration; prd.RunBackgroundOperationAsync(); }
internal void Firmware_Load(object sender, EventArgs e) { pdr = new ProgressReporterDialogue(); pdr.DoWork -= pdr_DoWork; pdr.DoWork += pdr_DoWork; ThemeManager.ApplyThemeTo(pdr); pdr.RunBackgroundOperationAsync(); }
public void StartCalibration() { ArdupilotMega.Controls.ProgressReporterDialogue prd = new ArdupilotMega.Controls.ProgressReporterDialogue() { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Compass Mot" }; prd.DoWork += DoCalibration; prd.RunBackgroundOperationAsync(); }
internal void Firmware_Load(object sender, EventArgs e) { ProgressReporterDialogue pdr = new ArdupilotMega.Controls.ProgressReporterDialogue(); pdr.DoWork += pdr_DoWork; pdr.UpdateProgressAndStatus(-1, "Getting Firmware List"); ThemeManager.ApplyThemeTo(pdr); pdr.RunBackgroundOperationAsync(); }
public void Open() { if (client.Client.Connected) { log.Info("udpserial socket already open"); return; } ProgressReporterDialogue frmProgressReporter = new ProgressReporterDialogue { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Connecting Mavlink UDP" }; frmProgressReporter.DoWork += frmProgressReporter_DoWork; frmProgressReporter.UpdateProgressAndStatus(-1, "Connecting Mavlink UDP"); ArdupilotMega.Utilities.ThemeManager.ApplyThemeTo(frmProgressReporter); frmProgressReporter.RunBackgroundOperationAsync(); }
private void BUT_MagCalibration_Click(object sender, EventArgs e) { CustomMessageBox.Show("Data will be collected for 60 seconds, Please click ok and move the apm around all axises"); ProgressReporterDialogue prd = new ProgressReporterDialogue(); Utilities.ThemeManager.ApplyThemeTo(prd); prd.DoWork += prd_DoWork; prd.RunBackgroundOperationAsync(); }
public int WizardValidate() { comport = CMB_port.Text; pdr = new ProgressReporterDialogue(); pdr.DoWork -= pdr_DoWork; pdr.DoWork += pdr_DoWork; ThemeManager.ApplyThemeTo(pdr); pdr.RunBackgroundOperationAsync(); MainV2.comPort.BaseStream.BaudRate = 115200; MainV2.comPort.BaseStream.PortName = comport; MainV2.comPort.Open(true); if (!MainV2.comPort.BaseStream.IsOpen) return 0; if (string.IsNullOrEmpty(pdr.doWorkArgs.ErrorMessage)) { if (Wizard.config["fwtype"].ToString() == "copter") // check if its a quad, and show the frame type screen return 1; else // skip the frame type screen as its not valid for anythine else return 2; } return 0; }
internal void Firmware_Load(object sender, EventArgs e) { ProgressReporterDialogue pdr = new ArdupilotMega.Controls.ProgressReporterDialogue(); pdr.DoWork += pdr_DoWork; pdr.UpdateProgressAndStatus(-1,"Getting Firmware List"); ThemeManager.ApplyThemeTo(pdr); pdr.RunBackgroundOperationAsync(); }
public static void DoUpdate() { ProgressReporterDialogue frmProgressReporter = new ProgressReporterDialogue() { Text = "Check for Updates", StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen }; ThemeManager.ApplyThemeTo(frmProgressReporter); frmProgressReporter.DoWork += new Controls.ProgressReporterDialogue.DoWorkEventHandler(DoUpdateWorker_DoWork); frmProgressReporter.UpdateProgressAndStatus(-1, "Checking for Updates"); frmProgressReporter.RunBackgroundOperationAsync(); }
public void Open(bool getparams) { if (BaseStream.IsOpen) return; frmProgressReporter = new ProgressReporterDialogue { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Hubungkan dengan satelit" }; if (getparams) { frmProgressReporter.DoWork += FrmProgressReporterDoWorkAndParams; } else { frmProgressReporter.DoWork += FrmProgressReporterDoWorkNOParams; } frmProgressReporter.UpdateProgressAndStatus(-1, "Terhubung dengan satelit..."); ThemeManager.ApplyThemeTo(frmProgressReporter); frmProgressReporter.RunBackgroundOperationAsync(); if (ParamListChanged != null) { ParamListChanged(this,null); } }
/* public Bitmap getImage() { MemoryStream ms = new MemoryStream(); } */ public void getParamList() { frmProgressReporter = new ProgressReporterDialogue { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Getting Params" }; frmProgressReporter.DoWork += FrmProgressReporterGetParams; frmProgressReporter.UpdateProgressAndStatus(-1, "Getting Params..."); ThemeManager.ApplyThemeTo(frmProgressReporter); frmProgressReporter.RunBackgroundOperationAsync(); if (ParamListChanged != null) { ParamListChanged(this, null); } }
public void Open(bool getparams) { if (BaseStream.IsOpen) return; frmProgressReporter = new ProgressReporterDialogue { StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen, Text = "Connecting Mavlink" }; if (getparams) { frmProgressReporter.DoWork += FrmProgressReporterDoWorkAndParams; } else { frmProgressReporter.DoWork += FrmProgressReporterDoWorkNOParams; } frmProgressReporter.UpdateProgressAndStatus(-1, "Mavlink Connecting..."); ThemeManager.ApplyThemeTo(frmProgressReporter); frmProgressReporter.RunBackgroundOperationAsync(); }
private void BUT_MagCalibration_Click(object sender, EventArgs e) { MainV2.comPort.MAV.cs.ratesensors = 2; MainV2.comPort.requestDatastream(ArdupilotMega.MAVLink.MAV_DATA_STREAM.EXTRA3, MainV2.comPort.MAV.cs.ratesensors); MainV2.comPort.requestDatastream(ArdupilotMega.MAVLink.MAV_DATA_STREAM.RAW_SENSORS, MainV2.comPort.MAV.cs.ratesensors); MainV2.comPort.setParam("MAG_ENABLE", 1); CustomMessageBox.Show("Data will be collected for 60 seconds, Please click ok and move the apm around all axises"); ProgressReporterDialogue prd = new ProgressReporterDialogue(); Utilities.ThemeManager.ApplyThemeTo(prd); prd.DoWork += prd_DoWork; prd.RunBackgroundOperationAsync(); }
internal void Firmware_Load(object sender, EventArgs e) { // if (softwares.Count == 0) { ProgressReporterDialogue pdr = new ArdupilotMega.Controls.ProgressReporterDialogue(); pdr.DoWork += pdr_DoWork; pdr.UpdateProgressAndStatus(-1, "Getting Firmware List"); ThemeManager.ApplyThemeTo(pdr); pdr.RunBackgroundOperationAsync(); } // else { // foreach (var temp in softwares) // { // updateDisplayNameInvoke(temp); // } } }