1
0
mirror of synced 2024-11-14 00:59:17 +00:00

Implemented UI

Added detection of sim running and paused states
Added rudimentary live KML option (needs more styling)
This commit is contained in:
Mark van Renswoude 2020-09-09 21:20:42 +02:00
parent a3cb0eb7ca
commit d6fbff68af
39 changed files with 2325 additions and 563 deletions

View File

@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@ -55,16 +55,46 @@
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Context, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Context.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Context.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Coordination, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Coordination.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Coordination.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Interop.WaitHandles, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Interop.WaitHandles.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Interop.WaitHandles.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Oop, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Oop.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Oop.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Tasks, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Tasks.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Tasks.dll</HintPath>
</Reference>
<Reference Include="Nito.Cancellation, Version=1.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Cancellation.1.0.5\lib\netstandard2.0\Nito.Cancellation.dll</HintPath>
</Reference>
<Reference Include="Nito.Collections.Deque, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Collections.Deque.1.0.4\lib\netstandard2.0\Nito.Collections.Deque.dll</HintPath>
</Reference>
<Reference Include="Nito.Disposables, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Disposables.2.0.0\lib\netstandard2.0\Nito.Disposables.dll</HintPath>
</Reference>
<Reference Include="SimpleInjector, Version=5.0.0.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
<HintPath>..\packages\SimpleInjector.5.0.3\lib\net461\SimpleInjector.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Reference Include="System.Collections.Immutable, Version=1.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.1.4.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
@ -77,6 +107,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Settings.cs" />
<Compile Include="SimConnectLogger.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
@ -85,6 +117,11 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\i18n.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>i18n.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
@ -97,6 +134,10 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="Resources\i18n.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>i18n.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
@ -115,6 +156,10 @@
<Folder Include="SimConnect\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FlightLoggerLib\FlightLoggerLib.csproj">
<Project>{D85BCC97-F653-4286-98D9-073A33A55857}</Project>
<Name>FlightLoggerLib</Name>
</ProjectReference>
<ProjectReference Include="..\SimConnect\SimConnect.csproj">
<Project>{f160bb6a-7620-41e5-a99c-948c208875e4}</Project>
<Name>SimConnect</Name>

View File

