修复Release模式下不能识别IMU的bug、修复磁力计校准接口异常,优化磁力计校准数据加载时的磁力计异常数据校验

main
詹力 2025-01-27 22:28:36 +08:00
parent 42b0bb01fc
commit 368305c945
384 changed files with 7623 additions and 96625 deletions

Binary file not shown.

View File

@ -140,6 +140,10 @@ GenerateClassCluster=0
DocumentUniqueId=CNKHXQGS
[GeneratedDocument1]
DocumentPath=Project Outputs for GeekIMU\Design Rule Check - GeekIMU.html
DItemRevisionGUID=
[GeneratedDocument2]
DocumentPath=GeekIMU.PcbDoc.htm
DItemRevisionGUID=

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
v = [0 -2917 14504];
v2 = [63.0000 -138.0000 372.0000];

Binary file not shown.

View File

@ -1,31 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32106.194
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GEEKIMU Manager", "GEEKIMU Manager\GEEKIMU Manager.csproj", "{58377382-2E93-4106-8AD5-E13A430802E5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{58377382-2E93-4106-8AD5-E13A430802E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58377382-2E93-4106-8AD5-E13A430802E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58377382-2E93-4106-8AD5-E13A430802E5}.Debug|x86.ActiveCfg = Debug|x86
{58377382-2E93-4106-8AD5-E13A430802E5}.Debug|x86.Build.0 = Debug|x86
{58377382-2E93-4106-8AD5-E13A430802E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58377382-2E93-4106-8AD5-E13A430802E5}.Release|Any CPU.Build.0 = Release|Any CPU
{58377382-2E93-4106-8AD5-E13A430802E5}.Release|x86.ActiveCfg = Release|x86
{58377382-2E93-4106-8AD5-E13A430802E5}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CF11BC9C-A1BC-46AC-BE4B-0ABCE3E903EE}
EndGlobalSection
EndGlobal

View File

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

View File

@ -1,336 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>SharpGL.WinForms</name>
</assembly>
<members>
<member name="T:SharpGL.Controls.GLColourPicker">
<summary>
Summary description for GLColourPicker.
</summary>
</member>
<member name="F:SharpGL.Controls.GLColourPicker.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.Controls.GLColourPicker.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.Controls.GLColourPicker.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpGL.Controls.MaterialListViewItem">
<summary>
This allows a list view item to be created from a material, which is really
useful, especially for 3D apps. For more advanced functionality, just derive
from this class, as there's a lot of good code here. Writing this sort of
class from scratch is pointless.
At the moment this class is not working properly, because of changes to the
material class, use with caution!
</summary>
</member>
<member name="M:SharpGL.Controls.MaterialListViewItem.#ctor(SharpGL.SceneGraph.Assets.Material,System.Windows.Forms.ImageList)">
<summary>
This function creates the list view item from a material, with an image
of the specified size.
</summary>
<param name="material">The material to create it from.</param>
<param name="sizeX">Size of the thumbnail.</param>
<param name="sizeY">Size of the thumbnail.</param>
</member>
<member name="T:SharpGL.OpenGLControl">
<summary>
This is the basic OpenGL control object, it gives all of the basic OpenGL functionality.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpGL.OpenGLControl"/> class.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.SetupDrawingTimer">
<summary>
Setups the drawing timer, based on the framerate settings.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.InitialiseOpenGL">
<summary>
Initialises OpenGL.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoRender">
<summary>
Manually perform rendering.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.Render(System.Drawing.Graphics)">
<summary>
Renders to the specified graphics.
</summary>
<param name="graphics">The graphics to render to.</param>
</member>
<member name="M:SharpGL.OpenGLControl.OnPaint(System.Windows.Forms.PaintEventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.Paint"/> event.
</summary>
<param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs"/> that contains the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.OnSizeChanged(System.EventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.SizeChanged"/> event.
</summary>
<param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.DoOpenGLInitialized">
<summary>
Calls the OpenGL initialized function.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoOpenGLDraw(SharpGL.RenderEventArgs)">
<summary>
Call this function in derived classes to do the OpenGL Draw event.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoGDIDraw(SharpGL.RenderEventArgs)">
<summary>
Call this function in derived classes to do the GDI Draw event.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.timerDrawing_Tick(System.Object,System.EventArgs)">
<summary>
Handles the Tick event of the timerDrawing control.
</summary>
<param name="sender">The source of the event.</param>
<param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.System#ComponentModel#ISupportInitialize#BeginInit">
<summary>
Signals the object that initialization is starting.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.System#ComponentModel#ISupportInitialize#EndInit">
<summary>
Signals the object that initialization is complete.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.timerDrawing">
<summary>
The timer used for drawing the control.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.gl">
<summary>
The OpenGL object for the control.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.stopwatch">
<summary>
A stopwatch used for timing rendering.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.renderContextType">
<summary>
The render context type.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.frameTime">
<summary>
The last frame time in milliseconds.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.frameRate">
<summary>
The framerate, in hertz.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.openGLVersion">
<summary>
The default desired OpenGL version.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpGL.OpenGLControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.OpenGLInitialized">
<summary>
Occurs when OpenGL has been initialized.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.OpenGLDraw">
<summary>
Occurs when OpenGL drawing should be performed.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.GDIDraw">
<summary>
Occurs when GDI drawing should be performed.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.Resized">
<summary>
Occurs when the control is resized. Can be used to perform custom viewport projections.
</summary>
</member>
<member name="P:SharpGL.OpenGLControl.OpenGL">
<summary>
Gets the OpenGL object.
</summary>
<value>The OpenGL.</value>
</member>
<member name="P:SharpGL.OpenGLControl.DrawFPS">
<summary>
Gets or sets a value indicating whether to draw FPS information.
</summary>
<value>
<c>true</c> if FPS info should be drawn; otherwise, <c>false</c>.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.FrameRate">
<summary>
Gets or sets the frame rate, in Hertz.
</summary>
<value>
The frame rate, in Hertz.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.RenderContextType">
<summary>
Gets or sets the type of the render context.
</summary>
<value>
The type of the render context.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.OpenGLVersion">
<summary>
Gets or sets the desired OpenGL version.
</summary>
<value>
The desired OpenGL version.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.RenderTrigger">
<summary>
Gets or sets the render trigger.
</summary>
<value>
The render trigger.
</value>
</member>
<member name="T:SharpGL.RenderEventHandler">
<summary>
Delegate for a Render Event.
</summary>
<param name="sender">The sender.</param>
<param name="args">The <see cref="T:SharpGL.RenderEventArgs"/> instance containing the event data.</param>
</member>
<member name="T:SharpGL.RenderEventArgs">
<summary>
The RenderEventArgs - arguments used for render envets.
</summary>
</member>
<member name="M:SharpGL.RenderEventArgs.#ctor(System.Drawing.Graphics)">
<summary>
Initializes a new instance of the <see cref="T:SharpGL.RenderEventArgs"/> class.
</summary>
<param name="graphics">The graphics.</param>
</member>
<member name="P:SharpGL.RenderEventArgs.Graphics">
<summary>
Gets the graphics.
</summary>
</member>
<member name="T:SharpGL.RenderTrigger">
<summary>
The RenderingMode - specifies how and when rendering
will occur in an OpenGL control.
</summary>
</member>
<member name="F:SharpGL.RenderTrigger.TimerBased">
<summary>
The Default RenderingMode, TimerBased. This mode means that
a timer will be set up based on the FPS property of the control.
</summary>
</member>
<member name="F:SharpGL.RenderTrigger.Manual">
<summary>
Rendering must be performed manually by using the DoRender function.
</summary>
</member>
<member name="T:SharpGL.SceneControl">
<summary>
The SceneControl is an OpenGLControl that contains and draws a Scene object.
</summary>
</member>
<member name="M:SharpGL.SceneControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.SceneControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="M:SharpGL.SceneControl.OnPaintBackground(System.Windows.Forms.PaintEventArgs)">
<summary>
Raises the <see cref="E:PaintBackground"/> event.
</summary>
<param name="e">The <see cref="T:System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
</member>
<member name="M:SharpGL.SceneControl.OnSizeChanged(System.EventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.SizeChanged"/> event.
</summary>
<param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
</member>
<member name="F:SharpGL.SceneControl.scene">
<summary>
This is the scene itself.
</summary>
</member>
<member name="T:SharpGL.Controls.VertexControl">
<summary>
Summary description for VertexControl.
</summary>
</member>
<member name="F:SharpGL.Controls.VertexControl.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.Controls.VertexControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.Controls.VertexControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
</members>
</doc>

View File

