Browse Source

Verion 1.0.0.0 of simple tracking and telemetry client

Signed-off-by: Georgios Gerontakis <giwrgosgprog@gmail.com>
master
Georgios Gerontakis 5 years ago
parent
commit
e9e6f09bda
  1. 5
      README.md
  2. BIN
      tracking and telemetry/.vs/SimpleExample/v16/.suo
  3. BIN
      tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide
  4. BIN
      tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide-shm
  5. BIN
      tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide-wal
  6. 6
      tracking and telemetry/App.config
  7. 22
      tracking and telemetry/Program.cs
  8. 36
      tracking and telemetry/Properties/AssemblyInfo.cs
  9. 63
      tracking and telemetry/Properties/Resources.Designer.cs
  10. 117
      tracking and telemetry/Properties/Resources.resx
  11. 26
      tracking and telemetry/Properties/Settings.Designer.cs
  12. 7
      tracking and telemetry/Properties/Settings.settings
  13. 98
      tracking and telemetry/SimpleExample.csproj
  14. 28
      tracking and telemetry/SimpleExample.sln
  15. BIN
      tracking and telemetry/bin/Debug/MAVLink.dll
  16. BIN
      tracking and telemetry/bin/Debug/MAVLink.pdb
  17. BIN
      tracking and telemetry/bin/Debug/SimpleExample.exe
  18. 6
      tracking and telemetry/bin/Debug/SimpleExample.exe.config
  19. BIN
      tracking and telemetry/bin/Debug/SimpleExample.pdb
  20. BIN
      tracking and telemetry/bin/Debug/log4net.dll
  21. 32464
      tracking and telemetry/bin/Debug/log4net.xml
  22. BIN
      tracking and telemetry/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  23. BIN
      tracking and telemetry/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  24. BIN
      tracking and telemetry/obj/Debug/SimpleExample.Properties.Resources.resources
  25. 0
      tracking and telemetry/obj/Debug/SimpleExample.csproj.CopyComplete
  26. 14
      tracking and telemetry/obj/Debug/SimpleExample.csproj.FileListAbsolute.txt
  27. BIN
      tracking and telemetry/obj/Debug/SimpleExample.csproj.GenerateResource.cache
  28. BIN
      tracking and telemetry/obj/Debug/SimpleExample.csprojAssemblyReference.cache
  29. BIN
      tracking and telemetry/obj/Debug/SimpleExample.exe
  30. BIN
      tracking and telemetry/obj/Debug/SimpleExample.pdb
  31. BIN
      tracking and telemetry/obj/Debug/SimpleExample.simpleexample.resources
  32. BIN
      tracking and telemetry/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  33. 4
      tracking and telemetry/packages.config
  34. BIN
      tracking and telemetry/packages/log4net.2.0.8/.signature.p7s
  35. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net20-full/log4net.dll
  36. 31421
      tracking and telemetry/packages/log4net.2.0.8/lib/net20-full/log4net.xml
  37. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net35-client/log4net.dll
  38. 32259
      tracking and telemetry/packages/log4net.2.0.8/lib/net35-client/log4net.xml
  39. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net35-full/log4net.dll
  40. 32464
      tracking and telemetry/packages/log4net.2.0.8/lib/net35-full/log4net.xml
  41. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net40-client/log4net.dll
  42. 32259
      tracking and telemetry/packages/log4net.2.0.8/lib/net40-client/log4net.xml
  43. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net40-full/log4net.dll
  44. 32464
      tracking and telemetry/packages/log4net.2.0.8/lib/net40-full/log4net.xml
  45. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/net45-full/log4net.dll
  46. 32464
      tracking and telemetry/packages/log4net.2.0.8/lib/net45-full/log4net.xml
  47. BIN
      tracking and telemetry/packages/log4net.2.0.8/lib/netstandard1.3/log4net.dll
  48. BIN
      tracking and telemetry/packages/log4net.2.0.8/log4net.2.0.8.nupkg
  49. 146
      tracking and telemetry/simpleexample.Designer.cs
  50. 438
      tracking and telemetry/simpleexample.cs
  51. 123
      tracking and telemetry/simpleexample.resx
  52. 1
      tracking and telemetry/test.txt