@ -18,30 +18,42 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.OutputGroupbox = new System.Windows.Forms.GroupBox();
this.OutputKMLPathBrowseButton = new System.Windows.Forms.Button();
this.OutputKMLPathLabel = new System.Windows.Forms.Label();
this.OutputKMLPathTextbox = new System.Windows.Forms.TextBox();
this.OutputCSVPathBrowseButton = new System.Windows.Forms.Button();
this.OutputCSVPathLabel = new System.Windows.Forms.Label();
this.OutputCSVPathTextbox = new System.Windows.Forms.TextBox();
this.OutputKMLCheckbox = new System.Windows.Forms.CheckBox();
this.OutputCSVCheckbox = new System.Windows.Forms.CheckBox();
this.StatusImageList = new System.Windows.Forms.ImageList(this.components);
this.FlightSimulatorStatusIcon = new System.Windows.Forms.PictureBox();
this.FlightSimulatorLabel = new System.Windows.Forms.Label();
this.FlightSimulatorStatusLabel = new System.Windows.Forms.Label();
this.RecordButton = new System.Windows.Forms.Button();
this.RecordingStatusIcon = new System.Windows.Forms.PictureBox();
this.OutputCSVCheckbox = new System.Windows.Forms.CheckBox();
this.OutputKMLCheckbox = new System.Windows.Forms.CheckBox();
this.OutputCSVPathTextbox = new System.Windows.Forms.TextBox();
this.OutputCSVPathLabel = new System.Windows.Forms.Label();
this.OutputCSVPathBrowseButton = new System.Windows.Forms.Button();
this.OutputKMLPathBrowseButton = new System.Windows.Forms.Button();
this.OutputKMLPathLabel = new System.Windows.Forms.Label();
this.OutputKMLPathTextbox = new System.Windows.Forms.TextBox();
this.TriggersGroupbox = new System.Windows.Forms.GroupBox();
this.TriggerWaitForMovementCheckbox = new System.Windows.Forms.CheckBox();
this.TriggerNewLogStationaryCheckbox = new System.Windows.Forms.CheckBox();
this.TriggerNewLogStationaryTimeEdit = new System.Windows.Forms.NumericUpDown();
this.TriggerConnectedCheckbox = new System.Windows.Forms.CheckBox();
this.TriggerNewLogStationaryUnitsLabel = new System.Windows.Forms.Label();
this.TriggerNewLogStationaryTimeEdit = new System.Windows.Forms.NumericUpDown();
this.TriggerNewLogStationaryCheckbox = new System.Windows.Forms.CheckBox();
this.TriggerWaitForMovementCheckbox = new System.Windows.Forms.CheckBox();
this.FolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
this.KMLLiveGroupbox = new System.Windows.Forms.GroupBox();
this.KMLLiveHelpLabel = new System.Windows.Forms.Label();
this.KMLLiveLinkEdit = new System.Windows.Forms.TextBox();
this.KMLLivePortEdit = new System.Windows.Forms.NumericUpDown();
this.KMLLiveLinkLabel = new System.Windows.Forms.Label();
this.KMLLiveCheckbox = new System.Windows.Forms.CheckBox();
this.TryConnectTimer = new System.Windows.Forms.Timer(this.components);
this.ChangesWhileRecordingLabel = new System.Windows.Forms.Label();
this.OutputGroupbox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.FlightSimulatorStatusIcon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.RecordingStatusIcon)).BeginInit();
this.TriggersGroupbox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TriggerNewLogStationaryTimeEdit)).BeginInit();
this.KMLLiveGroupbox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.KMLLivePortEdit)).BeginInit();
this.SuspendLayout();
//
// OutputGroupbox
@ -59,10 +71,96 @@
this.OutputGroupbox.Location = new System.Drawing.Point(12, 59);
this.OutputGroupbox.Name = "OutputGroupbox";
this.OutputGroupbox.Size = new System.Drawing.Size(482, 136);
this.OutputGroupbox.TabIndex = 0;
this.OutputGroupbox.TabIndex = 1;
this.OutputGroupbox.TabStop = false;
this.OutputGroupbox.Text = " Output ";
//
// OutputKMLPathBrowseButton
//
this.OutputKMLPathBrowseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.OutputKMLPathBrowseButton.Enabled = false;
this.OutputKMLPathBrowseButton.Location = new System.Drawing.Point(448, 102);
this.OutputKMLPathBrowseButton.Name = "OutputKMLPathBrowseButton";
this.OutputKMLPathBrowseButton.Size = new System.Drawing.Size(28, 20);
this.OutputKMLPathBrowseButton.TabIndex = 7;
this.OutputKMLPathBrowseButton.Text = "...";
this.OutputKMLPathBrowseButton.UseVisualStyleBackColor = true;
this.OutputKMLPathBrowseButton.Click += new System.EventHandler(this.OutputKMLPathBrowseButton_Click);
//
// OutputKMLPathLabel
//
this.OutputKMLPathLabel.AutoSize = true;
this.OutputKMLPathLabel.Location = new System.Drawing.Point(26, 105);
this.OutputKMLPathLabel.Name = "OutputKMLPathLabel";
this.OutputKMLPathLabel.Size = new System.Drawing.Size(32, 13);
this.OutputKMLPathLabel.TabIndex = 6;
this.OutputKMLPathLabel.Text = "Path:";
//
// OutputKMLPathTextbox
//
this.OutputKMLPathTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.OutputKMLPathTextbox.Enabled = false;
this.OutputKMLPathTextbox.Location = new System.Drawing.Point(71, 102);
this.OutputKMLPathTextbox.Name = "OutputKMLPathTextbox";
this.OutputKMLPathTextbox.Size = new System.Drawing.Size(373, 20);
this.OutputKMLPathTextbox.TabIndex = 5;
this.OutputKMLPathTextbox.TextChanged += new System.EventHandler(this.Configuration_Changed);
//
// OutputCSVPathBrowseButton
//
this.OutputCSVPathBrowseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.OutputCSVPathBrowseButton.Enabled = false;
this.OutputCSVPathBrowseButton.Location = new System.Drawing.Point(448, 46);
this.OutputCSVPathBrowseButton.Name = "OutputCSVPathBrowseButton";
this.OutputCSVPathBrowseButton.Size = new System.Drawing.Size(28, 20);
this.OutputCSVPathBrowseButton.TabIndex = 4;
this.OutputCSVPathBrowseButton.Text = "...";
this.OutputCSVPathBrowseButton.UseVisualStyleBackColor = true;
this.OutputCSVPathBrowseButton.Click += new System.EventHandler(this.OutputCSVPathBrowseButton_Click);
//
// OutputCSVPathLabel
//
this.OutputCSVPathLabel.AutoSize = true;
this.OutputCSVPathLabel.Location = new System.Drawing.Point(26, 49);
this.OutputCSVPathLabel.Name = "OutputCSVPathLabel";
this.OutputCSVPathLabel.Size = new System.Drawing.Size(32, 13);
this.OutputCSVPathLabel.TabIndex = 3;
this.OutputCSVPathLabel.Text = "Path:";
//
// OutputCSVPathTextbox
//
this.OutputCSVPathTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.OutputCSVPathTextbox.Enabled = false;
this.OutputCSVPathTextbox.Location = new System.Drawing.Point(71, 46);
this.OutputCSVPathTextbox.Name = "OutputCSVPathTextbox";
this.OutputCSVPathTextbox.Size = new System.Drawing.Size(373, 20);
this.OutputCSVPathTextbox.TabIndex = 2;
this.OutputCSVPathTextbox.TextChanged += new System.EventHandler(this.Configuration_Changed);
//
// OutputKMLCheckbox
//
this.OutputKMLCheckbox.AutoSize = true;
this.OutputKMLCheckbox.Location = new System.Drawing.Point(10, 79);
this.OutputKMLCheckbox.Name = "OutputKMLCheckbox";
this.OutputKMLCheckbox.Size = new System.Drawing.Size(119, 17);
this.OutputKMLCheckbox.TabIndex = 1;
this.OutputKMLCheckbox.Text = "Google Earth (KML)";
this.OutputKMLCheckbox.UseVisualStyleBackColor = true;
this.OutputKMLCheckbox.CheckedChanged += new System.EventHandler(this.OutputKMLCheckbox_CheckedChanged);
//
// OutputCSVCheckbox
//
this.OutputCSVCheckbox.AutoSize = true;
this.OutputCSVCheckbox.Location = new System.Drawing.Point(10, 23);
this.OutputCSVCheckbox.Name = "OutputCSVCheckbox";
this.OutputCSVCheckbox.Size = new System.Drawing.Size(141, 17);
this.OutputCSVCheckbox.TabIndex = 0;
this.OutputCSVCheckbox.Text = "Comma-separated (CSV)";
this.OutputCSVCheckbox.UseVisualStyleBackColor = true;
this.OutputCSVCheckbox.CheckedChanged += new System.EventHandler(this.OutputCSVCheckbox_CheckedChanged);
//
// StatusImageList
//
this.StatusImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("StatusImageList.ImageStream")));
@ -106,9 +204,10 @@
this.RecordButton.Location = new System.Drawing.Point(348, 17);
this.RecordButton.Name = "RecordButton";
this.RecordButton.Size = new System.Drawing.Size(108, 23);
this.RecordButton.TabIndex = 4;
this.RecordButton.Text = "&Start recording";
this.RecordButton.TabIndex = 0;
this.RecordButton.Text = "<runtime>";
this.RecordButton.UseVisualStyleBackColor = true;
this.RecordButton.Click += new System.EventHandler(this.RecordButton_Click);
//
// RecordingStatusIcon
//
@ -119,151 +218,180 @@
this.RecordingStatusIcon.TabIndex = 5;
this.RecordingStatusIcon.TabStop = false;
//
// OutputCSVCheckbox
//
this.OutputCSVCheckbox.AutoSize = true;
this.OutputCSVCheckbox.Location = new System.Drawing.Point(10, 23);
this.OutputCSVCheckbox.Name = "OutputCSVCheckbox";
this.OutputCSVCheckbox.Size = new System.Drawing.Size(141, 17);
this.OutputCSVCheckbox.TabIndex = 0;
this.OutputCSVCheckbox.Text = "Comma-separated (CSV)";
this.OutputCSVCheckbox.UseVisualStyleBackColor = true;
//
// OutputKMLCheckbox
//
this.OutputKMLCheckbox.AutoSize = true;
this.OutputKMLCheckbox.Location = new System.Drawing.Point(10, 79);
this.OutputKMLCheckbox.Name = "OutputKMLCheckbox";
this.OutputKMLCheckbox.Size = new System.Drawing.Size(119, 17);
this.OutputKMLCheckbox.TabIndex = 1;
this.OutputKMLCheckbox.Text = "Google Earth (KML)";
this.OutputKMLCheckbox.UseVisualStyleBackColor = true;
//
// OutputCSVPathTextbox
//
this.OutputCSVPathTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.OutputCSVPathTextbox.Enabled = false;
this.OutputCSVPathTextbox.Location = new System.Drawing.Point(71, 46);
this.OutputCSVPathTextbox.Name = "OutputCSVPathTextbox";
this.OutputCSVPathTextbox.Size = new System.Drawing.Size(373, 20);
this.OutputCSVPathTextbox.TabIndex = 2;
//
// OutputCSVPathLabel
//
this.OutputCSVPathLabel.AutoSize = true;
this.OutputCSVPathLabel.Location = new System.Drawing.Point(26, 49);
this.OutputCSVPathLabel.Name = "OutputCSVPathLabel";
this.OutputCSVPathLabel.Size = new System.Drawing.Size(32, 13);
this.OutputCSVPathLabel.TabIndex = 3;
this.OutputCSVPathLabel.Text = "Path:";
//
// OutputCSVPathBrowseButton
//
this.OutputCSVPathBrowseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.OutputCSVPathBrowseButton.Enabled = false;
this.OutputCSVPathBrowseButton.Location = new System.Drawing.Point(448, 46);
this.OutputCSVPathBrowseButton.Name = "OutputCSVPathBrowseButton";
this.OutputCSVPathBrowseButton.Size = new System.Drawing.Size(28, 20);
this.OutputCSVPathBrowseButton.TabIndex = 4;
this.OutputCSVPathBrowseButton.Text = "...";
this.OutputCSVPathBrowseButton.UseVisualStyleBackColor = true;
//
// OutputKMLPathBrowseButton
//
this.OutputKMLPathBrowseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.OutputKMLPathBrowseButton.Enabled = false;
this.OutputKMLPathBrowseButton.Location = new System.Drawing.Point(448, 102);
this.OutputKMLPathBrowseButton.Name = "OutputKMLPathBrowseButton";
this.OutputKMLPathBrowseButton.Size = new System.Drawing.Size(28, 20);
this.OutputKMLPathBrowseButton.TabIndex = 7;
this.OutputKMLPathBrowseButton.Text = "...";
this.OutputKMLPathBrowseButton.UseVisualStyleBackColor = true;
//
// OutputKMLPathLabel
//
this.OutputKMLPathLabel.AutoSize = true;
this.OutputKMLPathLabel.Location = new System.Drawing.Point(26, 105);
this.OutputKMLPathLabel.Name = "OutputKMLPathLabel";
this.OutputKMLPathLabel.Size = new System.Drawing.Size(32, 13);
this.OutputKMLPathLabel.TabIndex = 6;
this.OutputKMLPathLabel.Text = "Path:";
//
// OutputKMLPathTextbox
//
this.OutputKMLPathTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.OutputKMLPathTextbox.Enabled = false;
this.OutputKMLPathTextbox.Location = new System.Drawing.Point(71, 102);
this.OutputKMLPathTextbox.Name = "OutputKMLPathTextbox";
this.OutputKMLPathTextbox.Size = new System.Drawing.Size(373, 20);
this.OutputKMLPathTextbox.TabIndex = 5;
//
// TriggersGroupbox
//
this.TriggersGroupbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TriggersGroupbox.Controls.Add(this.TriggerConnectedCheckbox);
this.TriggersGroupbox.Controls.Add(this.TriggerNewLogStationaryUnitsLabel);
this.TriggersGroupbox.Controls.Add(this.TriggerNewLogStationaryTimeEdit);
this.TriggersGroupbox.Controls.Add(this.TriggerNewLogStationaryCheckbox);
this.TriggersGroupbox.Controls.Add(this.TriggerWaitForMovementCheckbox);
this.TriggersGroupbox.Location = new System.Drawing.Point(12, 201);
this.TriggersGroupbox.Name = "TriggersGroupbox";
this.TriggersGroupbox.Size = new System.Drawing.Size(482, 99);
this.TriggersGroupbox.TabIndex = 6;
this.TriggersGroupbox.Size = new System.Drawing.Size(482, 124);
this.TriggersGroupbox.TabIndex = 2;
this.TriggersGroupbox.TabStop = false;
this.TriggersGroupbox.Text = " Triggers ";
//
// TriggerConnectedCheckbox
//
this.TriggerConnectedCheckbox.AutoSize = true;
this.TriggerConnectedCheckbox.Location = new System.Drawing.Point(10, 23);
this.TriggerConnectedCheckbox.Name = "TriggerConnectedCheckbox";
this.TriggerConnectedCheckbox.Size = new System.Drawing.Size(324, 17);
this.TriggerConnectedCheckbox.TabIndex = 0;
this.TriggerConnectedCheckbox.Text = " Start recording immediately when connected to Flight Simulator";
this.TriggerConnectedCheckbox.UseVisualStyleBackColor = true;
//
// TriggerNewLogStationaryUnitsLabel
//
this.TriggerNewLogStationaryUnitsLabel.AutoSize = true;
this.TriggerNewLogStationaryUnitsLabel.Location = new System.Drawing.Point(117, 94);
this.TriggerNewLogStationaryUnitsLabel.Name = "TriggerNewLogStationaryUnitsLabel";
this.TriggerNewLogStationaryUnitsLabel.Size = new System.Drawing.Size(47, 13);
this.TriggerNewLogStationaryUnitsLabel.TabIndex = 3;
this.TriggerNewLogStationaryUnitsLabel.Text = "seconds";
//
// TriggerNewLogStationaryTimeEdit
//
this.TriggerNewLogStationaryTimeEdit.Enabled = false;
this.TriggerNewLogStationaryTimeEdit.Location = new System.Drawing.Point(33, 92);
this.TriggerNewLogStationaryTimeEdit.Name = "TriggerNewLogStationaryTimeEdit";
this.TriggerNewLogStationaryTimeEdit.Size = new System.Drawing.Size(78, 20);
this.TriggerNewLogStationaryTimeEdit.TabIndex = 3;
this.TriggerNewLogStationaryTimeEdit.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.TriggerNewLogStationaryTimeEdit.Value = new decimal(new int[] {
30,
0,
0,
0});
this.TriggerNewLogStationaryTimeEdit.ValueChanged += new System.EventHandler(this.Configuration_Changed);
//
// TriggerNewLogStationaryCheckbox
//
this.TriggerNewLogStationaryCheckbox.AutoSize = true;
this.TriggerNewLogStationaryCheckbox.Location = new System.Drawing.Point(10, 69);
this.TriggerNewLogStationaryCheckbox.Name = "TriggerNewLogStationaryCheckbox";
this.TriggerNewLogStationaryCheckbox.Size = new System.Drawing.Size(353, 17);
this.TriggerNewLogStationaryCheckbox.TabIndex = 2;
this.TriggerNewLogStationaryCheckbox.Text = " Start a new log when stationary for at least (excluding when paused):";
this.TriggerNewLogStationaryCheckbox.UseVisualStyleBackColor = true;
this.TriggerNewLogStationaryCheckbox.CheckedChanged += new System.EventHandler(this.TriggerNewLogStationaryCheckbox_CheckedChanged);
//
// TriggerWaitForMovementCheckbox
//
this.TriggerWaitForMovementCheckbox.AutoSize = true;
this.TriggerWaitForMovementCheckbox.Checked = true;
this.TriggerWaitForMovementCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
this.TriggerWaitForMovementCheckbox.Location = new System.Drawing.Point(10, 23);
this.TriggerWaitForMovementCheckbox.Location = new System.Drawing.Point(10, 46);
this.TriggerWaitForMovementCheckbox.Name = "TriggerWaitForMovementCheckbox";
this.TriggerWaitForMovementCheckbox.Size = new System.Drawing.Size(454, 17);
this.TriggerWaitForMovementCheckbox.TabIndex = 0;
this.TriggerWaitForMovementCheckbox.TabIndex = 1;
this.TriggerWaitForMovementCheckbox.Text = " Wait for movement before logging the starting point (recommended, ignores initia" +
"l teleports)";
this.TriggerWaitForMovementCheckbox.UseVisualStyleBackColor = true;
this.TriggerWaitForMovementCheckbox.CheckedChanged += new System.EventHandler(this.Configuration_Changed);
//
// TriggerNewLogStationaryCheckbox
// KMLLiveGroupbox
//
this.TriggerNewLogStationaryCheckbox.AutoSize = true;
this.TriggerNewLogStationaryCheckbox.Location = new System.Drawing.Point(10, 46);
this.TriggerNewLogStationaryCheckbox.Name = "TriggerNewLogStationaryCheckbox";
this.TriggerNewLogStationaryCheckbox.Size = new System.Drawing.Size(353, 17);
this.TriggerNewLogStationaryCheckbox.TabIndex = 1;
this.TriggerNewLogStationaryCheckbox.Text = " Start a new log when stationary for at least (excluding when paused):";
this.TriggerNewLogStationaryCheckbox.UseVisualStyleBackColor = true;
this.KMLLiveGroupbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.KMLLiveGroupbox.Controls.Add(this.KMLLiveHelpLabel);
this.KMLLiveGroupbox.Controls.Add(this.KMLLiveLinkEdit);
this.KMLLiveGroupbox.Controls.Add(this.KMLLivePortEdit);
this.KMLLiveGroupbox.Controls.Add(this.KMLLiveLinkLabel);
this.KMLLiveGroupbox.Controls.Add(this.KMLLiveCheckbox);
this.KMLLiveGroupbox.Location = new System.Drawing.Point(12, 331);
this.KMLLiveGroupbox.Name = "KMLLiveGroupbox";
this.KMLLiveGroupbox.Size = new System.Drawing.Size(482, 97);
this.KMLLiveGroupbox.TabIndex = 3;
this.KMLLiveGroupbox.TabStop = false;
this.KMLLiveGroupbox.Text = " Google Earth live location ";
//
// TriggerNewLogStationaryTimeEdit
// KMLLiveHelpLabel
//
this.TriggerNewLogStationaryTimeEdit.Enabled = false;
this.TriggerNewLogStationaryTimeEdit.Location = new System.Drawing.Point(33, 69);
this.TriggerNewLogStationaryTimeEdit.Name = "TriggerNewLogStationaryTimeEdit";
this.TriggerNewLogStationaryTimeEdit.Size = new System.Drawing.Size(78, 20);
this.TriggerNewLogStationaryTimeEdit.TabIndex = 2;
this.TriggerNewLogStationaryTimeEdit.Value = new decimal(new int[] {
30,
this.KMLLiveHelpLabel.AutoSize = true;
this.KMLLiveHelpLabel.ForeColor = System.Drawing.SystemColors.GrayText;
this.KMLLiveHelpLabel.Location = new System.Drawing.Point(124, 72);
this.KMLLiveHelpLabel.Name = "KMLLiveHelpLabel";
this.KMLLiveHelpLabel.Size = new System.Drawing.Size(352, 13);
this.KMLLiveHelpLabel.TabIndex = 5;
this.KMLLiveHelpLabel.Text = "Copy this link and use it in the Add > Network Link option in Google Earth";
//
// KMLLiveLinkEdit
//
this.KMLLiveLinkEdit.BackColor = System.Drawing.SystemColors.ButtonFace;
this.KMLLiveLinkEdit.Location = new System.Drawing.Point(123, 49);
this.KMLLiveLinkEdit.Name = "KMLLiveLinkEdit";
this.KMLLiveLinkEdit.ReadOnly = true;
this.KMLLiveLinkEdit.Size = new System.Drawing.Size(353, 20);
this.KMLLiveLinkEdit.TabIndex = 4;
//
// KMLLivePortEdit
//
this.KMLLivePortEdit.Enabled = false;
this.KMLLivePortEdit.Location = new System.Drawing.Point(123, 22);
this.KMLLivePortEdit.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.KMLLivePortEdit.Name = "KMLLivePortEdit";
this.KMLLivePortEdit.Size = new System.Drawing.Size(78, 20);
this.KMLLivePortEdit.TabIndex = 3;
this.KMLLivePortEdit.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.KMLLivePortEdit.Value = new decimal(new int[] {
2020,
0,
0,
0});
this.KMLLivePortEdit.ValueChanged += new System.EventHandler(this.KMLLivePortEdit_ValueChanged);
//
// TriggerNewLogStationaryUnitsLabel
// KMLLiveLinkLabel
//
this.TriggerNewLogStationaryUnitsLabel.AutoSize = true;
this.TriggerNewLogStationaryUnitsLabel.Location = new System.Drawing.Point(117, 71);
this.TriggerNewLogStationaryUnitsLabel.Name = "TriggerNewLogStationaryUnitsLabel";
this.TriggerNewLogStationaryUnitsLabel.Size = new System.Drawing.Size(47, 13);
this.TriggerNewLogStationaryUnitsLabel.TabIndex = 3;
this.TriggerNewLogStationaryUnitsLabel.Text = "seconds";
this.KMLLiveLinkLabel.AutoSize = true;
this.KMLLiveLinkLabel.Location = new System.Drawing.Point(30, 52);
this.KMLLiveLinkLabel.Name = "KMLLiveLinkLabel";
this.KMLLiveLinkLabel.Size = new System.Drawing.Size(30, 13);
this.KMLLiveLinkLabel.TabIndex = 1;
this.KMLLiveLinkLabel.Text = "Link:";
//
// KMLLiveCheckbox
//
this.KMLLiveCheckbox.AutoSize = true;
this.KMLLiveCheckbox.Location = new System.Drawing.Point(10, 23);
this.KMLLiveCheckbox.Name = "KMLLiveCheckbox";
this.KMLLiveCheckbox.Size = new System.Drawing.Size(107, 17);
this.KMLLiveCheckbox.TabIndex = 0;
this.KMLLiveCheckbox.Text = " Enabled on port:";
this.KMLLiveCheckbox.UseVisualStyleBackColor = true;
this.KMLLiveCheckbox.CheckedChanged += new System.EventHandler(this.KMLLiveEnabled_CheckedChanged);
//
// TryConnectTimer
//
this.TryConnectTimer.Interval = 5000;
this.TryConnectTimer.Tick += new System.EventHandler(this.TryConnectTimer_Tick);
//
// ChangesWhileRecordingLabel
//
this.ChangesWhileRecordingLabel.AutoSize = true;
this.ChangesWhileRecordingLabel.ForeColor = System.Drawing.Color.Red;
this.ChangesWhileRecordingLabel.Location = new System.Drawing.Point(191, 43);
this.ChangesWhileRecordingLabel.Name = "ChangesWhileRecordingLabel";
this.ChangesWhileRecordingLabel.Size = new System.Drawing.Size(265, 13);
this.ChangesWhileRecordingLabel.TabIndex = 8;
this.ChangesWhileRecordingLabel.Text = "changes will take effect once the recording is restarted";
this.ChangesWhileRecordingLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.ChangesWhileRecordingLabel.Visible = false;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(506, 309);
this.ClientSize = new System.Drawing.Size(506, 440);
this.Controls.Add(this.ChangesWhileRecordingLabel);
this.Controls.Add(this.KMLLiveGroupbox);
this.Controls.Add(this.TriggersGroupbox);
this.Controls.Add(this.RecordingStatusIcon);
this.Controls.Add(this.RecordButton);
@ -271,6 +399,8 @@
this.Controls.Add(this.FlightSimulatorLabel);
this.Controls.Add(this.FlightSimulatorStatusIcon);
this.Controls.Add(this.OutputGroupbox);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FS Flight Logger";
@ -281,6 +411,9 @@
this.TriggersGroupbox.ResumeLayout(false);
this.TriggersGroupbox.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.TriggerNewLogStationaryTimeEdit)).EndInit();
this.KMLLiveGroupbox.ResumeLayout(false);
this.KMLLiveGroupbox.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.KMLLivePortEdit)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -308,6 +441,16 @@
private System.Windows.Forms.NumericUpDown TriggerNewLogStationaryTimeEdit;
private System.Windows.Forms.CheckBox TriggerNewLogStationaryCheckbox;
private System.Windows.Forms.CheckBox TriggerWaitForMovementCheckbox;
private System.Windows.Forms.FolderBrowserDialog FolderBrowserDialog;
private System.Windows.Forms.GroupBox KMLLiveGroupbox;
private System.Windows.Forms.Label KMLLiveHelpLabel;
private System.Windows.Forms.TextBox KMLLiveLinkEdit;
private System.Windows.Forms.NumericUpDown KMLLivePortEdit;
private System.Windows.Forms.Label KMLLiveLinkLabel;
private System.Windows.Forms.CheckBox KMLLiveCheckbox;
private System.Windows.Forms.Timer TryConnectTimer;
private System.Windows.Forms.Label ChangesWhileRecordingLabel;
private System.Windows.Forms.CheckBox TriggerConnectedCheckbox;
}
}

