Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added beta version (really draft) of RTKLIB driver #133

Merged
merged 3 commits into from
May 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ option(WITH_LIMESDR "Install LIME-SDR Receiver" On)
option(WITH_RTLSDR "Install RTL-SDR Receiver" On)
option(WITH_RADIOSIM "Install RadioSim Receiver" On)
option(WITH_GPSNMEA "Install GPS NMEA Driver" On)
option(WITH_RTKLIB "Install RTKLIB Driver" On)
option(WITH_ARMADILLO "Install Armadillo & Platypus Driver" On)
option(WITH_FXLOAD "Install FX3 compatible fxload tool" Off)
option(WITH_NIGHTSCAPE "Install Nightscape 8300 Driver" On)
Expand Down Expand Up @@ -438,6 +439,11 @@ if (WITH_GPSNMEA)
add_subdirectory(indi-gpsnmea)
endif(WITH_GPSNMEA)

## RTKLIB
if (WITH_RTKLIB)
add_subdirectory(indi-rtklib)
endif(WITH_RTKLIB)

## GIGE
if (WITH_GIGE)
add_subdirectory(indi-gige)
Expand Down
5 changes: 5 additions & 0 deletions debian/indi-rtklib/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
indi-rtklib (1.0) bionic; urgency=medium

* Upstream update

-- Jasem Mutlaq <mutlaqja@ikarustech.com> Wed, 29 Apr 2020 13:00:00 +0300
1 change: 1 addition & 0 deletions debian/indi-rtklib/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
23 changes: 23 additions & 0 deletions debian/indi-rtklib/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: indi-rtklib
Section: science
Priority: extra
Maintainer: Jasem Mutlaq <mutlaqja@ikarustech.com>
Build-Depends: debhelper (>= 5), cdbs, cmake, libusb-1.0-0-dev, libcfitsio-dev, libindi-dev, zlib1g-dev, libnova-dev
Standards-Version: 3.9.2

Package: indi-rtklib
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, rtklib, libindi1
Description: Precise positioning for INDI
.
This driver is compatible with any INDI client such as KStars or Xephem.

Package: indi-rtklib-dbg
Priority: extra
Section: debug
Architecture: any
Depends: indi-rtklib (= ${binary:Version}), ${misc:Depends}
Description: Precise positioning for INDI
.
This driver is compatible with any INDI client such as KStars or Xephem.
This package contains the debug symbols for the this driver, useful to investigate problems in INDI.
27 changes: 27 additions & 0 deletions debian/indi-rtklib/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
This package was debianized by Jasem Mutlaq <mutlaqja@ikarustech.com> on
Wed,08 Oct 2008 02:44:13 +0300.

Copyright:

Copyright (C) 2020 Ilia Platone

License:

This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

See /usr/share/common-licenses/LGPL

The Debian packaging is (C) 2008, Jasem Mutlaq <mutlaqja@ikarustech.com> and
is licensed under the LGPL License, see /usr/share/common-licenses/LGPL
3 changes: 3 additions & 0 deletions debian/indi-rtklib/indi-rtklib.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/bin/
usr/share/indi/

7 changes: 7 additions & 0 deletions debian/indi-rtklib/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk

DEB_SRCDIR=indi-rtklib
DEB_DH_SHLIBDEPS_ARGS=-u--ignore-missing-info
1 change: 1 addition & 0 deletions debian/indi-rtklib/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
36 changes: 36 additions & 0 deletions indi-rtklib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
########### NexStar Evolution INDI driver ##############
PROJECT(indi_rtklib C CXX)
cmake_minimum_required(VERSION 3.0)

include(GNUInstallDirs)

LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/")

set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/indi/")
set(INDI_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/indi")

find_package(INDI REQUIRED)
find_package(Nova REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Threads REQUIRED)

set(RTKLIB_VERSION_MAJOR 0)
set(RTKLIB_VERSION_MINOR 1)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/indi_rtklib.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/indi_rtklib.xml )

include_directories( ${CMAKE_CURRENT_BINARY_DIR})
include_directories( ${CMAKE_CURRENT_SOURCE_DIR})
include_directories( ${INDI_INCLUDE_DIR})
include_directories( ${NOVA_INCLUDE_DIR})

include(CMakeCommon)

add_executable(indi_rtklib rtklib_driver.cpp rtkrcv_parser.c)
target_link_libraries(indi_rtklib ${INDI_LIBRARIES} ${NOVA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
install(TARGETS indi_rtklib RUNTIME DESTINATION bin )

install( FILES ${CMAKE_CURRENT_BINARY_DIR}/indi_rtklib.xml DESTINATION ${INDI_DATA_DIR})
10 changes: 10 additions & 0 deletions indi-rtklib/config.h.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef CONFIG_H
#define CONFIG_H

/* Define INDI Data Dir */
#cmakedefine INDI_DATA_DIR "@INDI_DATA_DIR@"
/* Define Driver version */
#define RTKLIB_VERSION_MAJOR @RTKLIB_VERSION_MAJOR@
#define RTKLIB_VERSION_MINOR @RTKLIB_VERSION_MINOR@

#endif // CONFIG_H
9 changes: 9 additions & 0 deletions indi-rtklib/indi_rtklib.xml.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<driversList>
<devGroup group="Auxiliary">
<device label="RTKLIB Precise Positioning">
<driver name="RTKLIB Precise Positioning">indi_rtklib</driver>
<version>@RTKLIB_VERSION_MAJOR@.@RTKLIB_VERSION_MINOR@</version>
</device>
</devGroup>
</driversList>