@ -1,69 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace DM_CalibrationTools
{
struct Quaternion{
public float w, x, y, z;
};
struct mVector3
{
public float x, y, z;
};
struct MagCaliParam
{
public float xOffset;
public float yOffset;
public float zOffset;
public float xScale;
public float yScale;
public float zScale;
};
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
class CaliAPI
{
[DllImport("libDM.dll", EntryPoint = "Init", CallingConvention = CallingConvention.Cdecl)]
public extern static int InitCaliAPI([MarshalAs(UnmanagedType.LPStr)]string devpath);
[DllImport("libDM.dll", EntryPoint = "CheckDevice", CallingConvention = CallingConvention.Cdecl)]
public extern static int CheckDevice();
[DllImport("libDM.dll", EntryPoint = "GyroCali", CallingConvention = CallingConvention.Cdecl)]
public extern static int GyroCali();
[DllImport("libDM.dll", EntryPoint = "GetGyroCali", CallingConvention = CallingConvention.Cdecl)]
public extern static mVector3 GetGyroCali();
[DllImport("libDM.dll", EntryPoint = "GetMagCali", CallingConvention = CallingConvention.Cdecl)]
public extern static MagCaliParam GetMagCali();
[DllImport("libDM.dll", EntryPoint = "MagCali", CallingConvention = CallingConvention.Cdecl)]
public extern static int MagCali();
[DllImport("libDM.dll", EntryPoint = "FinishMagCali", CallingConvention = CallingConvention.Cdecl)]
public extern static int FinishMagCali();
[DllImport("libDM.dll", EntryPoint = "SetMagCali", CallingConvention = CallingConvention.Cdecl)]
public extern static int SetMagCali(float x, float y, float z, float x0, float y0, float z0);
[DllImport("libDM.dll", EntryPoint = "CalculateMagParam", CallingConvention = CallingConvention.Cdecl)]
public extern static MagCaliParam CalculateMagParam();
[DllImport("libDM.dll", EntryPoint = "GetPoint", CallingConvention = CallingConvention.Cdecl)]
public extern static mVector3 GetPoint();
[DllImport("libDM.dll", EntryPoint = "GetEulerianAngle", CallingConvention = CallingConvention.Cdecl)]
public extern static mVector3 GetEulerianAngle();
[DllImport("libDM.dll", EntryPoint = "Correction", CallingConvention = CallingConvention.Cdecl)]
public extern static int Correction();
[DllImport("libDM.dll", EntryPoint = "GetQuaternion", CallingConvention = CallingConvention.Cdecl)]
public extern static Quaternion GetQuaternion();
}
}

View File

@ -1,172 +0,0 @@
<?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>{58377382-2E93-4106-8AD5-E13A430802E5}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DM_CalibrationTools</RootNamespace>
<AssemblyName>DM_CalibrationTools</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</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>DM_CalibrationTools.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>tools.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="SharpGL, Version=2.0.0.0, Culture=neutral, PublicKeyToken=27fc851303210b27, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>CSGL\SharpGL.dll</HintPath>
</Reference>
<Reference Include="SharpGL.SceneGraph, Version=1.0.0.0, Culture=neutral, PublicKeyToken=27fc851303210b27, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>CSGL\SharpGL.SceneGraph.dll</HintPath>
</Reference>
<Reference Include="SharpGL.WinForms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=27fc851303210b27, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>CSGL\SharpGL.WinForms.dll</HintPath>
</Reference>
<Reference Include="SkinForm">
<HintPath>3rdparty\skin\SkinForm.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CaliAPI.cs" />
<Compile Include="csgl.cs" />
<Compile Include="IMUConnect.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="IMUConnect.Designer.cs">
<DependentUpon>IMUConnect.cs</DependentUpon>
</Compile>
<Compile Include="IMUInformation.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="IMUInformation.Designer.cs">
<DependentUpon>IMUInformation.cs</DependentUpon>
</Compile>
<Compile Include="MainForms.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForms.Designer.cs">
<DependentUpon>MainForms.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="txtreader.cs" />
<EmbeddedResource Include="IMUConnect.resx">
<DependentUpon>IMUConnect.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="IMUInformation.resx">
<DependentUpon>IMUInformation.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForms.resx">
<DependentUpon>MainForms.cs</DependentUpon>
</EmbeddedResource>
<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>
<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>
<None Include="Resource\btn_close_18px_1.png" />
<None Include="Resource\tools.ico" />
<None Include="Resource\test.png" />
<None Include="Resource\download_48px.png" />
<None Include="Resource\settings_48px.png" />
<None Include="Resource\btn_mini_18px_1.png" />
<None Include="Resource\btn_setting_18px_1.png" />
<None Include="Resource\link_48px.png" />
<None Include="Resource\help_48px.png" />
<None Include="Resource\home_48px.png" />
<None Include="Resource\refresh_32px.png" />
<None Include="Resource\cancel_24px.png" />
<None Include="Resource\usb_783px.png" />
<None Include="Resource\question_48px.png" />
<None Include="Resource\question_32px.png" />
<None Include="Resource\3d_32px.png" />
<None Include="Resource\pose_32px.png" />
<None Include="Resource\earth_grid_32px.png" />
<Content Include="tools.ico" />
</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>

View File

@ -1,112 +0,0 @@
namespace DM_CalibrationTools
{
partial class IMUConnect
{
/// <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.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.Btn_not_recognition = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
this.label2.Location = new System.Drawing.Point(227, 437);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(544, 28);
this.label2.TabIndex = 2;
this.label2.Text = "请用USB连接IMU设备或者采用无线接收器连接IMU设备";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(379, 523);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(263, 17);
this.label1.TabIndex = 4;
this.label1.Text = "使用中遇到问题请加入技术支持群115438931";
//
// Btn_not_recognition
//
this.Btn_not_recognition.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.question_32px;
this.Btn_not_recognition.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.Btn_not_recognition.FlatAppearance.BorderSize = 0;
this.Btn_not_recognition.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_not_recognition.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btn_not_recognition.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(120)))), ((int)(((byte)(213)))));
this.Btn_not_recognition.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.Btn_not_recognition.Location = new System.Drawing.Point(785, 436);
this.Btn_not_recognition.Name = "Btn_not_recognition";
this.Btn_not_recognition.Size = new System.Drawing.Size(198, 32);
this.Btn_not_recognition.TabIndex = 3;
this.Btn_not_recognition.Text = "已经连接,但无法识别?";
this.Btn_not_recognition.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.Btn_not_recognition.UseVisualStyleBackColor = true;
//
// pictureBox1
//
this.pictureBox1.Image = global::DM_CalibrationTools.Properties.Resources.usb_783px;
this.pictureBox1.Location = new System.Drawing.Point(332, 44);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(349, 359);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// IMUConnect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1027, 557);
this.Controls.Add(this.label1);
this.Controls.Add(this.Btn_not_recognition);
this.Controls.Add(this.label2);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "IMUConnect";
this.Text = "IMUConnect";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button Btn_not_recognition;
private System.Windows.Forms.Label label1;
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DM_CalibrationTools
{
public partial class IMUConnect : Form
{
public IMUConnect()
{
InitializeComponent();
}
}
}

View File

@ -1,120 +0,0 @@
<?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>
</root>

View File