5
README.md

@ -1,4 +1 @@
# Talos_Drones_Tracking_and_Telemetry
123
# Our official repository for the project on GitHub: [https://github.com/GeorgiosGerontakis/Talos_Drones_Tracking_and_Telemetry](https://github.com/GeorgiosGerontakis/Talos_Drones_Tracking_and_Telemetry)
# Talos_Drones_Tracking_and_Telemetry

BIN
tracking and telemetry/.vs/SimpleExample/v16/.suo

Binary file not shown.

BIN
tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide

Binary file not shown.

BIN
tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide-shm

Binary file not shown.

BIN
tracking and telemetry/.vs/SimpleExample/v16/Server/sqlite3/storage.ide-wal

Binary file not shown.

6
tracking and telemetry/App.config

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

22
tracking and telemetry/Program.cs

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SimpleExample
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new simpleexample());
}
}
}

36
tracking and telemetry/Properties/AssemblyInfo.cs

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SimpleExample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SimpleExample")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f554b77a-f3e2-407d-a9ce-299581e6c7b9")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

63
tracking and telemetry/Properties/Resources.Designer.cs

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SimpleExample.Properties {
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", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <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("SimpleExample.Properties.Resources", typeof(Resources).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;
}
}
}
}

117
tracking and telemetry/Properties/Resources.resx

@ -0,0 +1,117 @@
<?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.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="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" 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>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

26
tracking and telemetry/Properties/Settings.Designer.cs

@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SimpleExample.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

7
tracking and telemetry/Properties/Settings.settings

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

98
tracking and telemetry/SimpleExample.csproj

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{92360E56-A293-436C-8A29-0D0C37AF50A4}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SimpleExample</RootNamespace>
<AssemblyName>SimpleExample</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="simpleexample.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="simpleexample.Designer.cs">
<DependentUpon>simpleexample.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="simpleexample.resx">
<DependentUpon>simpleexample.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mavlink\MAVLink.csproj">
<Project>{20296734-5f3c-4593-a0d5-dd20b440b13a}</Project>
<Name>MAVLink</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

28
tracking and telemetry/SimpleExample.sln