View File

@ -1,12 +1,39 @@
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
using System;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using FSFlightLogger.Resources;
using Newtonsoft.Json;
using SimConnect;
namespace FSFlightLogger
{
public partial class MainForm : Form
public partial class MainForm : Form, ISimConnectClientObserver
{
private readonly ISimConnectClientFactory simConnectClientFactory;
private readonly CancellationTokenSource tryConnectCancellationTokenSource = new CancellationTokenSource();
private ISimConnectClient simConnectClient;
private SimConnectLogger logger;
private enum FlightSimulatorStateValue
{
Connecting,
Connected,
Disconnected,
Failed
}
private enum RecordingStateValue
{
Started,
Stopped
}
public MainForm(ISimConnectClientFactory simConnectClientFactory)
@ -15,9 +42,11 @@ namespace FSFlightLogger
InitializeComponent();
SetFlightSimulatorConnected(false);
SetRecording(false);
//var simConnectClient = simConnectClientFactory.TryConnect("FS Flight Logger");
FlightSimulatorState = FlightSimulatorStateValue.Connecting;
RecordingState = RecordingStateValue.Stopped;
LoadSettings();
TryConnect();
}
@ -29,21 +58,333 @@ namespace FSFlightLogger
{
if (disposing)
{
SaveSettings();
components?.Dispose();
simConnectClient?.DisposeAsync();
}
base.Dispose(disposing);
}
private void SetFlightSimulatorConnected(bool connected)
private string GetSettingsFilename()
{
FlightSimulatorStatusIcon.Image = StatusImageList.Images[connected ? "FSConnected" : "FSDisconnected"];
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"FSFlightLogger", @"config.json");
}
private void SetRecording(bool recording)
private void LoadSettings()
{
RecordingStatusIcon.Image = StatusImageList.Images[recording ? "Recording" : "Idle"];
var defaultPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), i18n.DefaultFolderName);
var settings = new Settings
{
CSVPath = defaultPath,
KMLEnabled = true,
KMLPath = defaultPath,
KMLLivePort = 2020,
TriggerWaitForMovement = true
};
var filename = GetSettingsFilename();
if (File.Exists(filename))
using (var streamReader = new StreamReader(filename, Encoding.UTF8))
{
var serializer = new JsonSerializer();
serializer.Populate(streamReader, settings);
}
if (settings.MainFormLeft.HasValue && settings.MainFormTop.HasValue)
{
StartPosition = FormStartPosition.Manual;
Left = settings.MainFormLeft.Value;
Top = settings.MainFormTop.Value;
// Check if the user did not unplug the screen that last contained the form
var formRectangle = new Rectangle(Left, Top, Width, Height);
if (!Screen.AllScreens.Any(s => s.WorkingArea.IntersectsWith(formRectangle)))
StartPosition = FormStartPosition.CenterScreen;
}
OutputCSVCheckbox.Checked = settings.CSVEnabled;
OutputCSVPathTextbox.Text = settings.CSVPath;
OutputKMLCheckbox.Checked = settings.KMLEnabled;
OutputKMLPathTextbox.Text = settings.KMLPath;
KMLLiveCheckbox.Checked = settings.KMLLiveEnabled;
KMLLivePortEdit.Value = settings.KMLLivePort;
TriggerConnectedCheckbox.Checked = settings.TriggerConnected;
TriggerWaitForMovementCheckbox.Checked = settings.TriggerWaitForMovement;
TriggerNewLogStationaryCheckbox.Checked = settings.TriggerNewLogStationaryEnabled;
TriggerNewLogStationaryTimeEdit.Value = settings.TriggerNewLogStationarySeconds;
UpdateKMLLiveLink();
}
private void SaveSettings()
{
var settings = new Settings
{
MainFormTop = Top,
MainFormLeft = Left,
CSVEnabled = OutputCSVCheckbox.Checked,
CSVPath = OutputCSVPathTextbox.Text,
KMLEnabled = OutputKMLCheckbox.Checked,
KMLPath = OutputKMLPathTextbox.Text,
KMLLiveEnabled = KMLLiveCheckbox.Checked,
KMLLivePort = (int)KMLLivePortEdit.Value,
TriggerConnected = TriggerConnectedCheckbox.Checked,
TriggerWaitForMovement = TriggerWaitForMovementCheckbox.Checked,
TriggerNewLogStationaryEnabled = TriggerNewLogStationaryCheckbox.Checked,
TriggerNewLogStationarySeconds = (int)TriggerNewLogStationaryTimeEdit.Value
};
var filename = GetSettingsFilename();
Directory.CreateDirectory(Path.GetDirectoryName(filename));
using (var streamWriter = new StreamWriter(filename, false, Encoding.UTF8))
{
var serializer = new JsonSerializer();
serializer.Serialize(streamWriter, settings);
}
}
private void TryConnect()
{
FlightSimulatorState = FlightSimulatorStateValue.Connecting;
simConnectClientFactory.TryConnect(@"FS Flight Logger")
.ContinueWith((task, state) =>
{
if (task.Result == null)
{
FlightSimulatorState = FlightSimulatorStateValue.Failed;
TryConnectTimer.Enabled = true;
}
else
{
simConnectClient = task.Result;
simConnectClient.AttachObserver(this);
logger = new SimConnectLogger(simConnectClient);
if (TriggerConnectedCheckbox.Checked)
StartRecording();
FlightSimulatorState = FlightSimulatorStateValue.Connected;
}
},
null, tryConnectCancellationTokenSource.Token, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
}
public void OnQuit()
{
if (InvokeRequired)
{
Invoke(new Action(OnQuit));
return;
}
FlightSimulatorState = FlightSimulatorStateValue.Disconnected;
TryConnectTimer.Enabled = true;
}
private FlightSimulatorStateValue internalFlightSimulatorState;
private FlightSimulatorStateValue FlightSimulatorState
{
get => internalFlightSimulatorState;
set
{
if (value == internalFlightSimulatorState)
return;
internalFlightSimulatorState = value;
var isConnected = value == FlightSimulatorStateValue.Connected;
FlightSimulatorStatusIcon.Image = StatusImageList.Images[isConnected ? @"FSConnected" : @"FSDisconnected"];
switch (value)
{
case FlightSimulatorStateValue.Connecting:
FlightSimulatorStatusLabel.Text = i18n.FlightSimulatorConnecting;
break;
case FlightSimulatorStateValue.Connected:
FlightSimulatorStatusLabel.Text = i18n.FlightSimulatorConnected;
break;
case FlightSimulatorStateValue.Disconnected:
FlightSimulatorStatusLabel.Text = string.Format(i18n.FlightSimulatorQuit, TryConnectTimer.Interval / 1000);
break;
case FlightSimulatorStateValue.Failed:
FlightSimulatorStatusLabel.Text = string.Format(i18n.FlightSimulatorFailed, TryConnectTimer.Interval / 1000);
break;
}
CheckCanRecord();
if (!isConnected)
RecordingState = RecordingStateValue.Stopped;
}
}
private RecordingStateValue internalRecordingState;
private RecordingStateValue RecordingState
{
get => internalRecordingState;
set
{
if (value == internalRecordingState)
return;
internalRecordingState = value;
var isRecording = value == RecordingStateValue.Started;
RecordingStatusIcon.Image = StatusImageList.Images[isRecording ? @"Recording" : @"Idle"];
RecordButton.Text = isRecording ? i18n.RecordButtonStop : i18n.RecordButtonStart;
if (!isRecording)
ChangesWhileRecordingLabel.Visible = false;
}
}
private void StartRecording()
{
SaveSettings();
Task.Run(async () =>
{
await logger.Start(new SimConnectLogger.Config
{
CSVOutputPath = OutputCSVCheckbox.Checked ? OutputCSVPathTextbox.Text : null,
KMLOutputPath = OutputKMLCheckbox.Checked ? OutputKMLPathTextbox.Text : null,
KMLLivePort = KMLLiveCheckbox.Checked ? (int) KMLLivePortEdit.Value : (int?) null,
IntervalTime = TimeSpan.FromSeconds(1), // TODO configurable
IntervalDistance = 1, // TODO configurable
WaitForMovement = TriggerWaitForMovementCheckbox.Checked,
NewLogWhenIdleSeconds = TriggerNewLogStationaryCheckbox.Checked
? TimeSpan.FromSeconds((double) TriggerNewLogStationaryTimeEdit.Value)
: (TimeSpan?) null
});
});
RecordingState = RecordingStateValue.Started;
}
private void StopRecording()
{
Task.Run(async () => await logger.Stop());
RecordingState = RecordingStateValue.Stopped;
}
private void UpdateKMLLiveLink()
{
KMLLiveLinkEdit.Text = $@"http://localhost:{KMLLivePortEdit.Value}/live";
}
private void CheckChangesWhileRecording()
{
if (RecordingState == RecordingStateValue.Started)
ChangesWhileRecordingLabel.Visible = true;
}
private void CheckCanRecord()
{
RecordButton.Enabled = FlightSimulatorState == FlightSimulatorStateValue.Connected &&
(OutputCSVCheckbox.Checked || OutputKMLCheckbox.Checked || KMLLiveCheckbox.Checked);
}
private void TryConnectTimer_Tick(object sender, EventArgs e)
{
TryConnectTimer.Enabled = false;
TryConnect();
}
private void OutputCSVCheckbox_CheckedChanged(object sender, EventArgs e)
{
OutputCSVPathTextbox.Enabled = OutputCSVCheckbox.Checked;
OutputCSVPathBrowseButton.Enabled = OutputCSVCheckbox.Checked;
CheckChangesWhileRecording();
CheckCanRecord();
}
private void OutputKMLCheckbox_CheckedChanged(object sender, EventArgs e)
{
OutputKMLPathTextbox.Enabled = OutputKMLCheckbox.Checked;
OutputKMLPathBrowseButton.Enabled = OutputKMLCheckbox.Checked;
CheckChangesWhileRecording();
CheckCanRecord();
}
private void TriggerNewLogStationaryCheckbox_CheckedChanged(object sender, EventArgs e)
{
TriggerNewLogStationaryTimeEdit.Enabled = TriggerNewLogStationaryCheckbox.Checked;
CheckChangesWhileRecording();
}
private void KMLLiveEnabled_CheckedChanged(object sender, EventArgs e)
{
KMLLivePortEdit.Enabled = KMLLiveCheckbox.Checked;
CheckChangesWhileRecording();
CheckCanRecord();
}
private void SelectPath(Control pathTextBox)
{
FolderBrowserDialog.SelectedPath = pathTextBox.Text;
if (FolderBrowserDialog.ShowDialog(this) == DialogResult.OK)
pathTextBox.Text = FolderBrowserDialog.SelectedPath;
}
private void OutputCSVPathBrowseButton_Click(object sender, EventArgs e)
{
SelectPath(OutputCSVPathTextbox);
}
private void OutputKMLPathBrowseButton_Click(object sender, EventArgs e)
{
SelectPath(OutputKMLPathTextbox);
}
private void KMLLivePortEdit_ValueChanged(object sender, EventArgs e)
{
UpdateKMLLiveLink();
}
private void Configuration_Changed(object sender, EventArgs e)
{
CheckChangesWhileRecording();
}
private void RecordButton_Click(object sender, EventArgs e)
{
if (RecordingState == RecordingStateValue.Started)
StopRecording();
else
StartRecording();
}
}
}

