Skip to content

Commit

Permalink
Updated SDK with release 1.1.3 files.
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjohnson committed Sep 17, 2017
1 parent 01ab7eb commit a7e3a84
Show file tree
Hide file tree
Showing 212 changed files with 32,983 additions and 1,516 deletions.
368 changes: 368 additions & 0 deletions InertialSenseCLTool/CodeLite_project/InertialSenseCLTool.mk

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions InertialSenseCLTool/CodeLite_project/InertialSenseCLTool.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<CodeLite_Project Name="InertialSenseCLTool" InternalType="Console">
<Description/>
<Dependencies/>
<VirtualDirectory Name="src">
<File Name="../source/main.cpp"/>
<File Name="../../src/DataCSV.cpp"/>
<File Name="../../src/DataCSV.h"/>
<File Name="../../src/DataChunk.cpp"/>
<File Name="../../src/DataChunk.h"/>
<File Name="../../src/DataChunkSorted.cpp"/>
<File Name="../../src/DataChunkSorted.h"/>
<File Name="../../src/DataKML.cpp"/>
<File Name="../../src/DataKML.h"/>
<File Name="../../src/DeviceLog.cpp"/>
<File Name="../../src/DeviceLog.h"/>
<File Name="../../src/DeviceLogCSV.cpp"/>
<File Name="../../src/DeviceLogCSV.h"/>
<File Name="../../src/DeviceLogKML.cpp"/>
<File Name="../../src/DeviceLogKML.h"/>
<File Name="../../src/DeviceLogSerial.cpp"/>
<File Name="../../src/DeviceLogSerial.h"/>
<File Name="../../src/DeviceLogSorted.cpp"/>
<File Name="../../src/DeviceLogSorted.h"/>
<File Name="../../src/GpsParser.cpp"/>
<File Name="../../src/GpsParser.h"/>
<File Name="../../src/ISConstants.h"/>
<File Name="../../src/ISDataMappings.cpp"/>
<File Name="../../src/ISDataMappings.h"/>
<File Name="../../src/ISDisplay.cpp"/>
<File Name="../../src/ISDisplay.h"/>
<File Name="../../src/ISLogger.cpp"/>
<File Name="../../src/ISLogger.h"/>
<File Name="../../src/ISMatrix.c"/>
<File Name="../../src/ISMatrix.h"/>
<File Name="../../src/ISPose.c"/>
<File Name="../../src/ISPose.h"/>
<File Name="../../src/ISTcpClient.cpp"/>
<File Name="../../src/ISTcpClient.h"/>
<File Name="../../src/ISTcpServer.cpp"/>
<File Name="../../src/ISTcpServer.h"/>
<File Name="../../src/ISUtilities.cpp"/>
<File Name="../../src/ISUtilities.h"/>
<File Name="../../src/InertialSense.cpp"/>
<File Name="../../src/InertialSense.h"/>
<File Name="../../src/InertialSenseSDK.h"/>
<File Name="../../src/cltool.cpp"/>
<File Name="../../src/cltool.h"/>
<File Name="../../src/cltool_main.cpp"/>
<File Name="../../src/com_manager.c"/>
<File Name="../../src/com_manager.h"/>
<File Name="../../src/data_sets.c"/>
<File Name="../../src/data_sets.h"/>
<File Name="../../src/inertialSenseBootLoader.c"/>
<File Name="../../src/inertialSenseBootLoader.h"/>
<File Name="../../src/linked_list.c"/>
<File Name="../../src/linked_list.h"/>
<File Name="../../src/serialPort.c"/>
<File Name="../../src/serialPort.h"/>
<File Name="../../src/serialPortPlatform.c"/>
<File Name="../../src/serialPortPlatform.h"/>
<File Name="../../src/time_conversion.c"/>
<File Name="../../src/time_conversion.h"/>
<File Name="../../src/tinystr.cpp"/>
<File Name="../../src/tinystr.h"/>
<File Name="../../src/tinyxml.cpp"/>
<File Name="../../src/tinyxml.h"/>
<File Name="../../src/tinyxmlerror.cpp"/>
<File Name="../../src/tinyxmlparser.cpp"/>
</VirtualDirectory>
<Settings Type="Executable">
<GlobalSettings>
<Compiler Options="" C_Options="" Assembler="">
<IncludePath Value="."/>
</Compiler>
<Linker Options="">
<LibraryPath Value="."/>
</Linker>
<ResourceCompiler Options=""/>
</GlobalSettings>
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
<Compiler Options="-g;-O0;-Wall;-std=gnu++11" C_Options="-g;-O0;-Wall;-std=gnu11" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
<IncludePath Value="."/>
</Compiler>
<Linker Options="" Required="yes">
<Library Value="pthread"/>
</Linker>
<ResourceCompiler Options="" Required="no"/>
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="-c=/dev/ttyUSB0 -sSol -loff" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
<![CDATA[]]>
</Environment>
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="yes">
<DebuggerSearchPaths/>
<PostConnectCommands/>
<StartupCommands/>
</Debugger>
<PreBuild/>
<PostBuild/>
<CustomBuild Enabled="no">
<RebuildCommand/>
<CleanCommand/>
<BuildCommand/>
<PreprocessFileCommand/>
<SingleFileCommand/>
<MakefileGenerationCommand/>
<ThirdPartyToolName>None</ThirdPartyToolName>
<WorkingDirectory/>
</CustomBuild>
<AdditionalRules>
<CustomPostBuild/>
<CustomPreBuild/>
</AdditionalRules>
<Completion EnableCpp11="no">
<ClangCmpFlagsC/>
<ClangCmpFlags/>
<ClangPP/>
<SearchPaths/>
</Completion>
</Configuration>
<Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
<Compiler Options="-O2;-Wall;-std=gnu++11" C_Options="-O2;-Wall;-std=gnu11" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
<IncludePath Value="."/>
<Preprocessor Value="NDEBUG"/>
</Compiler>
<Linker Options="" Required="yes">
<Library Value="pthread"/>
</Linker>
<ResourceCompiler Options="" Required="no"/>
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Release" Command="./$(ProjectName)" CommandArguments="-c=/dev/ttyUSB0 -sSol -loff" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
<![CDATA[]]>
</Environment>
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="yes">
<DebuggerSearchPaths/>
<PostConnectCommands/>
<StartupCommands/>
</Debugger>
<PreBuild/>
<PostBuild/>
<CustomBuild Enabled="no">
<RebuildCommand/>
<CleanCommand/>
<BuildCommand/>
<PreprocessFileCommand/>
<SingleFileCommand/>
<MakefileGenerationCommand/>
<ThirdPartyToolName>None</ThirdPartyToolName>
<WorkingDirectory/>
</CustomBuild>
<AdditionalRules>
<CustomPostBuild/>
<CustomPreBuild/>
</AdditionalRules>
<Completion EnableCpp11="no">
<ClangCmpFlagsC/>
<ClangCmpFlags/>
<ClangPP/>
<SearchPaths/>
</Completion>
</Configuration>
</Settings>
</CodeLite_Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./Debug/source_main.cpp.o ./Debug/src_DataCSV.cpp.o ./Debug/src_DataChunk.cpp.o ./Debug/src_DataChunkSorted.cpp.o ./Debug/src_DataKML.cpp.o ./Debug/src_DeviceLog.cpp.o ./Debug/src_DeviceLogCSV.cpp.o ./Debug/src_DeviceLogKML.cpp.o ./Debug/src_DeviceLogSerial.cpp.o ./Debug/src_DeviceLogSorted.cpp.o ./Debug/src_GpsParser.cpp.o ./Debug/src_ISDataMappings.cpp.o ./Debug/src_ISDisplay.cpp.o ./Debug/src_ISLogger.cpp.o ./Debug/src_ISMatrix.c.o ./Debug/src_ISPose.c.o ./Debug/src_ISTcpClient.cpp.o ./Debug/src_ISTcpServer.cpp.o ./Debug/src_ISUtilities.cpp.o ./Debug/src_InertialSense.cpp.o ./Debug/src_cltool.cpp.o ./Debug/src_cltool_main.cpp.o ./Debug/src_com_manager.c.o ./Debug/src_data_sets.c.o ./Debug/src_inertialSenseBootLoader.c.o ./Debug/src_linked_list.c.o ./Debug/src_serialPort.c.o ./Debug/src_serialPortPlatform.c.o ./Debug/src_time_conversion.c.o ./Debug/src_tinystr.cpp.o ./Debug/src_tinyxml.cpp.o ./Debug/src_tinyxmlerror.cpp.o ./Debug/src_tinyxmlparser.cpp.o
12 changes: 12 additions & 0 deletions InertialSenseCLTool/CodeLite_project/InertialSenseCLTool.workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<CodeLite_Workspace Name="InertialSenseCLTool" Database="">
<Project Name="InertialSenseCLTool" Path="InertialSenseCLTool.project" Active="Yes"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes">
<Project Name="InertialSenseCLTool" ConfigName="Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Release" Selected="no">
<Project Name="InertialSenseCLTool" ConfigName="Release"/>
</WorkspaceConfiguration>
</BuildMatrix>
</CodeLite_Workspace>
8 changes: 8 additions & 0 deletions InertialSenseCLTool/CodeLite_project/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: clean All