@ -1,506 +0,0 @@
namespace DM_CalibrationTools
{
partial class IMUInformation
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IMUInformation));
this.Gbox_OpenGL = new System.Windows.Forms.GroupBox();
this.GLpanel = new System.Windows.Forms.Panel();
this.openGLControl1 = new SharpGL.OpenGLControl();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.Panel_Bottom = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.BtnShowAngle = new System.Windows.Forms.Button();
this.btnLoadorCali = new System.Windows.Forms.Button();
this.btnResetCalibrationData = new System.Windows.Forms.Button();
this.btnCalliGyro = new System.Windows.Forms.Button();
this.Panel_Sensor_Information = new System.Windows.Forms.Panel();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.btnMagCalibtation = new System.Windows.Forms.Button();
this.label_dev_name = new System.Windows.Forms.Label();
this.labelAngle = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labelMagOffset = new System.Windows.Forms.Label();
this.labelGyroOffset = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.Gbox_OpenGL.SuspendLayout();
this.GLpanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.openGLControl1)).BeginInit();
this.Panel_Bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.Panel_Sensor_Information.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
this.SuspendLayout();
//
// Gbox_OpenGL
//
this.Gbox_OpenGL.Controls.Add(this.GLpanel);
this.Gbox_OpenGL.Location = new System.Drawing.Point(7, 6);
this.Gbox_OpenGL.Name = "Gbox_OpenGL";
this.Gbox_OpenGL.Size = new System.Drawing.Size(698, 499);
this.Gbox_OpenGL.TabIndex = 7;
this.Gbox_OpenGL.TabStop = false;
this.Gbox_OpenGL.Text = "3D显示";
//
// GLpanel
//
this.GLpanel.Controls.Add(this.openGLControl1);
this.GLpanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.GLpanel.Location = new System.Drawing.Point(3, 17);
this.GLpanel.Name = "GLpanel";
this.GLpanel.Size = new System.Drawing.Size(692, 479);
this.GLpanel.TabIndex = 10;
this.GLpanel.MouseEnter += new System.EventHandler(this.GLpanel_MouseEnter);
this.GLpanel.MouseLeave += new System.EventHandler(this.GLpanel_MouseLeave);
//
// openGLControl1
//
this.openGLControl1.BitDepth = 24;
this.openGLControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.openGLControl1.DrawFPS = true;
this.openGLControl1.FrameRate = 20;
this.openGLControl1.Location = new System.Drawing.Point(0, 0);
this.openGLControl1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.openGLControl1.Name = "openGLControl1";
this.openGLControl1.RenderContextType = SharpGL.RenderContextType.NativeWindow;
this.openGLControl1.Size = new System.Drawing.Size(692, 479);
this.openGLControl1.TabIndex = 0;
this.openGLControl1.OpenGLDraw += new System.Windows.Forms.PaintEventHandler(this.sceneControl1_OpenGLDraw);
this.openGLControl1.Resized += new System.EventHandler(this.sceneControl1_Resized);
this.openGLControl1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.sceneControl1_MouseDoubleClick);
this.openGLControl1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.sceneControl1_MouseDown);
this.openGLControl1.MouseEnter += new System.EventHandler(this.GLpanel_MouseEnter);
this.openGLControl1.MouseLeave += new System.EventHandler(this.GLpanel_MouseLeave);
this.openGLControl1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.sceneControl1_MouseMove);
this.openGLControl1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sceneControl1_MouseUp);
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 50;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// Panel_Bottom
//
this.Panel_Bottom.Controls.Add(this.button1);
this.Panel_Bottom.Controls.Add(this.pictureBox1);
this.Panel_Bottom.Controls.Add(this.linkLabel1);
this.Panel_Bottom.Controls.Add(this.BtnShowAngle);
this.Panel_Bottom.Controls.Add(this.btnLoadorCali);
this.Panel_Bottom.Controls.Add(this.btnResetCalibrationData);
this.Panel_Bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.Panel_Bottom.Location = new System.Drawing.Point(0, 506);
this.Panel_Bottom.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Panel_Bottom.Name = "Panel_Bottom";
this.Panel_Bottom.Size = new System.Drawing.Size(1027, 51);
this.Panel_Bottom.TabIndex = 12;
//
// button1
//
this.button1.BackgroundImage = global::DM_CalibrationTools.Properties.Resources._3d_32px;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 10F);
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button1.Location = new System.Drawing.Point(13, 7);
this.button1.Margin = new System.Windows.Forms.Padding(0, 2, 2, 2);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(119, 32);
this.button1.TabIndex = 19;
this.button1.Text = "3D场景显示";
this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.button1.UseVisualStyleBackColor = true;
//
// pictureBox1
//
this.pictureBox1.Image = global::DM_CalibrationTools.Properties.Resources.link_48px;
this.pictureBox1.Location = new System.Drawing.Point(866, 7);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(32, 32);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 13;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.linkLabel1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.linkLabel1.LinkColor = System.Drawing.Color.Black;
this.linkLabel1.Location = new System.Drawing.Point(899, 12);
this.linkLabel1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(122, 21);
this.linkLabel1.TabIndex = 12;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "电科神技淘宝店";
this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Aqua;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// BtnShowAngle
//
this.BtnShowAngle.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.pose_32px;
this.BtnShowAngle.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.BtnShowAngle.FlatAppearance.BorderSize = 0;
this.BtnShowAngle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnShowAngle.Font = new System.Drawing.Font("微软雅黑", 10F);
this.BtnShowAngle.Location = new System.Drawing.Point(136, 7);
this.BtnShowAngle.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.BtnShowAngle.Name = "BtnShowAngle";
this.BtnShowAngle.Size = new System.Drawing.Size(102, 32);
this.BtnShowAngle.TabIndex = 10;
this.BtnShowAngle.Text = "航向对准";
this.BtnShowAngle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.BtnShowAngle.UseVisualStyleBackColor = true;
this.BtnShowAngle.Click += new System.EventHandler(this.BtnShowAngle_Click);
//
// btnLoadorCali
//
this.btnLoadorCali.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.earth_grid_32px;
this.btnLoadorCali.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.btnLoadorCali.FlatAppearance.BorderSize = 0;
this.btnLoadorCali.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLoadorCali.Font = new System.Drawing.Font("微软雅黑", 10F);
this.btnLoadorCali.Location = new System.Drawing.Point(245, 7);
this.btnLoadorCali.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnLoadorCali.Name = "btnLoadorCali";
this.btnLoadorCali.Size = new System.Drawing.Size(128, 32);
this.btnLoadorCali.TabIndex = 10;
this.btnLoadorCali.Text = "加载磁力数据";
this.btnLoadorCali.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnLoadorCali.UseVisualStyleBackColor = false;
this.btnLoadorCali.Click += new System.EventHandler(this.button4_Click);
//
// btnResetCalibrationData
//
this.btnResetCalibrationData.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.refresh_32px;
this.btnResetCalibrationData.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.btnResetCalibrationData.FlatAppearance.BorderSize = 0;
this.btnResetCalibrationData.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnResetCalibrationData.Font = new System.Drawing.Font("微软雅黑", 10F);
this.btnResetCalibrationData.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnResetCalibrationData.Location = new System.Drawing.Point(376, 7);
this.btnResetCalibrationData.Margin = new System.Windows.Forms.Padding(0, 2, 2, 2);
this.btnResetCalibrationData.Name = "btnResetCalibrationData";
this.btnResetCalibrationData.Size = new System.Drawing.Size(127, 32);
this.btnResetCalibrationData.TabIndex = 9;
this.btnResetCalibrationData.Text = "重置校准数据";
this.btnResetCalibrationData.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnResetCalibrationData.UseVisualStyleBackColor = true;
this.btnResetCalibrationData.Click += new System.EventHandler(this.button2_Click);
//
// btnCalliGyro
//
this.btnCalliGyro.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.refresh_32px1;
this.btnCalliGyro.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.btnCalliGyro.FlatAppearance.BorderSize = 0;
this.btnCalliGyro.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCalliGyro.Font = new System.Drawing.Font("微软雅黑", 10F);
this.btnCalliGyro.Location = new System.Drawing.Point(19, 430);
this.btnCalliGyro.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnCalliGyro.Name = "btnCalliGyro";
this.btnCalliGyro.Size = new System.Drawing.Size(117, 32);
this.btnCalliGyro.TabIndex = 10;
this.btnCalliGyro.Text = "校准陀螺仪";
this.btnCalliGyro.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnCalliGyro.UseVisualStyleBackColor = true;
this.btnCalliGyro.Click += new System.EventHandler(this.button6_Click);
//
// Panel_Sensor_Information
//
this.Panel_Sensor_Information.BackColor = System.Drawing.Color.White;
this.Panel_Sensor_Information.Controls.Add(this.label9);
this.Panel_Sensor_Information.Controls.Add(this.label8);
this.Panel_Sensor_Information.Controls.Add(this.label7);
this.Panel_Sensor_Information.Controls.Add(this.label6);
this.Panel_Sensor_Information.Controls.Add(this.label5);
this.Panel_Sensor_Information.Controls.Add(this.label2);
this.Panel_Sensor_Information.Controls.Add(this.btnMagCalibtation);
this.Panel_Sensor_Information.Controls.Add(this.label_dev_name);
this.Panel_Sensor_Information.Controls.Add(this.btnCalliGyro);
this.Panel_Sensor_Information.Controls.Add(this.labelAngle);
this.Panel_Sensor_Information.Controls.Add(this.label4);
this.Panel_Sensor_Information.Controls.Add(this.label3);
this.Panel_Sensor_Information.Controls.Add(this.labelMagOffset);
this.Panel_Sensor_Information.Controls.Add(this.labelGyroOffset);
this.Panel_Sensor_Information.Controls.Add(this.label1);
this.Panel_Sensor_Information.Location = new System.Drawing.Point(710, 13);
this.Panel_Sensor_Information.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Panel_Sensor_Information.Name = "Panel_Sensor_Information";
this.Panel_Sensor_Information.Size = new System.Drawing.Size(306, 491);
this.Panel_Sensor_Information.TabIndex = 13;
this.Panel_Sensor_Information.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
//
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.Color.Transparent;
this.label9.Font = new System.Drawing.Font("微软雅黑", 10F);
this.label9.Location = new System.Drawing.Point(15, 128);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(121, 20);
this.label9.TabIndex = 18;
this.label9.Text = "无线传输:不支持";
//
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.Color.Transparent;
this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.Red;
this.label8.Location = new System.Drawing.Point(245, 103);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(44, 17);
this.label8.TabIndex = 17;
this.label8.Text = "未校准";
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.Red;
this.label7.Location = new System.Drawing.Point(245, 75);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(44, 17);
this.label7.TabIndex = 16;
this.label7.Text = "未校准";
//
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10F);
this.label6.Location = new System.Drawing.Point(16, 101);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(105, 20);
this.label6.TabIndex = 15;
this.label6.Text = "磁力计: 支持";
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("微软雅黑", 10F);
this.label5.Location = new System.Drawing.Point(16, 73);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(105, 20);
this.label5.TabIndex = 14;
this.label5.Text = "陀螺仪: 支持";
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 10F);
this.label2.Location = new System.Drawing.Point(16, 45);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(107, 20);
this.label2.TabIndex = 13;
this.label2.Text = "加速度计:支持";
//
// btnMagCalibtation
//
this.btnMagCalibtation.BackgroundImage = global::DM_CalibrationTools.Properties.Resources.refresh_32px1;
this.btnMagCalibtation.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.btnMagCalibtation.FlatAppearance.BorderSize = 0;
this.btnMagCalibtation.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMagCalibtation.Font = new System.Drawing.Font("微软雅黑", 10F);
this.btnMagCalibtation.Location = new System.Drawing.Point(156, 430);
this.btnMagCalibtation.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnMagCalibtation.Name = "btnMagCalibtation";
this.btnMagCalibtation.Size = new System.Drawing.Size(115, 32);
this.btnMagCalibtation.TabIndex = 10;
this.btnMagCalibtation.Text = "校准磁力计";
this.btnMagCalibtation.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnMagCalibtation.UseVisualStyleBackColor = true;
this.btnMagCalibtation.Click += new System.EventHandler(this.button3_Click);
//
// label_dev_name
//
this.label_dev_name.AutoSize = true;
this.label_dev_name.BackColor = System.Drawing.Color.Transparent;
this.label_dev_name.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label_dev_name.Location = new System.Drawing.Point(16, 11);
this.label_dev_name.Name = "label_dev_name";
this.label_dev_name.Size = new System.Drawing.Size(234, 19);
this.label_dev_name.TabIndex = 12;
this.label_dev_name.Text = "设备名称GeekIMU有线版 v1.0";
//
// labelAngle
//
this.labelAngle.AutoSize = true;
this.labelAngle.BackColor = System.Drawing.Color.Transparent;
this.labelAngle.Font = new System.Drawing.Font("微软雅黑", 10F);
this.labelAngle.Location = new System.Drawing.Point(16, 184);
this.labelAngle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelAngle.Name = "labelAngle";
this.labelAngle.Size = new System.Drawing.Size(27, 20);
this.labelAngle.TabIndex = 11;
this.labelAngle.Text = "---";
this.labelAngle.Click += new System.EventHandler(this.labelAngle_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(16, 157);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(52, 19);
this.label4.TabIndex = 1;
this.label4.Text = "欧拉角:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(16, 267);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(87, 19);
this.label3.TabIndex = 1;
this.label3.Text = "磁力计校准值";
//
// labelMagOffset
//
this.labelMagOffset.AutoSize = true;
this.labelMagOffset.BackColor = System.Drawing.Color.Transparent;
this.labelMagOffset.Font = new System.Drawing.Font("微软雅黑", 10F);
this.labelMagOffset.Location = new System.Drawing.Point(16, 295);
this.labelMagOffset.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelMagOffset.Name = "labelMagOffset";
this.labelMagOffset.Size = new System.Drawing.Size(27, 20);
this.labelMagOffset.TabIndex = 0;
this.labelMagOffset.Text = "---";
//
// labelGyroOffset
//
this.labelGyroOffset.AutoSize = true;
this.labelGyroOffset.BackColor = System.Drawing.Color.Transparent;
this.labelGyroOffset.Font = new System.Drawing.Font("微软雅黑", 10F);
this.labelGyroOffset.Location = new System.Drawing.Point(16, 239);
this.labelGyroOffset.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelGyroOffset.Name = "labelGyroOffset";
this.labelGyroOffset.Size = new System.Drawing.Size(27, 20);
this.labelGyroOffset.TabIndex = 0;
this.labelGyroOffset.Text = "---";
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(16, 214);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(91, 19);
this.label1.TabIndex = 0;
this.label1.Text = "陀螺仪校准值:";
//
// IMUInformation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1027, 557);
this.Controls.Add(this.Panel_Sensor_Information);
this.Controls.Add(this.Panel_Bottom);
this.Controls.Add(this.Gbox_OpenGL);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "IMUInformation";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.Resize += new System.EventHandler(this.Form1_Resize);
this.Gbox_OpenGL.ResumeLayout(false);
this.GLpanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.openGLControl1)).EndInit();
this.Panel_Bottom.ResumeLayout(false);
this.Panel_Bottom.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.Panel_Sensor_Information.ResumeLayout(false);
this.Panel_Sensor_Information.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox Gbox_OpenGL;
private System.Windows.Forms.Panel GLpanel;
private System.Windows.Forms.Button btnResetCalibrationData;
private System.Windows.Forms.Button btnMagCalibtation;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button btnLoadorCali;
private System.Windows.Forms.Panel Panel_Bottom;
private System.Windows.Forms.Button btnCalliGyro;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel Panel_Sensor_Information;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label labelMagOffset;
private System.Windows.Forms.Label labelGyroOffset;
private System.Windows.Forms.Button BtnShowAngle;
private System.Windows.Forms.Label labelAngle;
private System.Windows.Forms.Label label4;
private SharpGL.OpenGLControl openGLControl1;
private System.ComponentModel.BackgroundWorker backgroundWorker1;
private System.Windows.Forms.BindingSource bindingSource1;
private System.Windows.Forms.Label label_dev_name;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Button button1;
}
}

