mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Improve README, remove unused files
This commit is contained in:
parent
d9525f5334
commit
c993ebac60
@ -34,12 +34,12 @@ Available command-line flags:
|
|||||||
|
|
||||||
| **flag** | **Default value** | **Description** |
|
| **flag** | **Default value** | **Description** |
|
||||||
|:------------------------:|:-----------------:|:-----------------|
|
|:------------------------:|:-----------------:|:-----------------|
|
||||||
| `skip_obs_transitory_s` | `30.0` | Skip the initial observable outputs to avoid transitory results [s]. |
|
| `--skip_obs_transitory_s` | `30.0` | Skip the initial observable outputs to avoid transitory results [s]. |
|
||||||
| `skip_obs_ends_s` | `5.0` | Skip the lasts observable outputs to avoid transitory results [s]. |
|
| `--skip_obs_ends_s` | `5.0` | Skip the lasts observable outputs to avoid transitory results [s]. |
|
||||||
| `single_diffs` | `false` | [`true`, `false`]: If `true`, the program also computes the single difference errors for [Carrier Phase](https://gnss-sdr.org/docs/sp-blocks/observables/#carrier-phase-measurement) and [Doppler](https://gnss-sdr.org/docs/sp-blocks/observables/#doppler-shift-measurement) measurements (requires LO synchronization between receivers). |
|
| `--single_diffs` | `false` | [`true`, `false`]: If `true`, the program also computes the single difference errors for [Carrier Phase](https://gnss-sdr.org/docs/sp-blocks/observables/#carrier-phase-measurement) and [Doppler](https://gnss-sdr.org/docs/sp-blocks/observables/#doppler-shift-measurement) measurements (requires LO synchronization between receivers). |
|
||||||
| `compare_with_5X` | `false` | [`true`, `false`]: If `true`, compares the E5a Doppler and Carrier Phases with the E5 full Bw in RINEX (expect discrepancy due to the center frequencies difference). |
|
| `--compare_with_5X` | `false` | [`true`, `false`]: If `true`, the program compares the E5a Doppler and Carrier Phases with the E5 full Bw in RINEX (expect discrepancy due to the center frequencies difference). |
|
||||||
| `dupli_sat` | `false` | [`true`, `false`]: If `true`, enables special observable test mode where the scenario contains duplicated satellite orbits. |
|
| `--dupli_sat` | `false` | [`true`, `false`]: If `true`, this flag enables special observable test mode where the scenario contains duplicated satellite orbits. |
|
||||||
| `dupli_sat_prns` | `1,2,3,4` | List of duplicated satellites PRN pairs (_i.e._, `1,2,3,4` indicates that the PRNs 1,2 share the same orbit. The same applies for PRNs 3,4). |
|
| `--dupli_sat_prns` | `1,2,3,4` | List of duplicated satellites PRN pairs (_i.e._, `1,2,3,4` indicates that the PRNs 1,2 share the same orbit. The same applies for PRNs 3,4). |
|
||||||
| `ref_rinex_obs` | `reference.obs` | Filename of reference RINEX observation file. |
|
| `--ref_rinex_obs` | `reference.obs` | Filename of reference RINEX observation file. |
|
||||||
| `test_rinex_obs` | `test.obs` | Filename of tested RINEX observation file. |
|
| `--test_rinex_obs` | `test.obs` | Filename of tested RINEX observation file. |
|
||||||
| `show_plots` | `true` | [`true`, `false`]: If `true`, and if [gnuplot](http://www.gnuplot.info/) is found on the system, displays results plots on screen. Please set it to `false` for non-interactive testing. |
|
| `--show_plots` | `true` | [`true`, `false`]: If `true`, and if [gnuplot](http://www.gnuplot.info/) is found on the system, displays results plots on screen. Please set it to `false` for non-interactive testing. |
|
||||||
|
@ -1,190 +0,0 @@
|
|||||||
# Copyright (C) 2012-2020 (see AUTHORS file for a list of contributors)
|
|
||||||
#
|
|
||||||
# GNSS-SDR is a software-defined Global Navigation Satellite Systems receiver
|
|
||||||
#
|
|
||||||
# This file is part of GNSS-SDR.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
#
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# Local installation of GPSTk https://github.com/SGL-UT/GPSTk
|
|
||||||
############################################################################
|
|
||||||
find_package(GPSTK)
|
|
||||||
set_package_properties(GPSTK PROPERTIES
|
|
||||||
PURPOSE "Used in some Extra Tests."
|
|
||||||
TYPE REQUIRED
|
|
||||||
)
|
|
||||||
if(NOT GPSTK_FOUND OR ENABLE_OWN_GPSTK)
|
|
||||||
set_package_properties(GPSTK PROPERTIES
|
|
||||||
PURPOSE "GPSTk v${GNSSSDR_GPSTK_LOCAL_VERSION} will be automatically downloaded and built when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'."
|
|
||||||
)
|
|
||||||
if("${TOOLCHAIN_ARG}" STREQUAL "")
|
|
||||||
set(TOOLCHAIN_ARG "-DCMAKE_CXX_FLAGS=-Wno-deprecated")
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
|
|
||||||
endif()
|
|
||||||
set(GPSTK_BUILD_COMMAND "${CMAKE_MAKE_PROGRAM}")
|
|
||||||
if(CMAKE_GENERATOR STREQUAL Xcode)
|
|
||||||
set(GPSTK_BUILD_COMMAND "xcodebuild" "-configuration" "${CMAKE_BUILD_TYPE}")
|
|
||||||
endif()
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.2)
|
|
||||||
ExternalProject_Add(gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
GIT_REPOSITORY https://github.com/SGL-UT/GPSTk
|
|
||||||
GIT_TAG v${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
CMAKE_ARGS ${GTEST_COMPILER} ${TOOLCHAIN_ARG} -DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install -DBUILD_EXT=OFF -DBUILD_PYTHON=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
||||||
BUILD_COMMAND ${GPSTK_BUILD_COMMAND}
|
|
||||||
UPDATE_COMMAND ""
|
|
||||||
PATCH_COMMAND ""
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
ExternalProject_Add(gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
GIT_REPOSITORY https://github.com/SGL-UT/GPSTk
|
|
||||||
GIT_TAG v${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}
|
|
||||||
CMAKE_ARGS ${GTEST_COMPILER} ${TOOLCHAIN_ARG} -DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install -DBUILD_EXT=OFF -DBUILD_PYTHON=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
||||||
BUILD_COMMAND ${GPSTK_BUILD_COMMAND}
|
|
||||||
BUILD_BYPRODUCTS ${CMAKE_SOURCE_DIR}/thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_SHARED_LIBRARY_SUFFIX}
|
|
||||||
UPDATE_COMMAND ""
|
|
||||||
PATCH_COMMAND ""
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
set(GPSTK_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/include CACHE PATH "Local GPSTK headers")
|
|
||||||
set(GPSTK_LIBRARY ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
||||||
set(GPSTK_BINDIR ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/bin/)
|
|
||||||
add_definitions(-DGPSTK_BINDIR="${GPSTK_BINDIR}")
|
|
||||||
add_library(Gpstk::gpstk SHARED IMPORTED)
|
|
||||||
add_dependencies(Gpstk::gpstk gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION})
|
|
||||||
file(MAKE_DIRECTORY ${GPSTK_INCLUDE_DIRS})
|
|
||||||
file(MAKE_DIRECTORY ${GPSTK_INCLUDE_DIRS}/gpstk)
|
|
||||||
set_target_properties(Gpstk::gpstk PROPERTIES
|
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
|
||||||
IMPORTED_LOCATION "${GPSTK_LIBRARY}"
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${GPSTK_INCLUDE_DIRS};${GPSTK_INCLUDE_DIRS}/gpstk"
|
|
||||||
INTERFACE_LINK_LIBRARIES "${GPSTK_LIBRARY}"
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
set(GPSTK_BINDIR ${GPSTK_INCLUDE_DIR}/../bin/)
|
|
||||||
add_definitions(-DGPSTK_BINDIR="${GPSTK_BINDIR}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
find_package(Gnuplot)
|
|
||||||
if(GNUPLOT_FOUND)
|
|
||||||
add_definitions(-DGNUPLOT_EXECUTABLE="${GNUPLOT_EXECUTABLE}")
|
|
||||||
endif()
|
|
||||||
set_package_properties(Gnuplot PROPERTIES
|
|
||||||
URL "http://www.gnuplot.info"
|
|
||||||
PURPOSE "Used to generate plots in some tests."
|
|
||||||
TYPE OPTIONAL
|
|
||||||
)
|
|
||||||
if(GNUPLOT_FOUND AND GNUPLOT_VERSION_STRING)
|
|
||||||
set_package_properties(Gnuplot PROPERTIES
|
|
||||||
DESCRIPTION "A portable command-line driven graphing utility (found: v${GNUPLOT_VERSION_STRING})"
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
set_package_properties(Gnuplot PROPERTIES
|
|
||||||
DESCRIPTION "A portable command-line driven graphing utility"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
set(LIST_INCLUDE_DIRS
|
|
||||||
${CMAKE_SOURCE_DIR}/src/tests/common-files
|
|
||||||
)
|
|
||||||
|
|
||||||
include_directories(${LIST_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
#set(obsdiff_SOURCES obsdiff.cc)
|
|
||||||
set(obsdiff_HEADERS obsdiff_flags.h)
|
|
||||||
source_group(Headers FILES ${obsdiff_HEADERS})
|
|
||||||
|
|
||||||
|
|
||||||
if(ENABLE_CLANG_TIDY)
|
|
||||||
if(CLANG_TIDY_EXE)
|
|
||||||
set_target_properties(obsdiff_lib
|
|
||||||
PROPERTIES
|
|
||||||
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(obsdiff ${CMAKE_CURRENT_SOURCE_DIR}/obsdiff.cc)
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Detect availability of std::filesystem and set C++ standard accordingly
|
|
||||||
################################################################################
|
|
||||||
set(FILESYSTEM_FOUND FALSE)
|
|
||||||
if(NOT (GNURADIO_VERSION VERSION_LESS 3.8) AND LOG4CPP_READY_FOR_CXX17)
|
|
||||||
# Check if we have std::filesystem
|
|
||||||
if(NOT (CMAKE_VERSION VERSION_LESS 3.8))
|
|
||||||
find_package(FILESYSTEM COMPONENTS Final Experimental)
|
|
||||||
set_package_properties(FILESYSTEM PROPERTIES
|
|
||||||
URL "https://en.cppreference.com/w/cpp/filesystem"
|
|
||||||
DESCRIPTION "Provides facilities for performing operations on file systems and their components"
|
|
||||||
PURPOSE "Work with paths, regular files, and directories."
|
|
||||||
TYPE OPTIONAL
|
|
||||||
)
|
|
||||||
if(${FILESYSTEM_FOUND})
|
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.13)
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
else()
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
endif()
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries(obsdiff
|
|
||||||
PUBLIC
|
|
||||||
Boost::headers
|
|
||||||
PRIVATE
|
|
||||||
Armadillo::armadillo
|
|
||||||
Threads::Threads
|
|
||||||
channel_libs
|
|
||||||
algorithms_libs
|
|
||||||
core_receiver
|
|
||||||
core_libs
|
|
||||||
Gflags::gflags
|
|
||||||
Glog::glog
|
|
||||||
Gpstk::gpstk
|
|
||||||
)
|
|
||||||
|
|
||||||
target_compile_definitions(obsdiff
|
|
||||||
PUBLIC -DGNSS_SDR_VERSION="${VERSION}"
|
|
||||||
PUBLIC -DGNSSSDR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}"
|
|
||||||
)
|
|
||||||
|
|
||||||
if(ENABLE_CLANG_TIDY)
|
|
||||||
if(CLANG_TIDY_EXE)
|
|
||||||
set_target_properties(obsdiff
|
|
||||||
PROPERTIES
|
|
||||||
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_custom_command(TARGET obsdiff POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:obsdiff>
|
|
||||||
${CMAKE_SOURCE_DIR}/install/$<TARGET_FILE_NAME:obsdiff>)
|
|
||||||
|
|
||||||
install(TARGETS obsdiff
|
|
||||||
RUNTIME DESTINATION bin
|
|
||||||
COMPONENT "obsdiff"
|
|
||||||
)
|
|
||||||
|
|
||||||
find_program(GZIP gzip
|
|
||||||
/bin
|
|
||||||
/usr/bin
|
|
||||||
/usr/local/bin
|
|
||||||
/opt/local/bin
|
|
||||||
/sbin
|
|
||||||
)
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,46 +0,0 @@
|
|||||||
/*!
|
|
||||||
* \file rinex_observable_tests_flags.h
|
|
||||||
* \brief Helper file for unit testing
|
|
||||||
* \author Javier Arribas, 2019. jarribas(at)cttc.es
|
|
||||||
*
|
|
||||||
* -------------------------------------------------------------------------
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
|
||||||
*
|
|
||||||
* GNSS-SDR is a software defined Global Navigation
|
|
||||||
* Satellite Systems receiver
|
|
||||||
*
|
|
||||||
* This file is part of GNSS-SDR.
|
|
||||||
*
|
|
||||||
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GNSS-SDR 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 General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* -------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef GNSS_SDR_OBS_DIFF_FLAGS_H_
|
|
||||||
#define GNSS_SDR_OBS_DIFF_FLAGS_H_
|
|
||||||
|
|
||||||
#include <gflags/gflags.h>
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
DEFINE_double(skip_obs_transitory_s, 30.0, "Skip the initial observable outputs to avoid transitory results [s]");
|
|
||||||
DEFINE_double(skip_obs_ends_s, 5.0, "Skip the lasts observable outputs to avoid transitory results [s]");
|
|
||||||
DEFINE_bool(single_diffs, false, "Compute also the single difference errors for Accumulated Carrier Phase and Carrier Doppler (requires LO synchronization between receivers)");
|
|
||||||
DEFINE_bool(compare_with_5X, false, "Compare the E5a Doppler and Carrier Phases with the E5 full bw in RINEX (expect discrepancy due to the center frequencies differences");
|
|
||||||
DEFINE_bool(dupli_sat, false, "Enable special observable test mode where the scenario contains duplicated satellite orbits");
|
|
||||||
DEFINE_string(dupli_sat_prns, "1,2,3,4", "List of duplicated satellites PRN pairs (i.e. 1,2,3,4 indicates that the PRNs 1,2 share the same orbit. The same applies for PRNs 3,4)");
|
|
||||||
DEFINE_string(ref_rinex_obs, "reference.obs", "Filename of reference RINEX navigation file");
|
|
||||||
DEFINE_string(test_rinex_obs, "test.obs", "Filename of test RINEX navigation file");
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user