View File

@ -124,351 +124,349 @@
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO
UAAAAk1TRnQBSQFMAgEBBAEAAQgBAAEIAQABIAEAASABAAT/ASEBA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ABiAH/AgQBbgH/AgABWQH/AgABTAH/AgABTAH/AlkBXwHgA04BlgMNARIwAAMR
BBcBIAMXASADFwEgAxcBIAMXASADFwEgAxcBIAMXASADFwEgAxcBIAMXASADFwEgAxcBIAMXASADFwEg
AxcBIAMXASADFwEgAxcBIAMXASADFwEgAxcBIAMOARMgAAMfAS0DKQE/AykBPwMpAT8DKQE/AykBPwMp
AT8DKQE/AykBPwMpAT8DKQE/AykBPwMpAT8DKQE/AykBPwMpAT8DKQE/AykBPwMpAT8DKQE/AykBPwMp
AT8DKQE/AxsBJjwAAyoBQANKAYoDWQG+A1kB7ANNAfIDTQHyA1QB7gNaAcADSgGNAywBRFgAAyoBQANK
AYoCVgFZAb4CSgFkAewCOQFZAfICOQFZAfICRgFhAe4CWAFaAcADSgGNAywBRP8ALQABQgFNAT4HAAE+
AwABKAMAAYADAAFAAwABAQEAAQEGAAEEFgAD//8A/wADAAH/AeABAwL/AeABAwH/AcACAAEDAcACAAED
Af8CAAL/AgAB/wGAAgABAwGAAgABAwH+AgABfwH+AgABfwGAAgABAQGAAgABAQH4AgABHwH4AgABHwGA
AgABAQGAAgABAQHwAgABDwHwAgABDwGAAgABAQGAAgABAQHwAgABBwHwAgABBwGAAgABAQGAAgABAQHg
AgABBwHgAgABBwGAAgABAQGAAgABAQHAAgABAwHAAgABAwGAAgABAQGAAgABAQGAAgABAQGAAgABAQGA
AgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQGAAgABAQgA
AYACAAEBAYACAAEBCAABgAIAAQEBgAIAAQEIAAGAAgABAQGAAgABAQgAAYACAAEBAYACAAEBCAABgAIA
AQEBgAIAAQEIAAGAAgABAQGAAgABAQgAAYACAAEBAYACAAEBCAABgAIAAQEBgAIAAQEIAAGAAgABAQGA
AgABAQgAAYACAAEBAYACAAEBAYACAAEBAYACAAEBAYACAAEBAYACAAEBAYACAAEBAYACAAEBAYACAAEB
AYACAAEBAcACAAEBAcACAAEBAYACAAEBAYACAAEBAcACAAEDAcACAAEDAYACAAEBAYACAAEBAeACAAEH
AeACAAEHAYACAAEBAYACAAEBAeACAAEHAeACAAEHAYACAAEBAYACAAEBAfACAAEPAfACAAEPAYACAAEB
AYACAAEBAfgCAAEfAfgCAAEfAcACAAEDAcACAAEDAf4CAAF/Af4CAAF/AcACAAEDAcACAAEDAf8CAAL/
AgAB/wHwAgABDwHwAgABDwH/AeABBwL/AeABBwn/Cw==
</value>
</data>
<metadata name="FolderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>154, 17</value>
</metadata>
<metadata name="TryConnectTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>319, 17</value>
</metadata>
</root>