View File

@ -1,433 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SharpGL;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Diagnostics;
using System.Threading;
using CCWin;
namespace DM_CalibrationTools
{
// struct mVector3
// {
// public float x, y, z;
// };
public partial class IMUInformation : Form
{
Boolean global_IsCali=false;
HashSet<double[]> magcalidata = new HashSet<double[]>();
private Point mPoint;
bool isGetCalibrateData = false;
public IMUInformation()
{
InitializeComponent();
}
csgl gl;
private void Form1_Load(object sender, EventArgs e)
{
Console.WriteLine("C#:InitCaliAPI");
Debug.WriteLine(CaliAPI.InitCaliAPI("VID_2833&PID_0002"));
this.Text = "GeekIMU管理软件";
gl = new csgl(openGLControl1);
this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.GLpanel_MouseWheel);
// 默认状态为隐藏
//Gbox_OpenGL.Hide();
//Panel_Sensor_Information.Hide();
//Panel_Bottom.Hide();
DrawIMUInformationGrid(0, 0);
}
private void GLpanel_MouseWheel(object sender, MouseEventArgs e)
{
if (gl.Global_MouseInGLPanel)
gl.zoomCameraDelta(e.Delta / 60);
}
private void GLpanel_MouseEnter(object sender, EventArgs e)
{
gl.Global_MouseInGLPanel = true;
}
private void GLpanel_MouseLeave(object sender, EventArgs e)
{
gl.Global_MouseInGLPanel = false;
}
private void sceneControl1_OpenGLDraw(object sender, PaintEventArgs e)
{
gl.Draw();
}
private void sceneControl1_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Middle)
{
gl.resetView();
}
}
private void sceneControl1_MouseDown(object sender, MouseEventArgs e)
{
gl.Global_MouseDown = true;
gl.setMousePos(e.X, e.Y);
}
private void sceneControl1_MouseMove(object sender, MouseEventArgs e)
{if(gl!=null)
if (gl.Global_MouseDown)
{
if (e.Button == MouseButtons.Left && Control.ModifierKeys == Keys.Control)
{
gl.moveCameraXY(e.X, e.Y);
}
else if (e.Button == MouseButtons.Right && Control.ModifierKeys == Keys.Control)
{
gl.moveCameraZ(e.X, e.Y);
}
else if (e.Button == MouseButtons.Left)
{
gl.rotateCamera(e.X, e.Y);
}
else if (e.Button == MouseButtons.Right)
{
gl.zoomCamera(e.Y);
}
}
}
private void sceneControl1_MouseUp(object sender, MouseEventArgs e)
{
gl.Global_MouseDown = false;
gl.setMousePos(e.X, e.Y);
}
private void Form1_Resize(object sender, EventArgs e)
{
}
private void sceneControl1_Resized(object sender, EventArgs e)
{if(gl!=null)
gl.resize();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.Invoke(new EventHandler(delegate
{
if(global_IsCali)
{
if (magcalidata.Count <= 4000)
{
mVector3 v3f = CaliAPI.GetPoint();
double[] v3d = { v3f.x, v3f.y, v3f.z };
if (v3d[0] != -99999.0 || v3d[1] != -99999.0 || v3d[2] != -99999.0)
magcalidata.Add(v3d);
gl.setPointarr(magcalidata);
}
else
{
global_IsCali = false;
timer1.Interval = 100;
Debug.WriteLine("auto stop:" + CaliAPI.FinishMagCali());
}
}
if (global_IsCali)
{
btnLoadorCali.Enabled = false;
}
else
{
btnLoadorCali.Enabled = true;
}
if (CaliAPI.CheckDevice() == 1)
{
btnCalliGyro.Enabled = true;
btnResetCalibrationData.Enabled = true;
btnMagCalibtation.Enabled = true;
mVector3 v = CaliAPI.GetEulerianAngle();
if (v.x != -99999.0 || v.y != -99999.0 || v.z != -99999.0)
{
v.z += v.z > 0 ? -90 : 90;
v.y += 180;
v.y = v.y > 180 ? v.y - 360 : v.y;
labelAngle.Text = "Pitch : " + v.z.ToString("+#.#;-#.#;0") + "° " +
" Roll : " + v.y.ToString("+#.#;-#.#;0") + "° " +
" Yaw : " + v.x.ToString("+#.#;-#.#;0") + "°";
}
if (isGetCalibrateData == false) {
MagCaliParam p = CaliAPI.GetMagCali();
mVector3 g = CaliAPI.GetGyroCali();
labelMagOffset.Text = p.xOffset + " " + p.xScale + "\n" + p.yOffset + " " + p.yScale + "\n" + p.yOffset + " " + p.zScale;
labelGyroOffset.Text = g.x + " " + g.y + " " + g.z;
isGetCalibrateData = true;
}
}
else
{
btnCalliGyro.Enabled = false;
btnResetCalibrationData.Enabled = false;
btnMagCalibtation.Enabled = false;
}
}));
}
private void button3_Click(object sender, EventArgs e)
{
gl.DrawFlag = 1;
if (btnMagCalibtation.Text.Equals("开始校准磁力计"))
{
this.Invoke(new EventHandler(delegate
{
magcalidata.Clear();
CaliAPI.MagCali();
global_IsCali = true;
timer1.Interval = 5;
}));
btnMagCalibtation.Text = "结束校准磁力计";
}
else
{
global_IsCali = false;
timer1.Interval = 50;
CaliAPI.FinishMagCali();
txtreader.saveData(magcalidata);
MagCaliParam p = CaliAPI.CalculateMagParam();
//Debug.WriteLine(p.xOffset + "," + p.yOffset + "," + p.zOffset + "," + p.xScale + "," + p.yScale + "," + p.zScale);
labelMagOffset.Text = p.xOffset + " " + p.xScale + "\n" + p.yOffset + " " + p.yScale + "\n" + p.yOffset + " " + p.zScale;
CaliAPI.SetMagCali(p.xOffset, p.yOffset, p.zOffset, p.xScale, p.yScale, p.zScale);
pointstage = 0;
button4_Click(sender, e);
btnMagCalibtation.Text = "开始校准磁力计";
}
}
private void button2_Click(object sender, EventArgs e)
{
if(MessageBox.Show("该操作不可逆,是否继续?","重置校准数据",MessageBoxButtons.OKCancel,MessageBoxIcon.Question,MessageBoxDefaultButton.Button2)==DialogResult.OK)
{
if (CaliAPI.SetMagCali(0, 0, 0, 1, 1, 1) == 1) {
isGetCalibrateData = false;
}
}
}
private void button1_Click(object sender, EventArgs e)
{
MagCaliParam p = CaliAPI.GetMagCali();
mVector3 g = CaliAPI.GetGyroCali();
labelMagOffset.Text = p.xOffset + " " + p.xScale + "\n" + p.yOffset + " " + p.yScale + "\n" + p.yOffset +" "+ p.zScale ;
labelGyroOffset.Text = g.x + " " + g.y + " "+g.z;
}
static int pointstage = 0;
txtreader global_tr = null;
HashSet<double[]> hs;
private void button4_Click(object sender, EventArgs e)
{
gl.DrawFlag = 1;
//mVector3 v3 = CaliAPI.GetPoint();
//Debug.WriteLine(v3.x+" "+v3.y+" "+v3.z+" ");
if ((global_tr == null) || (pointstage == 0))
{
btnLoadorCali.Text = "绘制校准数据";
global_tr = new txtreader("data");
global_tr.GetData();
pointstage=1;
hs = global_tr.getHashset();
}
else if(pointstage == 1 )
{
btnLoadorCali.Text = "加载原始数据";
HashSet<double[]> hs1 = new HashSet<double[]>();
if(hs.Count >100)
{
MagCaliParam mcp= CaliAPI.CalculateMagParam();
foreach (var d in hs)
{
double[] v = { (d[0] - mcp.xOffset) * mcp.xScale, (d[1] - mcp.yOffset) * mcp.yScale, (d[2] - mcp.zOffset) * mcp.zScale };
hs1.Add(v);
}
hs = hs1;
}
else
{
MessageBox.Show("数据太少,无法计算校准参数!");
}
pointstage = 0;
}
gl.setPointarr(hs);
}
private void DrawIMUInformationGrid(int cols, int rows)
{
Bitmap b = new Bitmap(Panel_Sensor_Information.Width, Panel_Sensor_Information.Height);
Graphics g = Graphics.FromImage(b);
Rectangle rect = new Rectangle(5,
0,
Panel_Sensor_Information.Width - 10, 360);
g.DrawRectangle(new Pen(Color.FromArgb(228, 228, 228), 1), rect);
g.FillRectangle(new SolidBrush(Color.FromArgb(249, 249, 249)),
new Rectangle(new Point(6, 1),
new Size(Panel_Sensor_Information.Width - 11, 40)));
int padding = 28;
int stLocation = 68;
for (int i = 0; i < 4; i++) {
g.FillRectangle(new SolidBrush(Color.FromArgb(249, 249, 249)),
new Rectangle(new Point(6, 1 + i * padding * 2 + stLocation),
new Size(Panel_Sensor_Information.Width - 11, padding)));
}
g.Dispose();
Panel_Sensor_Information.Show();
Panel_Sensor_Information.BackgroundImage = b;
}
// 获取传感器的状态
public bool GetIMUStatus()
{
if (CaliAPI.CheckDevice() == 1) {
return true;
}
return false;
}
private void button5_Click(object sender, EventArgs e)
{
global_IsCali = false;
timer1.Interval = 100;
Debug.WriteLine(CaliAPI.FinishMagCali());
txtreader.saveData(magcalidata);
MagCaliParam p = CaliAPI.CalculateMagParam();
Debug.WriteLine(p.xOffset + "," + p.yOffset + "," + p.zOffset + "," + p.xScale + "," + p.yScale + "," + p.zScale);
Debug.WriteLine(CaliAPI.SetMagCali(p.xOffset, p.yOffset, p.zOffset, p.xScale, p.yScale, p.zScale));
pointstage = 0;
button4_Click(sender, e);
}
private void button6_Click(object sender, EventArgs e)
{
DialogResult dr = MessageBox.Show("校准过程约2秒请保持设备静置单击确定开始。", "陀螺仪校准", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2);
if (dr != DialogResult.OK && CaliAPI.CheckDevice() == 1)
{
return;
}
else
{
int result = CaliAPI.GyroCali();
Thread.Sleep(1000);
if (result == 1)
{
MessageBox.Show("校准成功!");
mVector3 g = CaliAPI.GetGyroCali();
labelGyroOffset.Text = g.x + " " + g.y + " " + g.z + "\n";
}
else
MessageBox.Show("校准失败!");
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://shop408976235.taobao.com/");
}
private void pictureBox1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://shop408976235.taobao.com/");
}
private void BtnShowAngle_Click(object sender, EventArgs e)
{
gl.DrawFlag = 2;
CaliAPI.Correction();
}
private void BtnHelp_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(Application.StartupPath+"/DM上位机校准软件说明.pdf");
}
private void sceneControl1_OpenGLDraw(object sender)
{
}
private void sceneControl1_OpenGLInitialized(object sender, EventArgs e)
{
OpenGL gl = openGLControl1.OpenGL;
gl.ClearColor(0, 0, 0, 0);
}
private void Btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void Control_Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Control_Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
private void Btn_min_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void Btn_support_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(Application.StartupPath + "/DM上位机校准软件说明.pdf");
}
private void panel2_Paint(object sender, PaintEventArgs e)
{
}
private void labelAngle_Click(object sender, EventArgs e)
{
}
}
}

