C# Class MissionPlanner.MainV2

Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
Comports List
FlightData MissionPlanner.GCSViews.FlightData
FlightPlanner MissionPlanner.GCSViews.FlightPlanner
GUID_DEVINTERFACE_USB_DEVICE System.Guid
MONO bool
MainMenu System.Windows.Forms.MenuStrip
MenuConfigTune System.Windows.Forms.ToolStripButton
MenuConnect System.Windows.Forms.ToolStripButton
MenuFlightData System.Windows.Forms.ToolStripButton
MenuFlightPlanner System.Windows.Forms.ToolStripButton
MenuInitConfig System.Windows.Forms.ToolStripButton
MenuSimulation System.Windows.Forms.ToolStripButton
MenuTerminal System.Windows.Forms.ToolStripButton
TerminalTheming bool
View MissionPlanner.Controls.MainSwitcher
adsbPlanes adsb.PointLatLngAltHdg>.ConcurrentDictionary
cam WebCamService.Capture
comPortName string
displayicons menuicons
instance MainV2
joystick MissionPlanner.Joystick.Joystick
panel1 System.Windows.Forms.Panel
speechEnable bool
speechEngine MissionPlanner.Utilities.Speech

Public Methods

Method Description
ChangeUnits ( ) : void
MainV2 ( ) : System
MenuSetup_Click ( object sender, EventArgs e ) : void
changelanguage ( CultureInfo ci ) : void
doConnect ( MAVLinkInterface comPort, string portname, string baud ) : void
doDisconnect ( MAVLinkInterface comPort ) : void
switchicons ( menuicons icons ) : void
updateLayout ( object sender, EventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void

overriding the OnCLosing is a bit cleaner than handling the event, since it is this object. This happens before FormClosed

OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void

this happens after FormClosing...

OnLoad ( EventArgs e ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

keyboard shortcuts override

WndProc ( Message &m ) : void

Private Methods

Method Description
AutoHideMenu ( bool hide ) : void
BGCreateMaps ( object state ) : void
BGFirmwareCheck ( object state ) : void
BGGetKIndex ( object state ) : void
BGLoadAirports ( object nothing ) : void
BGNoFly ( object state ) : void
BGgetTFR ( object state ) : void
CMB_baudrate_TextChanged ( object sender, EventArgs e ) : void
CMB_serialport_Click ( object sender, EventArgs e ) : void
CMB_serialport_SelectedIndexChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

KIndex_KIndex ( object sender, EventArgs e ) : void
LoadConfig ( ) : void
MainMenu_ItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void
MainMenu_MouseLeave ( object sender, EventArgs e ) : void
MainV2_KeyDown ( object sender, KeyEventArgs e ) : void
MainV2_Resize ( object sender, EventArgs e ) : void
MenuConnect_Click ( object sender, EventArgs e ) : void
MenuCustom_Click ( object sender, EventArgs e ) : void
MenuFlightData_Click ( object sender, EventArgs e ) : void
MenuFlightPlanner_Click ( object sender, EventArgs e ) : void
MenuHelp_Click ( object sender, EventArgs e ) : void
MenuSimulation_Click ( object sender, EventArgs e ) : void
MenuTerminal_Click ( object sender, EventArgs e ) : void
MenuTuning_Click ( object sender, EventArgs e ) : void
PluginThread ( ) : void
PopulateSerialportList ( ) : void
ResetConnectionStats ( ) : void
SaveConfig ( ) : void
SerialReader ( ) : void

main serial reader thread controls serial reading link quality stats speech voltage - custom - alt warning - data lost heartbeat packet sending and can't fall out

ShowConnectionStatsForm ( ) : void
SystemEvents_PowerModeChanged ( object sender, Microsoft e ) : void
UpdateConnectIcon ( ) : void

Used to fix the icon status for unexpected unplugs etc...

adsb_UpdatePlanePosition ( object sender, EventArgs e ) : void
autoHideToolStripMenuItem_Click ( object sender, EventArgs e ) : void
checkupdate ( object stuff ) : void
cmb_sysid_Click ( object sender, EventArgs e ) : void
comPort_MavChanged ( object sender, EventArgs e ) : void
connectionOptionsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fullScreenToolStripMenuItem_Click ( object sender, EventArgs e ) : void
joysticksend ( ) : void

thread used to send joystick packets to the MAV

menu_MouseEnter ( object sender, EventArgs e ) : void
readonlyToolStripMenuItem_Click ( object sender, EventArgs e ) : void
toolStripMenuItem1_Click ( object sender, EventArgs e ) : void

Method Details

ChangeUnits() public method

public ChangeUnits ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainV2() public method

public MainV2 ( ) : System
return System

MenuSetup_Click() public method

public MenuSetup_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnClosing() protected method

overriding the OnCLosing is a bit cleaner than handling the event, since it is this object. This happens before FormClosed
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnFormClosed() protected method

this happens after FormClosing...
protected OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void
e System.Windows.Forms.FormClosedEventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

ProcessCmdKey() protected method

keyboard shortcuts override
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
return bool

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

changelanguage() public method

public changelanguage ( CultureInfo ci ) : void
ci System.Globalization.CultureInfo
return void

doConnect() public method

public doConnect ( MAVLinkInterface comPort, string portname, string baud ) : void
comPort MAVLinkInterface
portname string
baud string
return void

doDisconnect() public method

public doDisconnect ( MAVLinkInterface comPort ) : void
comPort MAVLinkInterface
return void

switchicons() public method

public switchicons ( menuicons icons ) : void
icons menuicons
return void

updateLayout() public method

public updateLayout ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

Comports public_oe static_oe property

passive comports
public static List Comports
return List

FlightData public_oe property

declared here if i want a "single" instance of the form ie configuration gets reloaded on every click
public FlightData,MissionPlanner.GCSViews FlightData
return MissionPlanner.GCSViews.FlightData

FlightPlanner public_oe property

public FlightPlanner,MissionPlanner.GCSViews FlightPlanner
return MissionPlanner.GCSViews.FlightPlanner

GUID_DEVINTERFACE_USB_DEVICE public_oe static_oe property

public static Guid,System GUID_DEVINTERFACE_USB_DEVICE
return System.Guid

MONO public_oe static_oe property

mono detection
public static bool MONO
return bool

MainMenu public_oe property

public System.Windows.Forms.MenuStrip MainMenu
return System.Windows.Forms.MenuStrip

MenuConfigTune public_oe property

public System.Windows.Forms.ToolStripButton MenuConfigTune
return System.Windows.Forms.ToolStripButton

MenuConnect public_oe property

public System.Windows.Forms.ToolStripButton MenuConnect
return System.Windows.Forms.ToolStripButton

MenuFlightData public_oe property

public System.Windows.Forms.ToolStripButton MenuFlightData
return System.Windows.Forms.ToolStripButton

MenuFlightPlanner public_oe property

public System.Windows.Forms.ToolStripButton MenuFlightPlanner
return System.Windows.Forms.ToolStripButton

MenuInitConfig public_oe property

public System.Windows.Forms.ToolStripButton MenuInitConfig
return System.Windows.Forms.ToolStripButton

MenuSimulation public_oe property

public System.Windows.Forms.ToolStripButton MenuSimulation
return System.Windows.Forms.ToolStripButton

MenuTerminal public_oe property

public System.Windows.Forms.ToolStripButton MenuTerminal
return System.Windows.Forms.ToolStripButton

TerminalTheming public_oe static_oe property

public static bool TerminalTheming
return bool

View public_oe static_oe property

public static MainSwitcher,MissionPlanner.Controls View
return MissionPlanner.Controls.MainSwitcher

adsbPlanes public_oe property

public ConcurrentDictionary adsbPlanes
return adsb.PointLatLngAltHdg>.ConcurrentDictionary

cam public_oe static_oe property

hud background image grabber from a video stream - not realy that efficent. ie no hardware overlays etc.
public static WebCamService.Capture cam
return WebCamService.Capture

comPortName public_oe static_oe property

Comport name
public static string comPortName
return string

displayicons public_oe static_oe property

public static menuicons displayicons
return menuicons

instance public_oe static_oe property

used to call anything as needed.
public static MainV2,MissionPlanner instance
return MainV2

joystick public_oe static_oe property

joystick static class
public static Joystick,MissionPlanner.Joystick joystick
return MissionPlanner.Joystick.Joystick

panel1 public_oe property

public System.Windows.Forms.Panel panel1
return System.Windows.Forms.Panel

speechEnable public_oe static_oe property

speech engine enable
public static bool speechEnable
return bool

speechEngine public_oe static_oe property

spech engine static class
public static Speech,MissionPlanner.Utilities speechEngine
return MissionPlanner.Utilities.Speech