GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
gnss_sdr_flags.h
Go to the documentation of this file.
1 /*!
2  * \file gnss_sdr_flags.h
3  * \brief Helper file for gnss-sdr commandline flags
4  * \author Carles Fernandez-Prades, 2018. cfernandez(at)cttc.es
5  *
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 #ifndef GNSS_SDR_GNSS_SDR_FLAGS_H
19 #define GNSS_SDR_GNSS_SDR_FLAGS_H
20 
21 
22 #include <gflags/gflags.h>
23 #include <cstdint>
24 
25 /** \addtogroup Algorithms_Library
26  * \{ */
27 /** \addtogroup Gflags gnss_sdr_flags
28  * Library for command-line handling.
29  * \{ */
30 
31 
32 DECLARE_string(c); //!< Path to the configuration file.
33 DECLARE_string(config_file); //!< Path to the configuration file.
34 
35 DECLARE_string(log_dir); //!< Path to the folder in which logging will be stored.
36 
37 // Declare flags for signal sources
38 DECLARE_string(s); //!< Path to the file containing the signal samples.
39 DECLARE_string(signal_source); //!< Path to the file containing the signal samples.
40 DECLARE_bool(rf_shutdown); //!< Shutdown RF when program exits.
41 
42 // Declare flags for acquisition blocks
43 DECLARE_int32(doppler_max); //!< If defined, maximum Doppler value in the search grid, in Hz (overrides the configuration file).
44 DECLARE_int32(doppler_step); //!< If defined, sets the frequency step in the search grid, in Hz, in Hz (overrides the configuration file).
45 
46 // Declare flags for tracking blocks
47 DECLARE_int32(cn0_samples); //!< Number of correlator outputs used for CN0 estimation.
48 DECLARE_int32(cn0_min); //!< Minimum valid CN0 (in dB-Hz).
49 DECLARE_int32(max_lock_fail); //!< Maximum number of code lock failures before dropping a satellite.
50 DECLARE_int32(max_carrier_lock_fail); //!< Maximum number of carrier lock failures before dropping a satellite.
51 DECLARE_double(carrier_lock_th); //!< Carrier lock threshold (in rad).
52 DECLARE_double(dll_bw_hz); //!< Bandwidth of the DLL low pass filter, in Hz (overrides the configuration file).
53 DECLARE_double(pll_bw_hz); //!< Bandwidth of the PLL low pass filter, in Hz (overrides the configuration file).
54 
55 // Declare flags for observables block
56 DECLARE_int32(carrier_smoothing_factor); //!< Sets carrier smoothing factor M (overrides the configuration file).
57 const int32_t DEFAULT_CARRIER_SMOOTHING_FACTOR = 200;
58 
59 // Declare flags for PVT
60 DECLARE_string(RINEX_version); //!< If defined, specifies the RINEX version (2.11 or 3.02). Overrides the configuration file.
61 DECLARE_string(RINEX_name); //!< If defined, specifies the RINEX files base name
62 
63 
64 /** \} */
65 /** \} */
66 #endif // GNSS_SDR_GNSS_SDR_FLAGS_H
DECLARE_string(c)
Path to the configuration file.
DECLARE_int32(doppler_max)
If defined, maximum Doppler value in the search grid, in Hz (overrides the configuration file)...
DECLARE_bool(rf_shutdown)
Shutdown RF when program exits.
DECLARE_double(carrier_lock_th)
Carrier lock threshold (in rad).