View File

@ -1,300 +0,0 @@
namespace DM_CalibrationTools
{
partial class MainForms
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForms));
this.Control_Panel = new System.Windows.Forms.Panel();
this.label_line = new System.Windows.Forms.Label();
this.Panel_logo = new System.Windows.Forms.Panel();
this.label_dev_status = new System.Windows.Forms.Label();
this.label_Form_Name = new System.Windows.Forms.Label();
this.MainPanel = new System.Windows.Forms.Panel();
this.Btn_my_dev = new System.Windows.Forms.Button();
this.Btn_support = new System.Windows.Forms.Button();
this.Btn_software_Setting = new System.Windows.Forms.Button();
this.Btn_min = new System.Windows.Forms.Button();
this.Btn_dev_Setting = new System.Windows.Forms.Button();
this.Btn_DFU_DownLoad = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.Btn_Close = new System.Windows.Forms.Button();
this.Control_Panel.SuspendLayout();
this.Panel_logo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// Control_Panel
//
this.Control_Panel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Control_Panel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(151)))), ((int)(((byte)(229)))));
this.Control_Panel.Controls.Add(this.Btn_my_dev);
this.Control_Panel.Controls.Add(this.Btn_support);
this.Control_Panel.Controls.Add(this.Btn_software_Setting);
this.Control_Panel.Controls.Add(this.label_line);
this.Control_Panel.Controls.Add(this.Btn_min);
this.Control_Panel.Controls.Add(this.Btn_dev_Setting);
this.Control_Panel.Controls.Add(this.Btn_DFU_DownLoad);
this.Control_Panel.Controls.Add(this.Panel_logo);
this.Control_Panel.Controls.Add(this.Btn_Close);
this.Control_Panel.Location = new System.Drawing.Point(-1, 0);
this.Control_Panel.Name = "Control_Panel";
this.Control_Panel.Size = new System.Drawing.Size(1028, 88);
this.Control_Panel.TabIndex = 16;
this.Control_Panel.Paint += new System.Windows.Forms.PaintEventHandler(this.Control_Panel_Paint);
this.Control_Panel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Control_Panel_MouseDown);
this.Control_Panel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Control_Panel_MouseMove);
//
// label_line
//
this.label_line.AutoSize = true;
this.label_line.BackColor = System.Drawing.Color.Transparent;
this.label_line.ForeColor = System.Drawing.Color.White;
this.label_line.Location = new System.Drawing.Point(959, 7);
this.label_line.Name = "label_line";
this.label_line.Size = new System.Drawing.Size(11, 12);
this.label_line.TabIndex = 16;
this.label_line.Text = "|";
//
// Panel_logo
//
this.Panel_logo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(138)))), ((int)(((byte)(219)))));
this.Panel_logo.Controls.Add(this.pictureBox2);
this.Panel_logo.Controls.Add(this.pictureBox3);
this.Panel_logo.Controls.Add(this.label_dev_status);
this.Panel_logo.Controls.Add(this.label_Form_Name);
this.Panel_logo.Location = new System.Drawing.Point(3, 0);
this.Panel_logo.Name = "Panel_logo";
this.Panel_logo.Size = new System.Drawing.Size(207, 88);
this.Panel_logo.TabIndex = 16;
this.Panel_logo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Panel_logo_MouseDown);
this.Panel_logo.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Panel_logo_MouseMove);
//
// label_dev_status
//
this.label_dev_status.AutoSize = true;
this.label_dev_status.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label_dev_status.ForeColor = System.Drawing.Color.White;
this.label_dev_status.Location = new System.Drawing.Point(88, 47);
this.label_dev_status.Name = "label_dev_status";
this.label_dev_status.Size = new System.Drawing.Size(79, 20);
this.label_dev_status.TabIndex = 11;
this.label_dev_status.Text = "设备未连接";
//
// label_Form_Name
//
this.label_Form_Name.AutoSize = true;
this.label_Form_Name.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label_Form_Name.ForeColor = System.Drawing.Color.White;
this.label_Form_Name.Location = new System.Drawing.Point(70, 19);
this.label_Form_Name.Name = "label_Form_Name";
this.label_Form_Name.Size = new System.Drawing.Size(130, 19);
this.label_Form_Name.TabIndex = 16;
this.label_Form_Name.Text = "GeekIMU管理中心";
//
// MainPanel
//
this.MainPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
this.MainPanel.Location = new System.Drawing.Point(0, 91);
this.MainPanel.Name = "MainPanel";
this.MainPanel.Size = new System.Drawing.Size(1027, 554);
this.MainPanel.TabIndex = 17;
//
// Btn_my_dev
//
this.Btn_my_dev.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Btn_my_dev.FlatAppearance.BorderSize = 0;
this.Btn_my_dev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_my_dev.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btn_my_dev.ForeColor = System.Drawing.Color.White;
this.Btn_my_dev.Image = global::DM_CalibrationTools.Properties.Resources.home_48px;
this.Btn_my_dev.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.Btn_my_dev.Location = new System.Drawing.Point(209, 1);
this.Btn_my_dev.Name = "Btn_my_dev";
this.Btn_my_dev.Size = new System.Drawing.Size(77, 87);
this.Btn_my_dev.TabIndex = 22;
this.Btn_my_dev.Text = "我的传感器";
this.Btn_my_dev.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.Btn_my_dev.UseVisualStyleBackColor = true;
//
// Btn_support
//
this.Btn_support.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Btn_support.FlatAppearance.BorderSize = 0;
this.Btn_support.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_support.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btn_support.ForeColor = System.Drawing.Color.White;
this.Btn_support.Image = global::DM_CalibrationTools.Properties.Resources.help_48px;
this.Btn_support.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.Btn_support.Location = new System.Drawing.Point(441, 1);
this.Btn_support.Name = "Btn_support";
this.Btn_support.Size = new System.Drawing.Size(77, 87);
this.Btn_support.TabIndex = 21;
this.Btn_support.Text = "帮助与支持";
this.Btn_support.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.Btn_support.UseVisualStyleBackColor = true;
this.Btn_support.Click += new System.EventHandler(this.Btn_support_Click);
//
// Btn_software_Setting
//
this.Btn_software_Setting.FlatAppearance.BorderSize = 0;
this.Btn_software_Setting.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_software_Setting.Image = global::DM_CalibrationTools.Properties.Resources.btn_setting_18px_1;
this.Btn_software_Setting.Location = new System.Drawing.Point(933, 3);
this.Btn_software_Setting.Name = "Btn_software_Setting";
this.Btn_software_Setting.Size = new System.Drawing.Size(18, 18);
this.Btn_software_Setting.TabIndex = 20;
this.Btn_software_Setting.UseVisualStyleBackColor = true;
//
// Btn_min
//
this.Btn_min.FlatAppearance.BorderSize = 0;
this.Btn_min.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_min.Image = global::DM_CalibrationTools.Properties.Resources.btn_mini_18px_1;
this.Btn_min.Location = new System.Drawing.Point(978, 3);
this.Btn_min.Name = "Btn_min";
this.Btn_min.Size = new System.Drawing.Size(18, 18);
this.Btn_min.TabIndex = 19;
this.Btn_min.UseVisualStyleBackColor = true;
this.Btn_min.Click += new System.EventHandler(this.Btn_min_Click);
//
// Btn_dev_Setting
//
this.Btn_dev_Setting.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Btn_dev_Setting.FlatAppearance.BorderSize = 0;
this.Btn_dev_Setting.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_dev_Setting.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btn_dev_Setting.ForeColor = System.Drawing.Color.White;
this.Btn_dev_Setting.Image = global::DM_CalibrationTools.Properties.Resources.settings_48px;
this.Btn_dev_Setting.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.Btn_dev_Setting.Location = new System.Drawing.Point(285, 1);
this.Btn_dev_Setting.Name = "Btn_dev_Setting";
this.Btn_dev_Setting.Size = new System.Drawing.Size(77, 87);
this.Btn_dev_Setting.TabIndex = 18;
this.Btn_dev_Setting.Text = "设备设置";
this.Btn_dev_Setting.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.Btn_dev_Setting.UseVisualStyleBackColor = true;
//
// Btn_DFU_DownLoad
//
this.Btn_DFU_DownLoad.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Btn_DFU_DownLoad.FlatAppearance.BorderSize = 0;
this.Btn_DFU_DownLoad.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_DFU_DownLoad.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btn_DFU_DownLoad.ForeColor = System.Drawing.Color.White;
this.Btn_DFU_DownLoad.Image = global::DM_CalibrationTools.Properties.Resources.download_48px;
this.Btn_DFU_DownLoad.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.Btn_DFU_DownLoad.Location = new System.Drawing.Point(359, 1);
this.Btn_DFU_DownLoad.Name = "Btn_DFU_DownLoad";
this.Btn_DFU_DownLoad.Size = new System.Drawing.Size(77, 87);
this.Btn_DFU_DownLoad.TabIndex = 17;
this.Btn_DFU_DownLoad.Text = "固件升级";
this.Btn_DFU_DownLoad.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.Btn_DFU_DownLoad.UseVisualStyleBackColor = true;
//
// pictureBox2
//
this.pictureBox2.Image = global::DM_CalibrationTools.Properties.Resources.tools;
this.pictureBox2.Location = new System.Drawing.Point(6, 13);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(60, 60);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 15;
this.pictureBox2.TabStop = false;
//
// pictureBox3
//
this.pictureBox3.Image = global::DM_CalibrationTools.Properties.Resources.test;
this.pictureBox3.Location = new System.Drawing.Point(75, 47);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(12, 21);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox3.TabIndex = 17;
this.pictureBox3.TabStop = false;
//
// Btn_Close
//
this.Btn_Close.FlatAppearance.BorderSize = 0;
this.Btn_Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Btn_Close.Image = global::DM_CalibrationTools.Properties.Resources.btn_close_18px_1;
this.Btn_Close.Location = new System.Drawing.Point(1002, 3);
this.Btn_Close.Name = "Btn_Close";
this.Btn_Close.Size = new System.Drawing.Size(18, 18);
this.Btn_Close.TabIndex = 14;
this.Btn_Close.UseVisualStyleBackColor = true;
this.Btn_Close.Click += new System.EventHandler(this.Btn_Close_Click);
//
// MainForms
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1027, 645);
this.Controls.Add(this.MainPanel);
this.Controls.Add(this.Control_Panel);
this.CornerRadius = 1;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForms";
this.ShadowStyle = CCWin.RoundStyle.None;
this.Text = "MainForms";
this.Control_Panel.ResumeLayout(false);
this.Control_Panel.PerformLayout();
this.Panel_logo.ResumeLayout(false);
this.Panel_logo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel Control_Panel;
private System.Windows.Forms.Button Btn_my_dev;
private System.Windows.Forms.Button Btn_support;
private System.Windows.Forms.Button Btn_software_Setting;
private System.Windows.Forms.Label label_line;
private System.Windows.Forms.Button Btn_min;
private System.Windows.Forms.Button Btn_dev_Setting;
private System.Windows.Forms.Button Btn_DFU_DownLoad;
private System.Windows.Forms.Panel Panel_logo;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label label_dev_status;
private System.Windows.Forms.Label label_Form_Name;
private System.Windows.Forms.Button Btn_Close;
private System.Windows.Forms.Panel MainPanel;
}
}

