diff --git a/3.Docs/GeekTrack SDK设计.xmind b/3.Docs/GeekTrack SDK设计.xmind new file mode 100644 index 0000000..e19fed2 Binary files /dev/null and b/3.Docs/GeekTrack SDK设计.xmind differ diff --git a/4.Software/GeekTrackSDK/UDP.sln b/4.Software/GeekTrackSDK/GeekTrackSDK.sln similarity index 71% rename from 4.Software/GeekTrackSDK/UDP.sln rename to 4.Software/GeekTrackSDK/GeekTrackSDK.sln index d510be0..4d7e344 100644 --- a/4.Software/GeekTrackSDK/UDP.sln +++ b/4.Software/GeekTrackSDK/GeekTrackSDK.sln @@ -3,24 +3,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.32106.194 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GeekTrackSDK", "UDP\UDP.vcxproj", "{9164B430-3793-48FE-9C4C-77745C628E5B}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GeekTrackSDK", "Project\GeekTrackSDK.vcxproj", "{9164B430-3793-48FE-9C4C-77745C628E5B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 - Release|Win32 = Release|Win32 + Debug|x86 = Debug|x86 Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|Win32.ActiveCfg = Debug|Win32 - {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|Win32.Build.0 = Debug|Win32 {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x64.ActiveCfg = Debug|x64 {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x64.Build.0 = Debug|x64 - {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|Win32.ActiveCfg = Release|Win32 - {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|Win32.Build.0 = Release|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x86.ActiveCfg = Debug|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x86.Build.0 = Debug|Win32 {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|x64.ActiveCfg = Release|x64 {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|x64.Build.0 = Release|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|x86.ActiveCfg = Release|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/4.Software/GeekTrackSDK/UDP/GeekTrack.cpp b/4.Software/GeekTrackSDK/Project/GeekTrack.cpp similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/GeekTrack.cpp rename to 4.Software/GeekTrackSDK/Project/GeekTrack.cpp diff --git a/4.Software/GeekTrackSDK/UDP/UDP.vcxproj b/4.Software/GeekTrackSDK/Project/GeekTrackSDK.vcxproj similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/UDP.vcxproj rename to 4.Software/GeekTrackSDK/Project/GeekTrackSDK.vcxproj diff --git a/4.Software/GeekTrackSDK/UDP/ReadMe.txt b/4.Software/GeekTrackSDK/Project/ReadMe.txt similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/ReadMe.txt rename to 4.Software/GeekTrackSDK/Project/ReadMe.txt diff --git a/4.Software/GeekTrackSDK/UDP/UDP.vcxproj.filters b/4.Software/GeekTrackSDK/Project/UDP.vcxproj.filters similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/UDP.vcxproj.filters rename to 4.Software/GeekTrackSDK/Project/UDP.vcxproj.filters diff --git a/4.Software/GeekTrackSDK/UDP/stdafx.cpp b/4.Software/GeekTrackSDK/Project/stdafx.cpp similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/stdafx.cpp rename to 4.Software/GeekTrackSDK/Project/stdafx.cpp diff --git a/4.Software/GeekTrackSDK/UDP/stdafx.h b/4.Software/GeekTrackSDK/Project/stdafx.h similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/stdafx.h rename to 4.Software/GeekTrackSDK/Project/stdafx.h diff --git a/4.Software/GeekTrackSDK/UDP/targetver.h b/4.Software/GeekTrackSDK/Project/targetver.h similarity index 100% rename from 4.Software/GeekTrackSDK/UDP/targetver.h rename to 4.Software/GeekTrackSDK/Project/targetver.h diff --git a/4.Software/GeekTrackSDK_V1.0/.gitignore b/4.Software/GeekTrackSDK_V1.0/.gitignore new file mode 100644 index 0000000..aacae44 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/.gitignore @@ -0,0 +1,378 @@ +## +## PROJECT: Mouri Internal Library Essentials +## FILE: .gitignore +## PURPOSE: The root .gitignore file for Mile.Project Project +## +## LICENSE: The MIT License +## +## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) +## + +## +## Ignore Mile.Project specific temporary files, build results, +## and files generated by popular Visual Studio add-ons. +## +Output/ + +## +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd diff --git a/4.Software/GeekTrackSDK_V1.0/GeekTrackSDK.sln b/4.Software/GeekTrackSDK_V1.0/GeekTrackSDK.sln new file mode 100644 index 0000000..a11ae6d --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/GeekTrackSDK.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32106.194 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GeekTrackSDK", "Project\GeekTrackSDK.vcxproj", "{9164B430-3793-48FE-9C4C-77745C628E5B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release(DLL)|x64 = Release(DLL)|x64 + Release(DLL)|x86 = Release(DLL)|x86 + Release(EXE)|x64 = Release(EXE)|x64 + Release(EXE)|x86 = Release(EXE)|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x64.ActiveCfg = Debug|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x64.Build.0 = Debug|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x86.ActiveCfg = Debug|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Debug|x86.Build.0 = Debug|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(DLL)|x64.ActiveCfg = Release(DLL)|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(DLL)|x64.Build.0 = Release(DLL)|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(DLL)|x86.ActiveCfg = Release(DLL)|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(DLL)|x86.Build.0 = Release(DLL)|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(EXE)|x64.ActiveCfg = Release|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(EXE)|x64.Build.0 = Release|x64 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(EXE)|x86.ActiveCfg = Release|Win32 + {9164B430-3793-48FE-9C4C-77745C628E5B}.Release(EXE)|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9E9DAEF7-BA4A-4FC9-9AD3-C055B24E1C8F} + EndGlobalSection +EndGlobal diff --git a/4.Software/GeekTrackSDK_V1.0/Project/GeekTrack.cpp b/4.Software/GeekTrackSDK_V1.0/Project/GeekTrack.cpp new file mode 100644 index 0000000..b9ceaff --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/GeekTrack.cpp @@ -0,0 +1,90 @@ +#include"stdafx.h" +#include"GeekTrackSDK.h" +#include +#include +#include +#include + +#pragma comment(lib,"ws2_32.lib") + +/* max suppport diffrent device id. */ +#define MAX_SUPPORT_DEV_NUM 9 + +typedef struct { + EulerAngles_t Pose; +}GeekTrackNode_t; + +GeekTrackNode_t TrackNode[MAX_SUPPORT_DEV_NUM]; + +SOCKET sock; +sockaddr_in from, a; +WSADATA wsdata; +int fromlength = 0; +std::thread* t; + +void GeekTrackUpdate() { + char buf[256]; + int i = 0; + while (1) + { + //ӹ㲥ַϢע󶨵ĵַͽϢĵַDzһ + recvfrom(sock, buf, 256, 0, (struct sockaddr FAR*) &from, (int FAR*) & fromlength); + Sleep(10); + float yaw = 0.0f, roll = 0.0f, pitch = 0.0f; + int id = 0; + int ret = sscanf_s(buf, "%d %f %f %f\n", &id, &yaw, &roll, &pitch); + if (ret > 0 && (id > 0 && id < MAX_SUPPORT_DEV_NUM)) { + TrackNode[id].Pose.x = pitch; + TrackNode[id].Pose.y = roll; + TrackNode[id].Pose.z = yaw; + } + ZeroMemory(buf, 256); + } +} + + +void GeekTrack_Init() { + + bool optval; + //SOCKET⣬汾Ϊ2.0 + WSAStartup(0x0202, &wsdata); + optval = true; + //Ȼֵַһ׽֣һϵĹ㲥ַϢ + a.sin_family = AF_INET; + a.sin_addr.s_addr = 0; + a.sin_port = htons(9000); + + //from.sin_family = AF_INET; + //from.sin_addr.s_addr = INADDR_BROADCAST; + //from.sin_port = htons(5050); + + fromlength = sizeof(SOCKADDR); + //UDPʼ׽ + sock = socket(AF_INET, SOCK_DGRAM, 0); + // ø׽Ϊ㲥ͣ + //setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char FAR *)&optval, sizeof(optval)); + // Ѹ׽ְһĵַ + bind(sock, (sockaddr*)&a, sizeof(sockaddr_in)); + + t = new std::thread(GeekTrackUpdate); + +} + +EulerAngles_t GetEulerAngles(int devId) { + if (devId >= 0 && devId < MAX_SUPPORT_DEV_NUM) { + return TrackNode[devId].Pose; + } +} + +int main() +{ + GeekTrack_Init(); + int devId = 0; + while (1) { + Sleep(50); + printf("%d,%f,%f,%f\n", devId,TrackNode[devId].Pose.x, TrackNode[devId].Pose.y, + TrackNode[devId].Pose.z); + } + system("pause"); + return 0; +} diff --git a/4.Software/GeekTrackSDK_V1.0/Project/GeekTrackSDK.vcxproj b/4.Software/GeekTrackSDK_V1.0/Project/GeekTrackSDK.vcxproj new file mode 100644 index 0000000..309abd5 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/GeekTrackSDK.vcxproj @@ -0,0 +1,237 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release(DLL) + Win32 + + + Release(DLL) + x64 + + + Release + Win32 + + + Release + x64 + + + + {9164B430-3793-48FE-9C4C-77745C628E5B} + Win32Proj + UDP + GeekTrackSDK + 10.0 + + + + Application + true + v142 + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + false + v142 + true + Unicode + + + Application + false + v142 + true + Unicode + + + DynamicLibrary + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + false + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + ..\Src\ + + + Console + true + true + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + ..\Src\ + + + Console + true + true + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + ..\Src\;%(AdditionalIncludeDirectories) + + + Console + true + true + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + ..\Src\;%(AdditionalIncludeDirectories) + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + Create + Create + Create + Create + + + + + + + \ No newline at end of file diff --git a/4.Software/GeekTrackSDK_V1.0/Project/ReadMe.txt b/4.Software/GeekTrackSDK_V1.0/Project/ReadMe.txt new file mode 100644 index 0000000..8b1b64a --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/ReadMe.txt @@ -0,0 +1,30 @@ +======================================================================== + 控制台应用程序:UDP 项目概述 +======================================================================== + +应用程序向导已为您创建了此 UDP 应用程序。 + +本文件概要介绍组成 UDP 应用程序的每个文件的内容。 + + +UDP.vcxproj + 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 + +UDP.vcxproj.filters + 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 + +UDP.cpp + 这是主应用程序源文件。 + +///////////////////////////////////////////////////////////////////////////// +其他标准文件: + +StdAfx.h, StdAfx.cpp + 这些文件用于生成名为 UDP.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 + +///////////////////////////////////////////////////////////////////////////// +其他注释: + +应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 + +///////////////////////////////////////////////////////////////////////////// diff --git a/4.Software/GeekTrackSDK_V1.0/Project/UDP.vcxproj.filters b/4.Software/GeekTrackSDK_V1.0/Project/UDP.vcxproj.filters new file mode 100644 index 0000000..7112534 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/UDP.vcxproj.filters @@ -0,0 +1,39 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + 头文件 + + + 头文件 + + + 源文件 + + + + + 源文件 + + + 源文件 + + + \ No newline at end of file diff --git a/4.Software/GeekTrackSDK_V1.0/Project/stdafx.cpp b/4.Software/GeekTrackSDK_V1.0/Project/stdafx.cpp new file mode 100644 index 0000000..c6af952 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : ֻ׼ļԴļ +// UDP.pch ΪԤͷ +// stdafx.obj ԤϢ + +#include "stdafx.h" + +// TODO: STDAFX.H +// κĸͷļڴļ diff --git a/4.Software/GeekTrackSDK_V1.0/Project/stdafx.h b/4.Software/GeekTrackSDK_V1.0/Project/stdafx.h new file mode 100644 index 0000000..baa4bbc --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : ׼ϵͳļİļ +// Ǿʹõĵ +// ضĿİļ +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: ڴ˴óҪͷļ diff --git a/4.Software/GeekTrackSDK_V1.0/Project/targetver.h b/4.Software/GeekTrackSDK_V1.0/Project/targetver.h new file mode 100644 index 0000000..7a7d2c8 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Project/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// SDKDDKVer.h õ߰汾 Windows ƽ̨ + +// ҪΪǰ Windows ƽ̨Ӧó WinSDKVer.h +// WIN32_WINNT ΪҪֵ֧ƽ̨Ȼٰ SDKDDKVer.h + +#include diff --git a/4.Software/GeekTrackSDK_V1.0/Src/GeekTrackSDK.h b/4.Software/GeekTrackSDK_V1.0/Src/GeekTrackSDK.h new file mode 100644 index 0000000..4c11288 --- /dev/null +++ b/4.Software/GeekTrackSDK_V1.0/Src/GeekTrackSDK.h @@ -0,0 +1,16 @@ +#ifndef _GEEKTRACK_SDK_H_ +#define _GEEKTRACK_SDK_H_ + +extern "C" { + +typedef struct { + float x, y, z; +}EulerAngles_t; + + +__declspec(dllexport) void GeekTrack_Init(); + +__declspec(dllexport) EulerAngles_t GetEulerAngles(); +} + +#endif \ No newline at end of file