mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-06-14 17:19:58 +00:00
7f1619483f
Moved code generation logic to use bool type to keep same notation as the previous implementations. More testing in code is required
57 lines
2.6 KiB
C++
57 lines
2.6 KiB
C++
/*!
|
|
* \file Beidou_B3I.h
|
|
* \brief Defines system parameters for BeiDou B3I signal and DNAV data
|
|
* \author Damian Miralles, 2019. dmiralles2009@gmail.com
|
|
* -------------------------------------------------------------------------
|
|
*
|
|
* Copyright (C) 2010-2015 (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 <http://www.gnu.org/licenses/>.
|
|
*
|
|
* -------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
#ifndef GNSS_SDR_BEIDOU_B3I_H_
|
|
#define GNSS_SDR_BEIDOU_B3I_H_
|
|
|
|
#include <vector>
|
|
#include <utility> // std::pair
|
|
#include "MATH_CONSTANTS.h"
|
|
|
|
// carrier and code frequencies
|
|
const double BEIDOU_B3I_FREQ_HZ = 1.268520e9; //!< BeiDou B3I [Hz]
|
|
const double BEIDOU_B3I_CODE_RATE_HZ = 10.23e6; //!< BeiDou B3I code rate [chips/s]
|
|
const double BEIDOU_B3I_CODE_LENGTH_CHIPS = 10230.0; //!< BeiDou B3I code length [chips]
|
|
const double BEIDOU_B3I_CODE_PERIOD = 0.001; //!< BeiDou B3I code period [seconds]
|
|
const unsigned int BEIDOU_B3I_CODE_PERIOD_MS = 1; //!< GPS L1 C/A code period [ms]
|
|
const int BEIDOU_B3I_SECONDARY_CODE_LENGTH = 20;
|
|
const std::string BEIDOU_B3I_SECONDARY_CODE = "00000100110101001110";
|
|
const std::string BEIDOU_B3I_SECONDARY_CODE_STR = "00000100110101001110";
|
|
const std::string BEIDOU_B3I_D2_SECONDARY_CODE_STR = "00";
|
|
const int BEIDOU_B3I_PREAMBLE_LENGTH_BITS = 11;
|
|
const int BEIDOU_B3I_PREAMBLE_LENGTH_SYMBOLS = 220; // **************
|
|
const double BEIDOU_B3I_PREAMBLE_DURATION_S = 0.220;
|
|
const int BEIDOU_B3I_PREAMBLE_DURATION_MS = 220;
|
|
const int BEIDOU_B3I_TELEMETRY_RATE_BITS_SECOND = 50; //!< D1 NAV message bit rate [bits/s]
|
|
const int BEIDOU_B3I_TELEMETRY_SYMBOLS_PER_BIT = 20; // *************
|
|
const int BEIDOU_B3I_TELEMETRY_RATE_SYMBOLS_SECOND = BEIDOU_B3I_TELEMETRY_RATE_BITS_SECOND*BEIDOU_B3I_TELEMETRY_SYMBOLS_PER_BIT; //************!< NAV message bit rate [symbols/s]
|
|
|
|
#endif /* GNSS_SDR_BEIDOU_B3I_H_ */
|