View File

@ -1,120 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;
namespace DM_CalibrationTools
{
public partial class MainForms : SkinMain
{
private Point mPoint;
private Point mPoint_logo;
IMUInformation frm_IMUInformation;
IMUConnect frm_IMUConnect;
System.Windows.Forms.Timer mTimer_Main;
public MainForms()
{
InitializeComponent();
this.Load += new System.EventHandler(this.MainForms_Load);
}
private void MainForms_Load(object sender, EventArgs e)
{
this.Text = "GeekIMU管理中心";
// 设置传感器信息为主默认窗口
frm_IMUInformation = new IMUInformation();
frm_IMUInformation.TopLevel = false;
this.MainPanel.Controls.Add(frm_IMUInformation);
frm_IMUConnect = new IMUConnect();
frm_IMUConnect.TopLevel = false;
this.MainPanel.Controls.Add(frm_IMUConnect);
frm_IMUInformation.Show();
frm_IMUConnect.Show();
frm_IMUInformation.Hide();
// 配置定时器,定时器用于定期查询设备状态
mTimer_Main = new System.Windows.Forms.Timer();
mTimer_Main.Interval = 1500;
mTimer_Main.Enabled = true;
mTimer_Main.Tick += new EventHandler(timer_Tick);
}
void timer_Tick(object sender, EventArgs e)
{
label_dev_status.Text = frm_IMUInformation.GetIMUStatus() == true ? "设备已连接" : "未连接";
if (frm_IMUInformation.GetIMUStatus() == false)
{
frm_IMUInformation.Hide();
frm_IMUConnect.Show();
Console.WriteLine("C#:设备未连接");
}
else
{
frm_IMUInformation.Show();
frm_IMUConnect.Hide();
Console.WriteLine("C#:设备已连接");
}
}
private void Btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void Btn_min_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void Control_Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
private void Control_Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_logo_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint_logo.X, this.Location.Y + e.Y - mPoint_logo.Y);
}
}
private void Panel_logo_MouseDown(object sender, MouseEventArgs e)
{
mPoint_logo = new Point(e.X, e.Y);
}
private void Control_Panel_Paint(object sender, PaintEventArgs e)
{
}
private void Btn_support_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(Application.StartupPath + "/DM上位机校准软件说明.pdf");
}
}
}

