Skip to content

Commit

Permalink
added vn-100 library
Browse files Browse the repository at this point in the history
  • Loading branch information
DWatkins committed Jun 23, 2016
1 parent 793bb5e commit 9c154b6
Show file tree
Hide file tree
Showing 16 changed files with 15,559 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/vectornav/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 2.8.3)
project(vectornav)

## Start Global Marker

## End Global Marker

## Check C++11 / C++0x
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "-std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "-std=c++0x")
else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()

include_directories(include/vectornav)
add_library(vectornav
src/vectornav/vn100.c
src/vectornav/vncp_services.c
src/vectornav/vndevice.c)
38 changes: 38 additions & 0 deletions src/vectornav/include/vectornav/vectornav.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* \file
*
* \section LICENSE
* The MIT License (MIT)
*
* Copyright (c) 2014 VectorNav Technologies, LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* \section DESCRIPTION
* This header file includes all of the header file inclusions needed to use
* all of the features of the VectorNav C/C++ Library.
*/
#ifndef _VECTORNAV_H_
#define _VECTORNAV_H_

#include "vn100.h"
#include "vn200.h"
#include "vn_math.h"

#endif /* VECTORNAV_H */
Loading

0 comments on commit 9c154b6

Please sign in to comment.