mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-21 17:44:52 +00:00
Linting fixes
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include "ion_gsms_signal_source.h"
|
#include "ion_gsms_signal_source.h"
|
||||||
#include <gnuradio/blocks/copy.h>
|
#include <gnuradio/blocks/copy.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "gnss_sdr_timestamp.h"
|
#include "gnss_sdr_timestamp.h"
|
||||||
#include "ion_gsms.h"
|
#include "ion_gsms.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/** \addtogroup Signal_Source
|
/** \addtogroup Signal_Source
|
||||||
* \{ */
|
* \{ */
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#include "gnuradio/block.h"
|
#include "gnuradio/block.h"
|
||||||
#include "ion_gsms.h"
|
#include "ion_gsms.h"
|
||||||
|
#include <memory>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#include <gnuradio/sync_block.h>
|
#include <gnuradio/sync_block.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
class IONGSMSFileSource : public gr::sync_block
|
class IONGSMSFileSource : public gr::sync_block
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include "ion_gsms_chunk_data.h"
|
#include "ion_gsms_chunk_data.h"
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
#include "ion_gsms_stream_encodings.h"
|
#include "ion_gsms_stream_encodings.h"
|
||||||
#include "ion_gsms_chunk_unpacking_ctx.h"
|
#include "ion_gsms_chunk_unpacking_ctx.h"
|
||||||
#include <gnuradio/block.h>
|
#include <gnuradio/block.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
#include "GnssMetadata.h"
|
#include "GnssMetadata.h"
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
#include <gnuradio/block.h>
|
#include <gnuradio/block.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
#ifndef ION_GSM_STREAM_ENCODINGS_H
|
#ifndef ION_GSM_STREAM_ENCODINGS_H
|
||||||
#define ION_GSM_STREAM_ENCODINGS_H
|
#define ION_GSM_STREAM_ENCODINGS_H
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#if USE_GLOG_AND_GFLAGS
|
#if USE_GLOG_AND_GFLAGS
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#else
|
#else
|
||||||
@@ -27,10 +29,12 @@
|
|||||||
|
|
||||||
namespace GnssMetadata
|
namespace GnssMetadata
|
||||||
{
|
{
|
||||||
|
|
||||||
using StreamEncoding = unsigned char;
|
using StreamEncoding = unsigned char;
|
||||||
|
|
||||||
namespace StreamEncodings
|
namespace StreamEncodings
|
||||||
{
|
{
|
||||||
|
|
||||||
constexpr unsigned char SIGN = 0;
|
constexpr unsigned char SIGN = 0;
|
||||||
constexpr unsigned char OB = 1;
|
constexpr unsigned char OB = 1;
|
||||||
constexpr unsigned char SM = 2;
|
constexpr unsigned char SM = 2;
|
||||||
@@ -43,7 +47,8 @@ namespace GnssMetadata
|
|||||||
constexpr unsigned char TCA = 9;
|
constexpr unsigned char TCA = 9;
|
||||||
constexpr unsigned char OGA = 10;
|
constexpr unsigned char OGA = 10;
|
||||||
constexpr unsigned char FP = 11;
|
constexpr unsigned char FP = 11;
|
||||||
}
|
|
||||||
|
} // namespace StreamEncodings
|
||||||
|
|
||||||
inline StreamEncoding encoding_from_string(const std::string& str)
|
inline StreamEncoding encoding_from_string(const std::string& str)
|
||||||
{
|
{
|
||||||
@@ -161,6 +166,7 @@ namespace GnssMetadata
|
|||||||
[9 /*TCA*/] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, -31, -29, -27, -25, -23, -21, -19, -17, -15, -13, -11, -9, -7, -5, -3, -1},
|
[9 /*TCA*/] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, -31, -29, -27, -25, -23, -21, -19, -17, -15, -13, -11, -9, -7, -5, -3, -1},
|
||||||
[10 /*OGA*/] = {-31, -29, -25, -27, -17, -19, -23, -21, -1, -3, -7, -5, -15, -13, -9, -11, 31, 29, 25, 27, 17, 19, 23, 21, 1, 3, 7, 5, 15, 13, 9, 11},
|
[10 /*OGA*/] = {-31, -29, -25, -27, -17, -19, -23, -21, -1, -3, -7, -5, -15, -13, -9, -11, 31, 29, 25, 27, 17, 19, 23, 21, 1, 3, 7, 5, 15, 13, 9, 11},
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
} // namespace GnssMetadata
|
||||||
|
|
||||||
#endif // ION_GSM_STREAM_ENCODINGS_H
|
#endif // ION_GSM_STREAM_ENCODINGS_H
|
||||||
|
|||||||
Reference in New Issue
Block a user