View File

@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DM_CalibrationTools
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForms());
}
}
}

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DM_CalibrationTools")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("DM_CalibrationTools")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("a6d4a950-c32d-4c5e-be41-7d489806fe28")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,253 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace DM_CalibrationTools.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[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>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </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("DM_CalibrationTools.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 使用此强类型资源类,为所有资源查找
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap _3d_32px {
get {
object obj = ResourceManager.GetObject("3d_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn_close_18px_1 {
get {
object obj = ResourceManager.GetObject("btn_close_18px_1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn_mini_18px_1 {
get {
object obj = ResourceManager.GetObject("btn_mini_18px_1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn_setting_18px_1 {
get {
object obj = ResourceManager.GetObject("btn_setting_18px_1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap cancel_24px {
get {
object obj = ResourceManager.GetObject("cancel_24px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap download_48px {
get {
object obj = ResourceManager.GetObject("download_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap earth_grid_32px {
get {
object obj = ResourceManager.GetObject("earth_grid_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap help_48px {
get {
object obj = ResourceManager.GetObject("help_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap home_48px {
get {
object obj = ResourceManager.GetObject("home_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap link_48px {
get {
object obj = ResourceManager.GetObject("link_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap pose_32px {
get {
object obj = ResourceManager.GetObject("pose_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap question_32px {
get {
object obj = ResourceManager.GetObject("question_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap question_48px {
get {
object obj = ResourceManager.GetObject("question_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap refresh_32px {
get {
object obj = ResourceManager.GetObject("refresh_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap refresh_32px1 {
get {
object obj = ResourceManager.GetObject("refresh_32px1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap settings_48px {
get {
object obj = ResourceManager.GetObject("settings_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap test {
get {
object obj = ResourceManager.GetObject("test", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap tools {
get {
object obj = ResourceManager.GetObject("tools", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap usb_783px {
get {
object obj = ResourceManager.GetObject("usb_783px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -1,178 +0,0 @@
<?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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="btn_setting_18px_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\btn_setting_18px_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="3d_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\3d_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="btn_mini_18px_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\btn_mini_18px_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tools" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\tools.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="question_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\question_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usb_783px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\usb_783px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settings_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\settings_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="question_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\question_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pose_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\pose_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\help_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="home_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\home_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="btn_close_18px_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\btn_close_18px_1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="test" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\test.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cancel_24px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\cancel_24px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="earth_grid_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\earth_grid_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="refresh_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\refresh_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="link_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\link_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="download_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\download_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="refresh_32px1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resource\refresh_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.36415
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DM_CalibrationTools.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
}
}
}
}

View File

@ -1,7 +0,0 @@
<?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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 923 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

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

View File

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

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@ -1,72 +0,0 @@
电科神技 DM9 轴传感器校准软件说明
DM9 轴传感器校准软件说明
Version 1.0
By JustFeng @2017-10-23 16:40:16
连接传感器
1. 将 DM9 轴传感器板子通过 USB 连接至电脑,并将板子上的电源开关拨向 Micro-USB
口方向。
2. 双击运行软件 界面如下图所示
查看连接状态
左下角显示连接状态:如果模块正常连接则显示”已连接”;反之如果模块未连则会显示”
未连接”,且大部分功能将处于不可用状态。
获取校准数据
单击 按钮可读取陀螺仪校准值和磁力计校准值,并显示在右侧。
重置校准数据
单击 按钮将会不可逆的清除磁力计校准数据,只能通过磁力计校准的方式重新写
电科神技 DM9 轴传感器校准软件说明
入校准数据。
校准陀螺仪
单击 按钮可校准陀螺仪静态偏移。该过程需要保持模块静止不动,否则校准后
静态漂移将会更大。
校准磁力计
单击 按钮即可进入磁力计校准状态,该状态下,需要用户按下图 a 方式甩空
间 8 字,同时 3D 显示会实时绘制出当前空间磁场的散点图,请尽量让散点图看起来像
一个中心不在圆点的椭球体,例如下图 b 所示。待完成上步操作单击 按钮计
算并写入磁力计校准值。
(a) (b)
绘制磁力计原始数据的散点图
默认状态为显示解算姿态,如需查看之前的磁力计散点图,可单击 按钮,
3D 显示中会自动加载上次磁力计采样值并绘制原始散点图。按钮会变为 。
绘制磁力计校准后的散点图
单击 按钮,可查看经过椭球拟合之后的球形磁力计散点图。如下图所示
电科神技 DM9 轴传感器校准软件说明
显示姿态 按钮可切换至显示姿态模式。
单击
其他
另外关于 3D 显示器区域的操作:
按住鼠标左键拖动,可旋转视图;
按住鼠标右键拖动,或滚动鼠标滚轮,可缩放视图;
双击鼠标滚轮,可还原默认视图;
按住 Ctrl 键和鼠标左键并拖动,可移动视图;
欢迎访问电科神技淘宝店:https://shop408976235.taobao.com

View File

@ -1,336 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>SharpGL.WinForms</name>
</assembly>
<members>
<member name="T:SharpGL.Controls.GLColourPicker">
<summary>
Summary description for GLColourPicker.
</summary>
</member>
<member name="F:SharpGL.Controls.GLColourPicker.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.Controls.GLColourPicker.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.Controls.GLColourPicker.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpGL.Controls.MaterialListViewItem">
<summary>
This allows a list view item to be created from a material, which is really
useful, especially for 3D apps. For more advanced functionality, just derive
from this class, as there's a lot of good code here. Writing this sort of
class from scratch is pointless.
At the moment this class is not working properly, because of changes to the
material class, use with caution!
</summary>
</member>
<member name="M:SharpGL.Controls.MaterialListViewItem.#ctor(SharpGL.SceneGraph.Assets.Material,System.Windows.Forms.ImageList)">
<summary>
This function creates the list view item from a material, with an image
of the specified size.
</summary>
<param name="material">The material to create it from.</param>
<param name="sizeX">Size of the thumbnail.</param>
<param name="sizeY">Size of the thumbnail.</param>
</member>
<member name="T:SharpGL.OpenGLControl">
<summary>
This is the basic OpenGL control object, it gives all of the basic OpenGL functionality.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpGL.OpenGLControl"/> class.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.SetupDrawingTimer">
<summary>
Setups the drawing timer, based on the framerate settings.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.InitialiseOpenGL">
<summary>
Initialises OpenGL.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoRender">
<summary>
Manually perform rendering.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.Render(System.Drawing.Graphics)">
<summary>
Renders to the specified graphics.
</summary>
<param name="graphics">The graphics to render to.</param>
</member>
<member name="M:SharpGL.OpenGLControl.OnPaint(System.Windows.Forms.PaintEventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.Paint"/> event.
</summary>
<param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs"/> that contains the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.OnSizeChanged(System.EventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.SizeChanged"/> event.
</summary>
<param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.DoOpenGLInitialized">
<summary>
Calls the OpenGL initialized function.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoOpenGLDraw(SharpGL.RenderEventArgs)">
<summary>
Call this function in derived classes to do the OpenGL Draw event.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.DoGDIDraw(SharpGL.RenderEventArgs)">
<summary>
Call this function in derived classes to do the GDI Draw event.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.timerDrawing_Tick(System.Object,System.EventArgs)">
<summary>
Handles the Tick event of the timerDrawing control.
</summary>
<param name="sender">The source of the event.</param>
<param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
</member>
<member name="M:SharpGL.OpenGLControl.System#ComponentModel#ISupportInitialize#BeginInit">
<summary>
Signals the object that initialization is starting.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.System#ComponentModel#ISupportInitialize#EndInit">
<summary>
Signals the object that initialization is complete.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.timerDrawing">
<summary>
The timer used for drawing the control.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.gl">
<summary>
The OpenGL object for the control.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.stopwatch">
<summary>
A stopwatch used for timing rendering.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.renderContextType">
<summary>
The render context type.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.frameTime">
<summary>
The last frame time in milliseconds.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.frameRate">
<summary>
The framerate, in hertz.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.openGLVersion">
<summary>
The default desired OpenGL version.
</summary>
</member>
<member name="F:SharpGL.OpenGLControl.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.OpenGLControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpGL.OpenGLControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.OpenGLInitialized">
<summary>
Occurs when OpenGL has been initialized.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.OpenGLDraw">
<summary>
Occurs when OpenGL drawing should be performed.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.GDIDraw">
<summary>
Occurs when GDI drawing should be performed.
</summary>
</member>
<member name="E:SharpGL.OpenGLControl.Resized">
<summary>
Occurs when the control is resized. Can be used to perform custom viewport projections.
</summary>
</member>
<member name="P:SharpGL.OpenGLControl.OpenGL">
<summary>
Gets the OpenGL object.
</summary>
<value>The OpenGL.</value>
</member>
<member name="P:SharpGL.OpenGLControl.DrawFPS">
<summary>
Gets or sets a value indicating whether to draw FPS information.
</summary>
<value>
<c>true</c> if FPS info should be drawn; otherwise, <c>false</c>.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.FrameRate">
<summary>
Gets or sets the frame rate, in Hertz.
</summary>
<value>
The frame rate, in Hertz.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.RenderContextType">
<summary>
Gets or sets the type of the render context.
</summary>
<value>
The type of the render context.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.OpenGLVersion">
<summary>
Gets or sets the desired OpenGL version.
</summary>
<value>
The desired OpenGL version.
</value>
</member>
<member name="P:SharpGL.OpenGLControl.RenderTrigger">
<summary>
Gets or sets the render trigger.
</summary>
<value>
The render trigger.
</value>
</member>
<member name="T:SharpGL.RenderEventHandler">
<summary>
Delegate for a Render Event.
</summary>
<param name="sender">The sender.</param>
<param name="args">The <see cref="T:SharpGL.RenderEventArgs"/> instance containing the event data.</param>
</member>
<member name="T:SharpGL.RenderEventArgs">
<summary>
The RenderEventArgs - arguments used for render envets.
</summary>
</member>
<member name="M:SharpGL.RenderEventArgs.#ctor(System.Drawing.Graphics)">
<summary>
Initializes a new instance of the <see cref="T:SharpGL.RenderEventArgs"/> class.
</summary>
<param name="graphics">The graphics.</param>
</member>
<member name="P:SharpGL.RenderEventArgs.Graphics">
<summary>
Gets the graphics.
</summary>
</member>
<member name="T:SharpGL.RenderTrigger">
<summary>
The RenderingMode - specifies how and when rendering
will occur in an OpenGL control.
</summary>
</member>
<member name="F:SharpGL.RenderTrigger.TimerBased">
<summary>
The Default RenderingMode, TimerBased. This mode means that
a timer will be set up based on the FPS property of the control.
</summary>
</member>
<member name="F:SharpGL.RenderTrigger.Manual">
<summary>
Rendering must be performed manually by using the DoRender function.
</summary>
</member>
<member name="T:SharpGL.SceneControl">
<summary>
The SceneControl is an OpenGLControl that contains and draws a Scene object.
</summary>
</member>
<member name="M:SharpGL.SceneControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.SceneControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="M:SharpGL.SceneControl.OnPaintBackground(System.Windows.Forms.PaintEventArgs)">
<summary>
Raises the <see cref="E:PaintBackground"/> event.
</summary>
<param name="e">The <see cref="T:System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
</member>
<member name="M:SharpGL.SceneControl.OnSizeChanged(System.EventArgs)">
<summary>
Raises the <see cref="E:System.Windows.Forms.Control.SizeChanged"/> event.
</summary>
<param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
</member>
<member name="F:SharpGL.SceneControl.scene">
<summary>
This is the scene itself.
</summary>
</member>
<member name="T:SharpGL.Controls.VertexControl">
<summary>
Summary description for VertexControl.
</summary>
</member>
<member name="F:SharpGL.Controls.VertexControl.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpGL.Controls.VertexControl.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
</member>
<member name="M:SharpGL.Controls.VertexControl.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
</members>
</doc>

Some files were not shown because too many files have changed in this diff Show More