@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleExample", "SimpleExample.csproj", "{92360E56-A293-436C-8A29-0D0C37AF50A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAVLink", "..\Mavlink\MAVLink.csproj", "{20296734-5F3C-4593-A0D5-DD20B440B13A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{92360E56-A293-436C-8A29-0D0C37AF50A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92360E56-A293-436C-8A29-0D0C37AF50A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{92360E56-A293-436C-8A29-0D0C37AF50A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92360E56-A293-436C-8A29-0D0C37AF50A4}.Release|Any CPU.Build.0 = Release|Any CPU
{20296734-5F3C-4593-A0D5-DD20B440B13A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20296734-5F3C-4593-A0D5-DD20B440B13A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20296734-5F3C-4593-A0D5-DD20B440B13A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20296734-5F3C-4593-A0D5-DD20B440B13A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

BIN
tracking and telemetry/bin/Debug/MAVLink.dll

Binary file not shown.

BIN
tracking and telemetry/bin/Debug/MAVLink.pdb

Binary file not shown.

BIN
tracking and telemetry/bin/Debug/SimpleExample.exe

Binary file not shown.

6
tracking and telemetry/bin/Debug/SimpleExample.exe.config

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

BIN
tracking and telemetry/bin/Debug/SimpleExample.pdb

Binary file not shown.

BIN
tracking and telemetry/bin/Debug/log4net.dll

Binary file not shown.

32464
tracking and telemetry/bin/Debug/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/obj/Debug/DesignTimeResolveAssemblyReferences.cache

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/SimpleExample.Properties.Resources.resources

Binary file not shown.

0
tracking and telemetry/obj/Debug/SimpleExample.csproj.CopyComplete

14
tracking and telemetry/obj/Debug/SimpleExample.csproj.FileListAbsolute.txt

@ -0,0 +1,14 @@
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\SimpleExample.exe.config
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\SimpleExample.exe
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\SimpleExample.pdb
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\log4net.dll
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\MAVLink.dll
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\MAVLink.pdb
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\bin\Debug\log4net.xml
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.csprojAssemblyReference.cache
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.Properties.Resources.resources
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.simpleexample.resources
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.csproj.GenerateResource.cache
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.csproj.CopyComplete
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.exe
C:\Users\Giorgos Ger\Desktop\MissionPlanner-master\MissionPlanner-master\ExtLibs\SimpleExample\obj\Debug\SimpleExample.pdb

BIN
tracking and telemetry/obj/Debug/SimpleExample.csproj.GenerateResource.cache

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/SimpleExample.csprojAssemblyReference.cache

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/SimpleExample.exe

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/SimpleExample.pdb

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/SimpleExample.simpleexample.resources

Binary file not shown.

BIN
tracking and telemetry/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll

Binary file not shown.

4
tracking and telemetry/packages.config

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.8" targetFramework="net461" />
</packages>

BIN
tracking and telemetry/packages/log4net.2.0.8/.signature.p7s

Binary file not shown.

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net20-full/log4net.dll

Binary file not shown.

31421
tracking and telemetry/packages/log4net.2.0.8/lib/net20-full/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net35-client/log4net.dll

Binary file not shown.

32259
tracking and telemetry/packages/log4net.2.0.8/lib/net35-client/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net35-full/log4net.dll

Binary file not shown.

32464
tracking and telemetry/packages/log4net.2.0.8/lib/net35-full/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net40-client/log4net.dll

Binary file not shown.

32259
tracking and telemetry/packages/log4net.2.0.8/lib/net40-client/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net40-full/log4net.dll

Binary file not shown.

32464
tracking and telemetry/packages/log4net.2.0.8/lib/net40-full/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/net45-full/log4net.dll

Binary file not shown.

32464
tracking and telemetry/packages/log4net.2.0.8/lib/net45-full/log4net.xml

File diff suppressed because it is too large

BIN
tracking and telemetry/packages/log4net.2.0.8/lib/netstandard1.3/log4net.dll

Binary file not shown.

BIN
tracking and telemetry/packages/log4net.2.0.8/log4net.2.0.8.nupkg

Binary file not shown.

146
tracking and telemetry/simpleexample.Designer.cs

@ -0,0 +1,146 @@
namespace SimpleExample
{
partial class simpleexample
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.CMB_comport = new System.Windows.Forms.ComboBox();
this.cmb_baudrate = new System.Windows.Forms.ComboBox();
this.but_connect = new System.Windows.Forms.Button();
this.but_armdisarm = new System.Windows.Forms.Button();
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
this.but_mission = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.SuspendLayout();
//
// CMB_comport
//
this.CMB_comport.FormattingEnabled = true;
this.CMB_comport.Location = new System.Drawing.Point(13, 13);
this.CMB_comport.Name = "CMB_comport";
this.CMB_comport.Size = new System.Drawing.Size(121, 21);
this.CMB_comport.TabIndex = 0;
this.CMB_comport.Click += new System.EventHandler(this.CMB_comport_Click);
//
// cmb_baudrate
//
this.cmb_baudrate.FormattingEnabled = true;
this.cmb_baudrate.Items.AddRange(new object[] {
"9600",
"14400",
"19200",
"28800",
"38400",
"57600",
"115200"});
this.cmb_baudrate.Location = new System.Drawing.Point(140, 12);
this.cmb_baudrate.Name = "cmb_baudrate";
this.cmb_baudrate.Size = new System.Drawing.Size(121, 21);
this.cmb_baudrate.TabIndex = 1;
//
// but_connect
//
this.but_connect.Location = new System.Drawing.Point(268, 12);
this.but_connect.Name = "but_connect";
this.but_connect.Size = new System.Drawing.Size(75, 23);
this.but_connect.TabIndex = 2;
this.but_connect.Text = "Connect";
this.but_connect.UseVisualStyleBackColor = true;
this.but_connect.Click += new System.EventHandler(this.but_connect_Click);
//
// but_armdisarm
//
this.but_armdisarm.Location = new System.Drawing.Point(452, 12);
this.but_armdisarm.Name = "but_armdisarm";
this.but_armdisarm.Size = new System.Drawing.Size(75, 23);
this.but_armdisarm.TabIndex = 3;
this.but_armdisarm.Text = "Arm/Disarm";
this.but_armdisarm.UseVisualStyleBackColor = true;
this.but_armdisarm.Click += new System.EventHandler(this.but_armdisarm_Click);
//
// but_mission
//
this.but_mission.Location = new System.Drawing.Point(349, 12);
this.but_mission.Name = "but_mission";
this.but_mission.Size = new System.Drawing.Size(97, 23);
this.but_mission.TabIndex = 4;
this.but_mission.Text = "Send Mission";
this.but_mission.UseVisualStyleBackColor = true;
this.but_mission.Click += new System.EventHandler(this.but_mission_Click);
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(12, 66);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(151, 277);
this.listBox1.TabIndex = 5;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(186, 66);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(329, 256);
this.richTextBox1.TabIndex = 6;
this.richTextBox1.Text = "";
//
// simpleexample
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(547, 363);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.but_mission);
this.Controls.Add(this.but_armdisarm);
this.Controls.Add(this.but_connect);
this.Controls.Add(this.cmb_baudrate);
this.Controls.Add(this.CMB_comport);
this.Name = "simpleexample";
this.Text = "Form1";
this.Load += new System.EventHandler(this.simpleexample_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ComboBox CMB_comport;
private System.Windows.Forms.ComboBox cmb_baudrate;
private System.Windows.Forms.Button but_connect;
private System.Windows.Forms.Button but_armdisarm;
private System.IO.Ports.SerialPort serialPort1;
private System.Windows.Forms.Button but_mission;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.RichTextBox richTextBox1;
}
}

438
tracking and telemetry/simpleexample.cs

@ -0,0 +1,438 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO.Ports;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SimpleExample
{
public partial class simpleexample : Form
{
MAVLink.MavlinkParse mavlink = new MAVLink.MavlinkParse();
bool armed = false;
// locking to prevent multiple reads on serial port
object readlock = new object();
// our target sysid
byte sysid;
// our target compid
byte compid;
// Giak stuff
List<uint> listItemIds = new List<uint>();
Dictionary<int, object> droneDataDictionary = new Dictionary<int, object>();
public simpleexample()
{
InitializeComponent();
}
private void but_connect_Click(object sender, EventArgs e)
{
// if the port is open close it
if (serialPort1.IsOpen)
{
serialPort1.Close();
return;
}
// set the comport options
serialPort1.PortName = CMB_comport.Text;
serialPort1.BaudRate = int.Parse(cmb_baudrate.Text);
// open the comport
serialPort1.Open();
// set timeout to 2 seconds
serialPort1.ReadTimeout = 2000;
BackgroundWorker bgw = new BackgroundWorker();
bgw.DoWork += bgw_DoWork;
bgw.RunWorkerAsync();
}
void bgw_DoWork(object sender, DoWorkEventArgs e)
{
while (serialPort1.IsOpen)
{
try
{
MAVLink.MAVLinkMessage packet;
lock (readlock)
{
// read any valid packet from the port
packet = mavlink.ReadPacket(serialPort1.BaseStream);
// check its valid
if (packet == null || packet.data == null)
continue;
}
// check to see if its a hb packet from the comport
if (packet.data.GetType() == typeof(MAVLink.mavlink_heartbeat_t))
{
var hb = (MAVLink.mavlink_heartbeat_t)packet.data;
// save the sysid and compid of the seen MAV
sysid = packet.sysid;
compid = packet.compid;
// request streams at 2 hz
var buffer = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.REQUEST_DATA_STREAM,
new MAVLink.mavlink_request_data_stream_t()
{
req_message_rate = 2,
req_stream_id = (byte)MAVLink.MAV_DATA_STREAM.ALL,
start_stop = 1,
target_component = compid,
target_system = sysid
});
serialPort1.Write(buffer, 0, buffer.Length);
buffer = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.HEARTBEAT, hb);
serialPort1.Write(buffer, 0, buffer.Length);
}
// from here we should check the the message is addressed to us
if (sysid != packet.sysid || compid != packet.compid)
continue;
Console.WriteLine(packet.msgtypename);
// Update the data in the dictionary.
//
droneDataDictionary[(int)packet.msgid] = packet.data;
listBox1.Invoke(new Action(() =>
{
if (!listBox1.Items.Contains(packet.msgtypename))
{
listBox1.Items.Add(packet.msgtypename);
listItemIds.Add(packet.msgid);
}
}));
if (packet.msgid == (byte)MAVLink.MAVLINK_MSG_ID.ATTITUDE)
//or
//if (packet.data.GetType() == typeof(MAVLink.mavlink_attitude_t))
{
var att = (MAVLink.mavlink_attitude_t)packet.data;
//Console.WriteLine(packet.msgtypename + " => " + att.pitch*57.2958 + " " + att.roll*57.2958);
}
string d = GetData((int)packet.msgid, packet.data);
BeginInvoke(new Action(() => richTextBox1.Text = d));
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
System.Threading.Thread.Sleep(1);
}
}
private string GetData(int id, object droneData)
{
string ret = "";
if (id == (int)MAVLink.MAVLINK_MSG_ID.HEARTBEAT)
{
MAVLink.mavlink_heartbeat_t data = (MAVLink.mavlink_heartbeat_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_heartbeat_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.POWER_STATUS)
{
MAVLink.mavlink_power_status_t data = (MAVLink.mavlink_power_status_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_power_status_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.LOCAL_POSITION_NED)
{
MAVLink.mavlink_local_position_ned_t data = (MAVLink.mavlink_local_position_ned_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_local_position_ned_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.VIBRATION)
{
MAVLink.mavlink_vibration_t data = (MAVLink.mavlink_vibration_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_vibration_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.VFR_HUD)
{
MAVLink.mavlink_vfr_hud_t data = (MAVLink.mavlink_vfr_hud_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_vfr_hud_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.SIMSTATE)
{
MAVLink.mavlink_simstate_t data = (MAVLink.mavlink_simstate_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_simstate_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.AHRS2)
{
MAVLink.mavlink_ahrs2_t data = (MAVLink.mavlink_ahrs2_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_ahrs2_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.AHRS3)
{
MAVLink.mavlink_ahrs3_t data = (MAVLink.mavlink_ahrs3_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_ahrs3_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.ATTITUDE)
{
MAVLink.mavlink_attitude_t data = (MAVLink.mavlink_attitude_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_attitude_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.MISSION_CURRENT)
{
MAVLink.mavlink_mission_current_t data = (MAVLink.mavlink_mission_current_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_mission_current_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.SERVO_OUTPUT_RAW)
{
MAVLink.mavlink_servo_output_raw_t data = (MAVLink.mavlink_servo_output_raw_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_servo_output_raw_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
else if (id == (int)MAVLink.MAVLINK_MSG_ID.SERVO_OUTPUT_RAW)
{
MAVLink.mavlink_servo_output_raw_t data = (MAVLink.mavlink_servo_output_raw_t)droneDataDictionary[id];
foreach (var field in typeof(MAVLink.mavlink_servo_output_raw_t).GetFields(BindingFlags.Instance |
BindingFlags.NonPublic |
BindingFlags.Public))
{
ret += String.Format("{0} = {1}\n", field.Name, field.GetValue(data));
}
}
return ret == "" ? "" : ret.Substring(0, ret.Length-1);
}
T readsomedata<T>(byte sysid,byte compid,int timeout = 2000)
{
DateTime deadline = DateTime.Now.AddMilliseconds(timeout);
lock (readlock)
{
// read the current buffered bytes
while (DateTime.Now < deadline)
{
var packet = mavlink.ReadPacket(serialPort1.BaseStream);
// check its not null, and its addressed to us
if (packet == null || sysid != packet.sysid || compid != packet.compid)
continue;
//Console.WriteLine(packet);
if (packet.data.GetType() == typeof (T))
{
return (T) packet.data;
}
}
}
throw new Exception("No packet match found");
}
private void but_armdisarm_Click(object sender, EventArgs e)
{
MAVLink.mavlink_command_long_t req = new MAVLink.mavlink_command_long_t();
req.target_system = 1;
req.target_component = 1;
req.command = (ushort)MAVLink.MAV_CMD.COMPONENT_ARM_DISARM;
req.param1 = armed ? 0 : 1;
armed = !armed;
/*
req.param2 = p2;
req.param3 = p3;
req.param4 = p4;
req.param5 = p5;
req.param6 = p6;
req.param7 = p7;
*/
byte[] packet = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.COMMAND_LONG, req);
serialPort1.Write(packet, 0, packet.Length);
try
{
var ack = readsomedata<MAVLink.mavlink_command_ack_t>(sysid, compid);
if (ack.result == (byte)MAVLink.MAV_RESULT.ACCEPTED)
{
}
}
catch
{
}
}
private void CMB_comport_Click(object sender, EventArgs e)
{
CMB_comport.DataSource = SerialPort.GetPortNames();
}
private void but_mission_Click(object sender, EventArgs e)
{
MAVLink.mavlink_mission_count_t req = new MAVLink.mavlink_mission_count_t();
req.target_system = 1;
req.target_component = 1;
// set wp count
req.count = 1;
byte[] packet = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.MISSION_COUNT, req);
//Console.WriteLine("MISSION_COUNT send");
serialPort1.Write(packet, 0, packet.Length);
var ack = readsomedata<MAVLink.mavlink_mission_request_t>(sysid, compid);
if (ack.seq == 0)
{
MAVLink.mavlink_mission_item_int_t req2 = new MAVLink.mavlink_mission_item_int_t();
req2.target_system = sysid;
req2.target_component = compid;
req2.command = (byte)MAVLink.MAV_CMD.WAYPOINT;
req2.current = 1;
req2.autocontinue = 0;
req2.frame = (byte)MAVLink.MAV_FRAME.GLOBAL_RELATIVE_ALT;
req2.y = (int) (115 * 1.0e7);
req2.x = (int) (-35 * 1.0e7);
req2.z = (float) (2.34);
req2.param1 = 0;
req2.param2 = 0;
req2.param3 = 0;
req2.param4 = 0;
req2.seq = 0;
packet = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.MISSION_ITEM_INT, req2);
//Console.WriteLine("MISSION_ITEM_INT send");
lock (readlock)
{
serialPort1.Write(packet, 0, packet.Length);
var ack2 = readsomedata<MAVLink.mavlink_mission_ack_t>(sysid, compid);
if ((MAVLink.MAV_MISSION_RESULT) ack2.type != MAVLink.MAV_MISSION_RESULT.MAV_MISSION_ACCEPTED)
{
}
}
MAVLink.mavlink_mission_ack_t req3 = new MAVLink.mavlink_mission_ack_t();
req3.target_system = 1;
req3.target_component = 1;
req3.type = 0;
packet = mavlink.GenerateMAVLinkPacket10(MAVLink.MAVLINK_MSG_ID.MISSION_ACK, req3);
//Console.WriteLine("MISSION_ACK send");
serialPort1.Write(packet, 0, packet.Length);
}
}
private void simpleexample_Load(object sender, EventArgs e)
{
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void listBox1_DoubleClick(object sender, EventArgs e)
{
}
}
}

123
tracking and telemetry/simpleexample.resx

@ -0,0 +1,123 @@
<?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>
<metadata name="serialPort1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

1
tracking and telemetry/test.txt

@ -0,0 +1 @@
test
Loading…
Cancel
Save