All:
@echo "----------Building project:[ InertialSenseCLTool - Debug ]----------"
@$(MAKE) -f "InertialSenseCLTool.mk"
clean:
@echo "----------Cleaning project:[ InertialSenseCLTool - Debug ]----------"
@$(MAKE) -f "InertialSenseCLTool.mk" clean
52 changes: 52 additions & 0 deletions VS_project/ASCII/IS_ASCII_Demo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#include "../../src/serialPortPlatform.h"

#include <conio.h>

int main(int argc, char *argv[])
{
if (argc < 2)
{
printf("Please specify the com port as the only argument\r\n");
return -1;
}
const char* comPort = argv[1];
serial_port_t serialPort = { 0 };
serialPortPlatformInit(&serialPort);
if (serialPortOpen(&serialPort, comPort, BAUDRATE_3000000, 0) == 0)
{
printf("Failed to open serial port at com port %s\r\n", comPort);
return -2;
}

char msg[512];

// send the stop all broadcasts message
serialPortWriteAscii(&serialPort, "STPB", 4);

// periods are in milliseconds
// a blank period means do not modify the existing broadcast period for that message
sprintf(msg, "ASCB,%s,%s,%s,%s,%s,%s,%s,%s,%s",
"50", // IMU - Dual IMU sensor data (two sets of 3-axis gyros and accelerometers) in the body frame.
"50", // INS1 - INS output with Euler angles and NED offset from the reference LLA.
"", // INS2 - INS output with quaternion attitude.
"", // GPS POS - GPS position data.
"", // GPS VEL - GPS velocity data.
"200", // GGA - NMEA global positioning system fix.
"", // GLL - NMEA geographic position, latitude / longitude and time.
"", // GSA - NMEA GPS DOP and active satellites.
"" // DTV - Integrated IMU, delta theta velocity (conning and sculling integrals) in the body frame.
);

serialPortWriteAscii(&serialPort, msg, strlen(msg));

// read in lines until key press
while (!_kbhit())
{
int count = serialPortRead(&serialPort, (unsigned char*)msg, sizeof(msg) - 1);
msg[count] = '\0';
printf(msg);
}

serialPortClose(&serialPort);
}

28 changes: 28 additions & 0 deletions VS_project/ASCII/IS_ASCII_Demo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IS_ASCII_Demo", "IS_ASCII_Demo.vcxproj", "{635AC46D-6033-4971-9F00-22CF4B983770}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{635AC46D-6033-4971-9F00-22CF4B983770}.Debug|x64.ActiveCfg = Debug|x64
{635AC46D-6033-4971-9F00-22CF4B983770}.Debug|x64.Build.0 = Debug|x64
{635AC46D-6033-4971-9F00-22CF4B983770}.Debug|x86.ActiveCfg = Debug|Win32
{635AC46D-6033-4971-9F00-22CF4B983770}.Debug|x86.Build.0 = Debug|Win32
{635AC46D-6033-4971-9F00-22CF4B983770}.Release|x64.ActiveCfg = Release|x64
{635AC46D-6033-4971-9F00-22CF4B983770}.Release|x64.Build.0 = Release|x64
{635AC46D-6033-4971-9F00-22CF4B983770}.Release|x86.ActiveCfg = Release|Win32
{635AC46D-6033-4971-9F00-22CF4B983770}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading

0 comments on commit a7e3a84

Please sign in to comment.