C# Class MissionPlanner.MainV2

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: ArduPilot/MissionPlanner Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public ChangeUnits ( ) : void
Résultat void

Dispose() protected méthode

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

MainV2() public méthode

public MainV2 ( ) : System
Résultat System

MenuSetup_Click() public méthode

public MenuSetup_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnClosing() protected méthode

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
Résultat void

OnFormClosed() protected méthode

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

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

ProcessCmdKey() protected méthode

keyboard shortcuts override
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Résultat bool

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m Message
Résultat void

changelanguage() public méthode

public changelanguage ( CultureInfo ci ) : void
ci System.Globalization.CultureInfo
Résultat void

doConnect() public méthode

public doConnect ( MAVLinkInterface comPort, string portname, string baud ) : void
comPort MAVLinkInterface
portname string
baud string
Résultat void

doDisconnect() public méthode

public doDisconnect ( MAVLinkInterface comPort ) : void
comPort MAVLinkInterface
Résultat void

switchicons() public méthode

public switchicons ( menuicons icons ) : void
icons menuicons
Résultat void

updateLayout() public méthode

public updateLayout ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

Comports public_oe static_oe property

passive comports
public static List Comports
Résultat 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
Résultat MissionPlanner.GCSViews.FlightData

FlightPlanner public_oe property

public FlightPlanner,MissionPlanner.GCSViews FlightPlanner
Résultat MissionPlanner.GCSViews.FlightPlanner

GUID_DEVINTERFACE_USB_DEVICE public_oe static_oe property

public static Guid,System GUID_DEVINTERFACE_USB_DEVICE
Résultat System.Guid

MONO public_oe static_oe property

mono detection
public static bool MONO
Résultat bool

MainMenu public_oe property

public System.Windows.Forms.MenuStrip MainMenu
Résultat System.Windows.Forms.MenuStrip

MenuConfigTune public_oe property

public System.Windows.Forms.ToolStripButton MenuConfigTune
Résultat System.Windows.Forms.ToolStripButton

MenuConnect public_oe property

public System.Windows.Forms.ToolStripButton MenuConnect
Résultat System.Windows.Forms.ToolStripButton

MenuFlightData public_oe property

public System.Windows.Forms.ToolStripButton MenuFlightData
Résultat System.Windows.Forms.ToolStripButton

MenuFlightPlanner public_oe property

public System.Windows.Forms.ToolStripButton MenuFlightPlanner
Résultat System.Windows.Forms.ToolStripButton

MenuInitConfig public_oe property

public System.Windows.Forms.ToolStripButton MenuInitConfig
Résultat System.Windows.Forms.ToolStripButton

MenuSimulation public_oe property

public System.Windows.Forms.ToolStripButton MenuSimulation
Résultat System.Windows.Forms.ToolStripButton

MenuTerminal public_oe property

public System.Windows.Forms.ToolStripButton MenuTerminal
Résultat System.Windows.Forms.ToolStripButton

TerminalTheming public_oe static_oe property

public static bool TerminalTheming
Résultat bool

View public_oe static_oe property

public static MainSwitcher,MissionPlanner.Controls View
Résultat MissionPlanner.Controls.MainSwitcher

adsbPlanes public_oe property

public ConcurrentDictionary adsbPlanes
Résultat 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
Résultat WebCamService.Capture

comPortName public_oe static_oe property

Comport name
public static string comPortName
Résultat string

displayicons public_oe static_oe property

public static menuicons displayicons
Résultat menuicons

instance public_oe static_oe property

used to call anything as needed.
public static MainV2,MissionPlanner instance
Résultat MainV2

joystick public_oe static_oe property

joystick static class
public static Joystick,MissionPlanner.Joystick joystick
Résultat MissionPlanner.Joystick.Joystick

panel1 public_oe property

public System.Windows.Forms.Panel panel1
Résultat System.Windows.Forms.Panel

speechEnable public_oe static_oe property

speech engine enable
public static bool speechEnable
Résultat bool

speechEngine public_oe static_oe property

spech engine static class
public static Speech,MissionPlanner.Utilities speechEngine
Résultat MissionPlanner.Utilities.Speech