View File

@ -3,7 +3,6 @@ using System.Windows.Forms;
using SimConnect;
using SimConnect.Concrete;
using SimpleInjector;
using SimpleInjector.Diagnostics;
namespace FSFlightLogger
{

126
FSFlightLogger/Resources/i18n.Designer.cs generated Normal file
View File

@ -0,0 +1,126 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FSFlightLogger.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class i18n {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal i18n() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FSFlightLogger.Resources.i18n", typeof(i18n).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Flight logs.
/// </summary>
internal static string DefaultFolderName {
get {
return ResourceManager.GetString("DefaultFolderName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Connected.
/// </summary>
internal static string FlightSimulatorConnected {
get {
return ResourceManager.GetString("FlightSimulatorConnected", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Connecting....
/// </summary>
internal static string FlightSimulatorConnecting {
get {
return ResourceManager.GetString("FlightSimulatorConnecting", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed, will retry in {0} seconds....
/// </summary>
internal static string FlightSimulatorFailed {
get {
return ResourceManager.GetString("FlightSimulatorFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Closed, will retry in {0} seconds....
/// </summary>
internal static string FlightSimulatorQuit {
get {
return ResourceManager.GetString("FlightSimulatorQuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &amp;Start recording.
/// </summary>
internal static string RecordButtonStart {
get {
return ResourceManager.GetString("RecordButtonStart", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &amp;Stop recording.
/// </summary>
internal static string RecordButtonStop {
get {
return ResourceManager.GetString("RecordButtonStop", resourceCulture);
}
}
}
}

View File

@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="DefaultFolderName" xml:space="preserve">
<value>Flight logs</value>
</data>
<data name="FlightSimulatorConnected" xml:space="preserve">
<value>Connected</value>
</data>
<data name="FlightSimulatorConnecting" xml:space="preserve">
<value>Connecting...</value>
</data>
<data name="FlightSimulatorFailed" xml:space="preserve">
<value>Failed, will retry in {0} seconds...</value>
</data>
<data name="FlightSimulatorQuit" xml:space="preserve">
<value>Closed, will retry in {0} seconds...</value>
</data>
<data name="RecordButtonStart" xml:space="preserve">
<value>&amp;Start recording</value>
</data>
<data name="RecordButtonStop" xml:space="preserve">
<value>&amp;Stop recording</value>
</data>
</root>

View File

@ -0,0 +1,20 @@
namespace FSFlightLogger
{
public class Settings
{
public int? MainFormLeft { get; set; }
public int? MainFormTop { get; set; }
public bool CSVEnabled { get; set; }
public string CSVPath { get; set; }
public bool KMLEnabled { get; set; }
public string KMLPath { get; set; }
public bool KMLLiveEnabled { get; set; }
public int KMLLivePort { get; set; }
public bool TriggerConnected { get; set; }
public bool TriggerWaitForMovement { get; set; }
public bool TriggerNewLogStationaryEnabled { get; set; }
public int TriggerNewLogStationarySeconds { get; set; }
}
}

View File

@ -0,0 +1,246 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using FlightLoggerLib;
using FlightLoggerLib.Concrete;
using Nito.AsyncEx;
using SimConnect;
using SimConnect.Attribute;
using SimConnect.Lib;
namespace FSFlightLogger
{
public class SimConnectLogger : IAsyncDisposable
{
private readonly ISimConnectClient client;
private SimConnectLoggerWorker worker;
public class Config
{
public string CSVOutputPath { get; set; }
public string KMLOutputPath { get; set; }
public int? KMLLivePort { get; set; }
public TimeSpan IntervalTime { get; set; }
public int IntervalDistance { get; set; }
public bool WaitForMovement { get; set; }
public TimeSpan? NewLogWhenIdleSeconds { get; set; }
}
public SimConnectLogger(ISimConnectClient client)
{
this.client = client;
}
public async ValueTask DisposeAsync()
{
// Do not dispose of client, it is managed by the caller
await Stop();
}
public async Task Start(Config config)
{
await Stop();
worker = new SimConnectLoggerWorker(client, config);
}
public async Task Stop()
{
if (worker != null)
{
await worker.DisposeAsync();
worker = null;
}
}
private class SimConnectLoggerWorker : IAsyncDisposable
{
private readonly Config config;
private readonly List<IFlightLogger> loggers = new List<IFlightLogger>();
private IAsyncDisposable definition;
private IAsyncDisposable simEvent;
private IAsyncDisposable pauseEvent;
private DateTime lastTime;
private PositionData lastData = PositionData.Empty();
private bool waitingForMovement;
private DateTime lastStopped;
private readonly AsyncLock simStateLock = new AsyncLock();
private volatile bool paused = true;
private volatile bool running = false;
public SimConnectLoggerWorker(ISimConnectClient client, Config config)
{
this.config = config;
if (!string.IsNullOrEmpty(config.CSVOutputPath))
{
Directory.CreateDirectory(config.CSVOutputPath);
loggers.Add(new CSVFlightLogger(config.CSVOutputPath));
}
if (!string.IsNullOrEmpty(config.KMLOutputPath))
{
Directory.CreateDirectory(config.KMLOutputPath);
loggers.Add(new KMLFlightLogger(config.KMLOutputPath, TimeSpan.FromSeconds(5)));
}
if (config.KMLLivePort.HasValue)
loggers.Add(new KMLLiveFlightLogger(config.KMLLivePort.Value));
waitingForMovement = config.WaitForMovement;
lastStopped = DateTime.Now;
pauseEvent = client.SubscribeToSystemEvent(SimConnectSystemEvent.Pause, HandlePauseEvent);
simEvent = client.SubscribeToSystemEvent(SimConnectSystemEvent.Sim, HandleSimEvent);
definition = client.AddDefinition<PositionData>(HandlePositionData);
}
public async ValueTask DisposeAsync()
{
if (definition != null)
{
await definition.DisposeAsync();
definition = null;
}
if (pauseEvent != null)
{
await pauseEvent.DisposeAsync();
pauseEvent = null;
}
if (simEvent != null)
{
await simEvent.DisposeAsync();
simEvent = null;
}
foreach (var logger in loggers)
await logger.DisposeAsync();
}
private async Task HandlePauseEvent(SimConnectSystemEventArgs args)
{
using (await simStateLock.LockAsync())
{
paused = ((SimConnectPauseSystemEventArgs)args).Paused;
}
}
private async Task HandleSimEvent(SimConnectSystemEventArgs args)
{
using (await simStateLock.LockAsync())
{
running = ((SimConnectSimSystemEventArgs)args).SimRunning;
}
}
private async Task HandlePositionData(PositionData data)
{
if (paused || !running)
return;
var moving = data.Airspeed > 0;
if (!moving && waitingForMovement)
return;
waitingForMovement = false;
// TODO take vertical position into account when going straight up or down (not a common use case, but still)
var distanceMeters = LatLon.DistanceBetweenInMeters(lastData.Latitude, lastData.Longitude, data.Latitude, data.Longitude);
if (distanceMeters < config.IntervalDistance)
{
if (data.Airspeed < 0.1)
data.Airspeed = 0;
// Make an exception if we were last moving and have now stopped, so the 0 velocity record is logged as well
if (data.Airspeed > 0 || lastData.Airspeed == 0)
return;
}
var now = DateTime.Now;
if (config.NewLogWhenIdleSeconds.HasValue)
{
if (moving)
{
if (now - lastStopped >= config.NewLogWhenIdleSeconds)
{
await Task.WhenAll(loggers.Select(logger =>
logger.NewLog()));
}
}
lastStopped = now;
}
var time = now - lastTime;
if (time < config.IntervalTime)
return;
lastTime = now;
lastData = data;
// ReSharper disable once AccessToDisposedClosure - covered by disposing the client first
await Task.WhenAll(loggers.Select(logger =>
logger.LogPosition(now, new FlightPosition
{
Latitude = data.Latitude,
Longitude = data.Longitude,
Altitude = data.Altitude,
Airspeed = data.Airspeed
})));
}
}
// ReSharper disable once ClassNeverInstantiated.Local - it is, by the SimConnect client
public class PositionData
{
[SimConnectVariable("PLANE LATITUDE", "degrees")]
public float Latitude;
[SimConnectVariable("PLANE LONGITUDE", "degrees")]
public float Longitude;
[SimConnectVariable("PLANE ALTITUDE", "feet")]
public float Altitude;
[SimConnectVariable("AIRSPEED INDICATED", "knots")]
public float Airspeed;
public static PositionData Empty()
{
return new PositionData
{
Latitude = 0,
Longitude = 0,
Altitude = 0,
Airspeed = 0
};
}
}
}
}

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FSFlightLogger {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class en_US {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal en_US() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FSFlightLogger.en-US", typeof(en_US).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,7 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.0.0" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
<package id="Nito.AsyncEx.Context" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Coordination" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Interop.WaitHandles" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Oop" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Tasks" version="5.0.0" targetFramework="net472" />
<package id="Nito.Cancellation" version="1.0.5" targetFramework="net472" />
<package id="Nito.Collections.Deque" version="1.0.4" targetFramework="net472" />
<package id="Nito.Disposables" version="2.0.0" targetFramework="net472" />
<package id="SimpleInjector" version="5.0.3" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.2" targetFramework="net472" />
<package id="System.Collections.Immutable" version="1.4.0" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
</packages>

View File

@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@ -55,8 +55,17 @@
<Reference Include="CommandLine, Version=2.8.0.0, Culture=neutral, PublicKeyToken=5a870481e358d379, processorArchitecture=MSIL">
<HintPath>..\packages\CommandLineParser.2.8.0\lib\net461\CommandLine.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />

View File

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using CommandLine;
@ -15,6 +16,7 @@ using SimConnect.Lib;
namespace FSFlightLoggerCmd
{
// TODO verb for converting CSV to KML
// TODO with the introduction of the GUI and SimConnectLogger, either port to SimConnectLogger for a single code base or remove this project
public class PositionData
@ -115,7 +117,7 @@ namespace FSFlightLoggerCmd
};
client.AddDefinition<PositionData>(data =>
client.AddDefinition<PositionData>(async data =>
{
// TODO take vertical position into account when going straight up or down (not a common use case, but still)
var distanceMeters = LatLon.DistanceBetweenInMeters(lastData.Latitude, lastData.Longitude, data.Latitude, data.Longitude);
@ -140,14 +142,14 @@ namespace FSFlightLoggerCmd
lastData = data;
// ReSharper disable once AccessToDisposedClosure - covered by disposing the client first
loggers.ForEach(logger =>
await Task.WhenAll(loggers.Select(logger =>
logger.LogPosition(now, new FlightPosition
{
Latitude = data.Latitude,
Longitude = data.Longitude,
Altitude = data.Altitude,
Airspeed = data.Airspeed
}));
})));
});
@ -163,8 +165,8 @@ namespace FSFlightLoggerCmd
stopEvent.Wait(Timeout.Infinite);
Console.WriteLine("Closing...");
client.Dispose();
loggers.ForEach(logger => logger.Dispose());
client.DisposeAsync();
loggers.ForEach(logger => logger.DisposeAsync());
if (!Debugger.IsAttached)
return;

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CommandLineParser" version="2.8.0" targetFramework="net472" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
</packages>

View File

@ -11,25 +11,30 @@ namespace FlightLoggerLib.Concrete
{
public class CSVFlightLogger : IFlightLogger
{
private readonly CsvWriter output;
private readonly string path;
private CsvWriter output;
public CSVFlightLogger(string path)
{
var filename = Path.Combine(path, DateTime.Now.ToString("yyyy-MM-dd HH.mm.ss") + ".csv");
var header = !File.Exists(filename);
output = new CsvWriter(new StreamWriter(filename, true), new CsvConfiguration(CultureInfo.CurrentCulture)
{
SanitizeForInjection = false,
HasHeaderRecord = header
});
this.path = path;
}
public void Dispose()
public async ValueTask DisposeAsync()
{
output?.Dispose();
if (output != null)
await output.DisposeAsync();
}
public async Task NewLog()
{
if (output != null)
{
await output.DisposeAsync();
output = null;
}
}
@ -44,6 +49,18 @@ namespace FlightLoggerLib.Concrete
Airspeed = position.Airspeed
};
if (output == null)
{
var filename = Path.Combine(path, eventTime.ToString("yyyy-MM-dd HH.mm.ss") + ".csv");
var header = !File.Exists(filename);
output = new CsvWriter(new StreamWriter(filename, true), new CsvConfiguration(CultureInfo.CurrentCulture)
{
SanitizeForInjection = false,
HasHeaderRecord = header
});
}
await output.WriteRecordsAsync(Enumerable.Repeat(record, 1));
await output.FlushAsync();
}

View File

@ -1,6 +1,5 @@
using System;
using System.IO;
using System.Linq.Expressions;
using System.Threading.Tasks;
using SharpKml.Base;
using SharpKml.Dom;
@ -9,11 +8,12 @@ namespace FlightLoggerLib.Concrete
{
public class KMLFlightLogger : IFlightLogger
{
private readonly string filename;
private readonly string path;
private string filename;
private readonly System.TimeSpan flushInterval;
private readonly Document output;
private readonly Folder rootFolder;
private readonly LineString positionPath;
private Document output;
private Folder rootFolder;
private LineString positionPath;
private DateTime lastFlush = DateTime.MinValue;
private Vector lastPosition;
@ -23,11 +23,74 @@ namespace FlightLoggerLib.Concrete
public KMLFlightLogger(string path, System.TimeSpan flushInterval)
{
var dateString = DateTime.Now.ToString("yyyy-MM-dd HH.mm.ss");
filename = Path.Combine(path, dateString + ".kml");
this.path = path;
this.flushInterval = flushInterval;
}
public async Task NewLog()
{
if (output == null)
return;
CheckEndPoint();
await Flush();
output = null;
}
public async ValueTask DisposeAsync()
{
if (output == null)
return;
CheckEndPoint();
await Flush();
}
protected void CheckEndPoint()
{
// TODO replace last "full stop" point if they match
if (lastPosition != null)
{
AddPoint(lastPosition, "End", "end");
lastPosition = null;
}
}
protected async Task AutoFlush()
{
var now = DateTime.Now;
var diff = now - lastFlush;
if (diff < flushInterval)
return;
await Flush();
lastFlush = now;
}
protected async Task Flush()
{
var serializer = new Serializer();
serializer.Serialize(output);
using (var writer = new StreamWriter(filename))
{
await writer.WriteAsync(serializer.Xml);
}
}
protected void EnsureOutput(DateTime eventTime)
{
if (output != null)
return;
var dateString = eventTime.ToString("yyyy-MM-dd HH.mm.ss");
filename = Path.Combine(path, dateString + ".kml");
// Create folder
rootFolder = new Folder
{
@ -65,38 +128,6 @@ namespace FlightLoggerLib.Concrete
output.AddFeature(rootFolder);
}
public void Dispose()
{
if (lastPosition != null)
AddPoint(lastPosition, "End", "end");
Flush().Wait();
}
protected async Task AutoFlush()
{
var now = DateTime.Now;
var diff = now - lastFlush;
if (diff < flushInterval)
return;
await Flush();
lastFlush = now;
}
protected async Task Flush()
{
var serializer = new Serializer();
serializer.Serialize(output);
using (var writer = new StreamWriter(filename))
{
await writer.WriteAsync(serializer.Xml);
}
}
protected void AddFlightPathStyleMap()
{
@ -185,6 +216,8 @@ namespace FlightLoggerLib.Concrete
public async Task LogPosition(DateTime eventTime, FlightPosition position)
{
EnsureOutput(eventTime);
var altitudeMeters = position.Altitude * MetersPerFoot;
var coordinate = new Vector(position.Latitude, position.Longitude, altitudeMeters);

View File

@ -0,0 +1,164 @@
using System;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Ionic.BZip2;
using Nito.AsyncEx;
using SharpKml.Base;
using SharpKml.Dom;
namespace FlightLoggerLib.Concrete
{
public class KMLLiveFlightLogger : IFlightLogger
{
private readonly CancellationTokenSource listenerCancellationTokenSource = new CancellationTokenSource();
private readonly HttpListener listener;
private readonly Task listenerTask;
private readonly string baseUrl;
private FlightPosition currentPosition;
private readonly AsyncLock currentPositionLock = new AsyncLock();
private byte[] entryDocument;
private Document dynamicDocument;
private Placemark dynamicPlacemark;
public KMLLiveFlightLogger(int port)
{
baseUrl = $"http://127.0.0.1:{port}/";
PrepareEntryDocument();
listener = new HttpListener();
listener.Prefixes.Add(baseUrl);
listener.Start();
listenerTask = Task.Run(RunServer);
}
public async ValueTask DisposeAsync()
{
listener?.Stop();
listenerCancellationTokenSource.Cancel();
await listenerTask;
}
protected void PrepareEntryDocument()
{
var networkLink = new NetworkLink
{
Name = "Refreshes every 5 seconds",
Link = new Link
{
Href = new Uri($"{baseUrl}live/dynamic", UriKind.Absolute),
RefreshMode = RefreshMode.OnInterval,
RefreshInterval = 5
}
};
var output = new Document();
output.AddFeature(networkLink);
var serializer = new Serializer();
serializer.Serialize(output);
entryDocument = Encoding.UTF8.GetBytes(serializer.Xml);
}
protected void PrepareDynamicDocument(Vector coordinate, float altitudeInFeet)
{
var name = $"Live location ({altitudeInFeet:#} feet)";
if (dynamicPlacemark != null)
{
dynamicPlacemark.Name = name;
((Point)dynamicPlacemark.Geometry).Coordinate = coordinate;
return;
}
var point = new Point { Coordinate = coordinate, AltitudeMode = AltitudeMode.Absolute };
dynamicPlacemark = new Placemark
{
Name = name,
//StyleUrl = new Uri("#" + styleMapId, UriKind.Relative),
Geometry = point,
Visibility = true
};
dynamicDocument = new Document();
dynamicDocument.AddFeature(dynamicPlacemark);
}
public Task NewLog()
{
return Task.CompletedTask;
}
public async Task LogPosition(DateTime eventTime, FlightPosition position)
{
using (await currentPositionLock.LockAsync())
{
currentPosition = position;
}
}
private const float MetersPerFoot = 0.3048f;
private async Task RunServer()
{
while (!listenerCancellationTokenSource.IsCancellationRequested)
{
var context = await listener.GetContextAsync();
switch (context.Request.Url.AbsolutePath)
{
case "/live":
context.Response.StatusCode = 200;
await context.Response.OutputStream.WriteAsync(entryDocument, 0, entryDocument.Length);
break;
case "/live/dynamic":
{
byte[] buffer;
using (await currentPositionLock.LockAsync())
{
var altitudeFeet = currentPosition?.Altitude ?? -10;
var altitudeMeters = altitudeFeet * MetersPerFoot;
PrepareDynamicDocument(new Vector
{
Latitude = currentPosition?.Latitude ?? 24.999979,
Longitude = currentPosition?.Longitude ?? -70.999997,
Altitude = altitudeMeters
},
altitudeFeet);
var serializer = new Serializer();
serializer.Serialize(dynamicDocument);
buffer = Encoding.UTF8.GetBytes(serializer.Xml);
}
context.Response.StatusCode = 200;
await context.Response.OutputStream.WriteAsync(buffer, 0, buffer.Length);
break;
}
default:
context.Response.StatusCode = 404;
break;
}
context.Response.Close();
}
}
}
}

View File

@ -61,10 +61,37 @@
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Context, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Context.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Context.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Coordination, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Coordination.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Coordination.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Interop.WaitHandles, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Interop.WaitHandles.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Interop.WaitHandles.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Oop, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Oop.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Oop.dll</HintPath>
</Reference>
<Reference Include="Nito.AsyncEx.Tasks, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.Tasks.5.0.0\lib\netstandard2.0\Nito.AsyncEx.Tasks.dll</HintPath>
</Reference>
<Reference Include="Nito.Cancellation, Version=1.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Cancellation.1.0.5\lib\netstandard2.0\Nito.Cancellation.dll</HintPath>
</Reference>
<Reference Include="Nito.Collections.Deque, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Collections.Deque.1.0.4\lib\netstandard2.0\Nito.Collections.Deque.dll</HintPath>
</Reference>
<Reference Include="Nito.Disposables, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.Disposables.2.0.0\lib\netstandard2.0\Nito.Disposables.dll</HintPath>
</Reference>
<Reference Include="SharpKml.Core, Version=5.1.3.0, Culture=neutral, PublicKeyToken=9bb853c026a5c0ac, processorArchitecture=MSIL">
<HintPath>..\packages\SharpKml.Core.5.1.3\lib\net45\SharpKml.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Collections.Immutable, Version=1.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.1.4.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@ -83,6 +110,7 @@
<ItemGroup>
<Compile Include="Concrete\KMLFlightLogger.cs" />
<Compile Include="Concrete\CSVFlightLogger.cs" />
<Compile Include="Concrete\KMLLiveFlightLogger.cs" />
<Compile Include="IFlightLogger.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>

View File

@ -13,8 +13,9 @@ namespace FlightLoggerLib
public interface IFlightLogger : IDisposable
public interface IFlightLogger : IAsyncDisposable
{
Task NewLog();
Task LogPosition(DateTime eventTime, FlightPosition position);
//void LogEvent
}

View File

@ -4,7 +4,17 @@
<package id="DotNetZip.Reduced" version="1.9.1.8" targetFramework="net472" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net472" />
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net472" />
<package id="Nito.AsyncEx" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Context" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Coordination" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Interop.WaitHandles" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Oop" version="5.0.0" targetFramework="net472" />
<package id="Nito.AsyncEx.Tasks" version="5.0.0" targetFramework="net472" />
<package id="Nito.Cancellation" version="1.0.5" targetFramework="net472" />
<package id="Nito.Collections.Deque" version="1.0.4" targetFramework="net472" />
<package id="Nito.Disposables" version="2.0.0" targetFramework="net472" />
<package id="SharpKml.Core" version="5.1.3" targetFramework="net472" />
<package id="System.Collections.Immutable" version="1.4.0" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
<package id="System.Xml.XDocument" version="4.3.0" targetFramework="net472" />

View File

@ -5,7 +5,6 @@ using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Win32.SafeHandles;
namespace SimConnect.Concrete
{
@ -14,12 +13,16 @@ namespace SimConnect.Concrete
/// Requires the following DLL files to be present: FSX2020-SimConnect.dll, FSX-SE-SimConnect.dll, FSX-SE-SimConnect.dll, FSX-SimConnect.dll.
/// These are renamed versions of the SimConnect.dll from the various flight simulator installations.
/// </summary>
public class DefaultSimConnectClient : ISimConnectClient, IDisposable
public class DefaultSimConnectClient : ISimConnectClient
{
private readonly ISimConnectLibrary simConnectLibrary;
private SimConnectWorker worker;
private uint nextDefinitionID = 1;
private uint nextEventID = 1;
private readonly object observersLock = new object();
private readonly List<ISimConnectClientObserver> observers = new List<ISimConnectClientObserver>();
/// <summary>
@ -33,10 +36,12 @@ namespace SimConnect.Concrete
/// <inheritdoc />
public void Dispose()
public async ValueTask DisposeAsync()
{
worker?.Close().Wait();
simConnectLibrary?.Dispose();
worker?.Close();
if (simConnectLibrary != null)
await simConnectLibrary.DisposeAsync();
}
/// <summary>
@ -46,9 +51,7 @@ namespace SimConnect.Concrete
/// <returns></returns>
public async Task<bool> TryOpen(string appName)
{
if (worker != null)
await worker.Close();
worker?.Close();
worker = new SimConnectWorker(simConnectLibrary, appName);
return await worker.Open();
}
@ -57,12 +60,20 @@ namespace SimConnect.Concrete
/// <inheritdoc />
public void AttachObserver(ISimConnectClientObserver observer)
{
throw new NotImplementedException();
Monitor.Enter(observersLock);
try
{
observers.Add(observer);
}
finally
{
Monitor.Exit(observersLock);
}
}
/// <inheritdoc />
public IDisposable AddDefinition<T>(SimConnectDataHandlerAction<T> onData) where T : class
public IAsyncDisposable AddDefinition<T>(SimConnectDataHandlerAction<T> onData) where T : class
{
if (worker == null)
throw new InvalidOperationException("TryOpen must be called first");
@ -81,7 +92,41 @@ namespace SimConnect.Concrete
}
private class SimConnectDefinitionRegistration<T> : IDisposable where T : class
/// <inheritdoc />
public IAsyncDisposable SubscribeToSystemEvent(SimConnectSystemEvent systemEvent, SimConnectSystemEventAction onEvent)
{
if (worker == null)
throw new InvalidOperationException("TryOpen must be called first");
void HandleData(SimConnectRecvEvent recvEvent)
{
SimConnectSystemEventArgs args;
switch (systemEvent)
{
case SimConnectSystemEvent.Pause:
args = new SimConnectPauseSystemEventArgs { Paused = recvEvent.dwData == 1 };
break;
case SimConnectSystemEvent.Sim:
args = new SimConnectSimSystemEventArgs { SimRunning = recvEvent.dwData == 1 };
break;
default:
throw new ArgumentOutOfRangeException(nameof(systemEvent), systemEvent, null);
}
onEvent(args);
}
var eventRegistration = new SimConnectSystemEventRegistration(nextEventID, systemEvent, HandleData, worker);
nextEventID++;
return eventRegistration;
}
private class SimConnectDefinitionRegistration<T> : IAsyncDisposable where T : class
{
private readonly uint definitionID;
private readonly SimConnectWorker worker;
@ -96,9 +141,33 @@ namespace SimConnect.Concrete
}
public void Dispose()
public ValueTask DisposeAsync()
{
worker.UnregisterDefinition(definitionID);
return default;
}
}
private class SimConnectSystemEventRegistration : IAsyncDisposable
{
private readonly uint eventID;
private readonly SimConnectWorker worker;
public SimConnectSystemEventRegistration(uint eventID, SimConnectSystemEvent systemEvent, Action<SimConnectRecvEvent> onData, SimConnectWorker worker)
{
this.eventID = eventID;
this.worker = worker;
worker.SubscribeToSystemEvent(eventID, systemEvent, onData);
}
public ValueTask DisposeAsync()
{
worker.UnsubscribeFromSystemEvent(eventID);
return default;
}
}
@ -117,6 +186,7 @@ namespace SimConnect.Concrete
private readonly TaskCompletionSource<bool> openResult = new TaskCompletionSource<bool>();
private readonly ConcurrentDictionary<uint, Action<Stream>> definitionDataHandler = new ConcurrentDictionary<uint, Action<Stream>>();
private readonly ConcurrentDictionary<uint, Action<SimConnectRecvEvent>> eventDataHandler = new ConcurrentDictionary<uint, Action<SimConnectRecvEvent>>();
public SimConnectWorker(ISimConnectLibrary simConnectLibrary, string appName)
@ -135,12 +205,10 @@ namespace SimConnect.Concrete
}
public async Task Close()
public void Close()
{
closed = true;
workerPulse.Set();
await workerTask;
}
@ -170,6 +238,29 @@ namespace SimConnect.Concrete
}
public void SubscribeToSystemEvent(uint eventID, SimConnectSystemEvent systemEvent, Action<SimConnectRecvEvent> onData)
{
Enqueue(hSimConnect =>
{
eventDataHandler.AddOrUpdate(eventID, onData, (key, value) => onData);
var result = simConnectLibrary.SimConnect_SubscribeToSystemEvent(hSimConnect, eventID, systemEvent.ToString());
if (result == 0)
return;
});
}
public void UnsubscribeFromSystemEvent(uint eventID)
{
Enqueue(hSimConnect =>
{
eventDataHandler.TryRemove(eventID, out var unused);
simConnectLibrary.SimConnect_UnsubscribeFromSystemEvent(hSimConnect, eventID);
});
}
private void Enqueue(Action<IntPtr> work)
{
lock(workerLock)
@ -241,21 +332,30 @@ namespace SimConnect.Concrete
{
case SimConnectRecvID.Exception:
var recvException = Marshal.PtrToStructure<SimConnectRecvException>(dataPtr);
// TODO provide a way to get insight into exceptions
if (recvException.dwException == 0)
break;
break;
case SimConnectRecvID.Event:
var recvEvent = Marshal.PtrToStructure<SimConnectRecvEvent>(dataPtr);
if (!eventDataHandler.TryGetValue(recvEvent.uEventID, out var eventHandler))
break;
eventHandler(recvEvent);
break;
case SimConnectRecvID.SimobjectData:
case SimConnectRecvID.SimobjectDataByType:
var recvSimobjectData = Marshal.PtrToStructure<SimConnectRecvSimobjectData>(dataPtr);
if (!definitionDataHandler.TryGetValue((uint)recvSimobjectData.dwDefineID, out var dataHandler))
if (!definitionDataHandler.TryGetValue(recvSimobjectData.dwDefineID, out var dataHandler))
break;
unsafe
{
var streamOffset = Marshal.OffsetOf<SimConnectRecvSimobjectData>("dwData").ToInt32();
var stream = new UnmanagedMemoryStream((byte*)IntPtr.Add(dataPtr, streamOffset).ToPointer(), (long)dataSize - streamOffset);
var stream = new UnmanagedMemoryStream((byte*)IntPtr.Add(dataPtr, streamOffset).ToPointer(), dataSize - streamOffset);
dataHandler(stream);
}
break;

View File

@ -1,13 +1,50 @@
using System;
using System.Threading.Tasks;
namespace SimConnect
{
public enum SimConnectSystemEvent
{
/// <summary>
/// Request notifications when the flight is paused or unpaused. args will be of type SimConnectPauseSystemEventArgs.
/// </summary>
Pause,
/// <summary>
/// Request notifications when the flight is running or not. args will be of type SimConnectSimSystemEventArgs.
/// </summary>
Sim
}
public abstract class SimConnectSystemEventArgs
{
}
public class SimConnectPauseSystemEventArgs : SimConnectSystemEventArgs
{
public bool Paused { get; set; }
}
public class SimConnectSimSystemEventArgs : SimConnectSystemEventArgs
{
public bool SimRunning { get; set; }
}
public delegate Task SimConnectSystemEventAction(SimConnectSystemEventArgs args);
/// <summary>
/// Called when new data arrives from the SimConnect server.
/// </summary>
/// <param name="data">An instance of the data class as passed to AddDefinition containing the variable values</param>
/// <typeparam name="T">The data class as passed to AddDefinition</typeparam>
public delegate void SimConnectDataHandlerAction<in T>(T data) where T : class;
public delegate Task SimConnectDataHandlerAction<in T>(T data) where T : class;
/// <summary>
@ -26,7 +63,7 @@ namespace SimConnect
/// <summary>
/// Provides access to the SimConnect library.
/// </summary>
public interface ISimConnectClient : IDisposable
public interface ISimConnectClient : IAsyncDisposable
{
/// <summary>
/// Attaches the specified observer to receive status notifications.
@ -40,7 +77,16 @@ namespace SimConnect
/// </summary>
/// <param name="onData">A callback method which is called whenever a data update is received</param>
/// <typeparam name="T">A class defining the variables to monitor annotated using the SimConnectVariable attribute</typeparam>
/// <returns>An IDisposable which can be disposed to unregister the definition. Dispose is not required to be called when the client is disconnected, but will not throw an exception.</returns>
IDisposable AddDefinition<T>(SimConnectDataHandlerAction<T> onData) where T : class;
/// <returns>An IAsyncDisposable which can be disposed to unregister the definition. Dispose is not required to be called when the client is disconnected, but will not throw an exception.</returns>
IAsyncDisposable AddDefinition<T>(SimConnectDataHandlerAction<T> onData) where T : class;
/// <summary>
/// Subscribes to a SimConnect system event.
/// </summary>
/// <param name="systemEvent">The type of event to subscribe to.</param>
/// <param name="onEvent">The callback method called whenever the system event occurs.</param>
/// <returns>An IAsyncDisposable which can be disposed to unregister the definition. Dispose is not required to be called when the client is disconnected, but will not throw an exception.</returns>
IAsyncDisposable SubscribeToSystemEvent(SimConnectSystemEvent systemEvent, SimConnectSystemEventAction onEvent);
}
}

View File

@ -128,6 +128,17 @@ namespace SimConnect
}
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct SimConnectRecvEvent
{
public SimConnectRecv Recv;
public uint uGroupID;
public uint uEventID;
public uint dwData;
}
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct SimConnectRecvSimobjectData
{
@ -148,7 +159,7 @@ namespace SimConnect
/// <summary>
/// Provides a low-level interface to a compatible SimConnect.dll.
/// </summary>
public interface ISimConnectLibrary : IDisposable
public interface ISimConnectLibrary : IAsyncDisposable
{
uint SimConnect_Open(out IntPtr phSimConnect, string szName, IntPtr hwnd, uint userEventWin32, IntPtr hEventHandle, uint configIndex);
uint SimConnect_Close(IntPtr hSimConnect);
@ -158,6 +169,9 @@ namespace SimConnect
uint SimConnect_RequestDataOnSimObject(IntPtr hSimConnect, uint requestID, uint defineID, uint objectID, SimConnectPeriod period, uint flags, uint origin = 0, uint interval = 0, uint limit = 0);
uint SimConnect_GetNextDispatch(IntPtr hSimConnect, out IntPtr ppData, out uint pcbData);
uint SimConnect_SubscribeToSystemEvent(IntPtr hSimConnect, uint eventID, string systemEventName);
uint SimConnect_UnsubscribeFromSystemEvent(IntPtr hSimConnect, uint eventID);
}

View File

@ -56,8 +56,17 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
@ -94,5 +103,9 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,10 +1,11 @@
using System;
using System.Threading.Tasks;
using SimConnect.Lib;
#pragma warning disable 1591
namespace SimConnect.Unmanaged
{
public class SimConnectDLLLibrary : ISimConnectLibrary, IDisposable
public class SimConnectDLLLibrary : ISimConnectLibrary, IAsyncDisposable
{
private delegate uint SimConnectOpenProc(out IntPtr phSimConnect, string szName, IntPtr hwnd, uint userEventWin32, IntPtr hEventHandle, uint configIndex);
private delegate uint SimConnectCloseProc(IntPtr hSimConnect);
@ -12,6 +13,9 @@ namespace SimConnect.Unmanaged
private delegate uint SimConnectClearDataDefinitionProc(IntPtr hSimConnect, uint defineID);
private delegate uint SimConnectRequestDataOnSimObjectProc(IntPtr hSimConnect, uint requestID, uint defineID, uint objectID, SimConnectPeriod period, uint flags, uint origin = 0, uint interval = 0, uint limit = 0);
private delegate uint SimConnectGetNextDispatchProc(IntPtr hSimConnect, out IntPtr ppData, out uint pcbData);
private delegate uint SimConnectSubscribeToSystemEventProc(IntPtr hSimConnect, uint eventID, string systemEventName);
private delegate uint SimConnectUnsubscribeFromSystemEventProc(IntPtr hSimConnect, uint eventID);
private readonly UnmanagedLibrary library;
@ -21,6 +25,8 @@ namespace SimConnect.Unmanaged
private readonly SimConnectClearDataDefinitionProc simConnectClearDataDefinition;
private readonly SimConnectRequestDataOnSimObjectProc simConnectRequestDataOnSimObject;
private readonly SimConnectGetNextDispatchProc simConnectGetNextDispatch;
private readonly SimConnectSubscribeToSystemEventProc simConnectSubscribeToSystemEvent;
private readonly SimConnectUnsubscribeFromSystemEventProc simConnectUnsubscribeFromSystemEvent;
@ -33,11 +39,14 @@ namespace SimConnect.Unmanaged
simConnectClearDataDefinition = library.GetUnmanagedFunction<SimConnectClearDataDefinitionProc>("SimConnect_ClearDataDefinition");
simConnectRequestDataOnSimObject = library.GetUnmanagedFunction<SimConnectRequestDataOnSimObjectProc>("SimConnect_RequestDataOnSimObject");
simConnectGetNextDispatch = library.GetUnmanagedFunction<SimConnectGetNextDispatchProc>("SimConnect_GetNextDispatch");
simConnectSubscribeToSystemEvent = library.GetUnmanagedFunction<SimConnectSubscribeToSystemEventProc>("SimConnect_SubscribeToSystemEvent");
simConnectUnsubscribeFromSystemEvent = library.GetUnmanagedFunction<SimConnectUnsubscribeFromSystemEventProc>("SimConnect_UnsubscribeFromSystemEvent");
}
public void Dispose()
public ValueTask DisposeAsync()
{
library?.Dispose();
return default;
}
@ -72,6 +81,17 @@ namespace SimConnect.Unmanaged
{
return simConnectGetNextDispatch(hSimConnect, out ppData, out pcbData);
}
public uint SimConnect_SubscribeToSystemEvent(IntPtr hSimConnect, uint eventID, string systemEventName)
{
return simConnectSubscribeToSystemEvent(hSimConnect, eventID, systemEventName);
}
public uint SimConnect_UnsubscribeFromSystemEvent(IntPtr hSimConnect, uint eventID)
{
return simConnectUnsubscribeFromSystemEvent(hSimConnect, eventID);
}
}
}
#pragma warning restore 1591

15
SimConnect/app.config Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
</packages>

View File

@ -65,6 +65,12 @@
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
@ -89,6 +95,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FluentAssertions" version="5.10.3" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
<package id="xunit" version="2.4.1" targetFramework="net472" />
<package id="xunit.abstractions" version="2.0.3" targetFramework="net472" />
<package id="xunit.analyzers" version="0.10.0" targetFramework="net472" />