2018-02-18 11:23:55 +00:00
|
|
|
/*!
|
|
|
|
* \file gnss_sdr_flags.h
|
|
|
|
* \brief Helper file for gnss-sdr commandline flags
|
|
|
|
* \author Carles Fernandez-Prades, 2018. cfernandez(at)cttc.es
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2018-02-18 11:23:55 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2018-02-18 11:23:55 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_FLAGS_H
|
|
|
|
#define GNSS_SDR_FLAGS_H
|
2018-02-18 11:23:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <gflags/gflags.h>
|
2020-02-11 18:34:21 +00:00
|
|
|
#include <cstdint>
|
2018-02-18 11:23:55 +00:00
|
|
|
|
2019-03-10 18:19:07 +00:00
|
|
|
DECLARE_string(c); //!< Path to the configuration file.
|
|
|
|
DECLARE_string(config_file); //!< Path to the configuration file.
|
2018-02-18 11:23:55 +00:00
|
|
|
|
2019-03-10 18:19:07 +00:00
|
|
|
DECLARE_string(log_dir); //!< Path to the folder in which logging will be stored.
|
2018-02-18 11:23:55 +00:00
|
|
|
|
|
|
|
// Declare flags for signal sources
|
2019-03-10 18:19:07 +00:00
|
|
|
DECLARE_string(s); //!< Path to the file containing the signal samples.
|
|
|
|
DECLARE_string(signal_source); //!< Path to the file containing the signal samples.
|
2019-10-13 21:38:06 +00:00
|
|
|
DECLARE_bool(rf_shutdown); //!< Shutdown RF when program exits.
|
2018-02-18 11:23:55 +00:00
|
|
|
|
2018-02-18 17:37:38 +00:00
|
|
|
// Declare flags for acquisition blocks
|
2019-03-10 18:19:07 +00:00
|
|
|
DECLARE_int32(doppler_max); //!< If defined, maximum Doppler value in the search grid, in Hz (overrides the configuration file).
|
|
|
|
DECLARE_int32(doppler_step); //!< If defined, sets the frequency step in the search grid, in Hz, in Hz (overrides the configuration file).
|
2018-02-18 17:37:38 +00:00
|
|
|
|
2018-02-18 12:55:04 +00:00
|
|
|
// Declare flags for tracking blocks
|
2019-06-11 18:20:23 +00:00
|
|
|
DECLARE_int32(cn0_samples); //!< Number of correlator outputs used for CN0 estimation.
|
|
|
|
DECLARE_int32(cn0_min); //!< Minimum valid CN0 (in dB-Hz).
|
|
|
|
DECLARE_int32(max_lock_fail); //!< Maximum number of code lock failures before dropping a satellite.
|
|
|
|
DECLARE_int32(max_carrier_lock_fail); //!< Maximum number of carrier lock failures before dropping a satellite.
|
|
|
|
DECLARE_double(carrier_lock_th); //!< Carrier lock threshold (in rad).
|
|
|
|
DECLARE_double(dll_bw_hz); //!< Bandwidth of the DLL low pass filter, in Hz (overrides the configuration file).
|
|
|
|
DECLARE_double(pll_bw_hz); //!< Bandwidth of the PLL low pass filter, in Hz (overrides the configuration file).
|
2018-02-18 12:55:04 +00:00
|
|
|
|
2020-02-10 18:51:33 +00:00
|
|
|
// Declare flags for observables block
|
2020-02-11 18:34:21 +00:00
|
|
|
DECLARE_int32(carrier_smoothing_factor); //!< Sets carrier smoothing factor M (overrides the configuration file).
|
|
|
|
const int32_t DEFAULT_CARRIER_SMOOTHING_FACTOR = 200;
|
2020-02-10 18:51:33 +00:00
|
|
|
|
2018-02-18 12:55:04 +00:00
|
|
|
// Declare flags for PVT
|
2019-03-10 18:19:07 +00:00
|
|
|
DECLARE_string(RINEX_version); //!< If defined, specifies the RINEX version (2.11 or 3.02). Overrides the configuration file.
|
2020-02-25 13:43:15 +00:00
|
|
|
DECLARE_string(RINEX_name); //!< If defined, specifies the RINEX files base name
|
2018-02-18 11:23:55 +00:00
|
|
|
|
|
|
|
#endif
|