GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_FLAGS_H
22 #define GNSS_SDR_FLAGS_H
23 
24 
25 #include <gflags/gflags.h>
26 #include <cstdint>
27 
28 DECLARE_string(c); //!< Path to the configuration file.
29 DECLARE_string(config_file); //!< Path to the configuration file.
30 
31 DECLARE_string(log_dir); //!< Path to the folder in which logging will be stored.
32 
33 // Declare flags for signal sources
34 DECLARE_string(s); //!< Path to the file containing the signal samples.
35 DECLARE_string(signal_source); //!< Path to the file containing the signal samples.
36 DECLARE_bool(rf_shutdown); //!< Shutdown RF when program exits.
37 
38 // Declare flags for acquisition blocks
39 DECLARE_int32(doppler_max); //!< If defined, maximum Doppler value in the search grid, in Hz (overrides the configuration file).
40 DECLARE_int32(doppler_step); //!< If defined, sets the frequency step in the search grid, in Hz, in Hz (overrides the configuration file).
41 
42 // Declare flags for tracking blocks
43 DECLARE_int32(cn0_samples); //!< Number of correlator outputs used for CN0 estimation.
44 DECLARE_int32(cn0_min); //!< Minimum valid CN0 (in dB-Hz).
45 DECLARE_int32(max_lock_fail); //!< Maximum number of code lock failures before dropping a satellite.
46 DECLARE_int32(max_carrier_lock_fail); //!< Maximum number of carrier lock failures before dropping a satellite.
47 DECLARE_double(carrier_lock_th); //!< Carrier lock threshold (in rad).
48 DECLARE_double(dll_bw_hz); //!< Bandwidth of the DLL low pass filter, in Hz (overrides the configuration file).
49 DECLARE_double(pll_bw_hz); //!< Bandwidth of the PLL low pass filter, in Hz (overrides the configuration file).
50 
51 // Declare flags for observables block
52 DECLARE_int32(carrier_smoothing_factor); //!< Sets carrier smoothing factor M (overrides the configuration file).
53 const int32_t DEFAULT_CARRIER_SMOOTHING_FACTOR = 200;
54 
55 // Declare flags for PVT
56 DECLARE_string(RINEX_version); //!< If defined, specifies the RINEX version (2.11 or 3.02). Overrides the configuration file.
57 DECLARE_string(RINEX_name); //!< If defined, specifies the RINEX files base name
58 
59 #endif
DECLARE_int32(doppler_max)
If defined, maximum Doppler value in the search grid, in Hz (overrides the configuration file)...
DECLARE_double(carrier_lock_th)
Carrier lock threshold (in rad).
DECLARE_bool(rf_shutdown)
Shutdown RF when program exits.
DECLARE_string(c)
Path to the configuration file.