mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-06 04:47:59 +00:00
fix: formatting and linting issues
This commit is contained in:

committed by
Carles Fernandez

parent
13c6785ba1
commit
2649056e17
@@ -128,9 +128,9 @@ void SensorDataAggregator::append_data(const pmt::pmt_t& data_dict)
|
||||
case SensorDataType::F32:
|
||||
if (f32_data_.contains(sensor_id))
|
||||
{
|
||||
f32_data_.at(sensor_id).emplace_back(
|
||||
sample_stamp,
|
||||
pmt::to_float(val));
|
||||
f32_data_.at(sensor_id).push_back(SensorDataSample<float>{
|
||||
.rf_sample_stamp = sample_stamp,
|
||||
.value = pmt::to_float(val)});
|
||||
}
|
||||
break;
|
||||
|
||||
|
@@ -51,6 +51,7 @@ public:
|
||||
bool read_until_sample(std::size_t end_sample, std::size_t& sample_stamp, std::vector<uint8_t>& buffer);
|
||||
|
||||
std::size_t get_chunks_read() const;
|
||||
|
||||
private:
|
||||
bool read_item(std::vector<uint8_t>& buffer);
|
||||
|
||||
|
@@ -18,13 +18,12 @@
|
||||
#ifndef GNSS_SDR_SENSOR_DATA_SOURCE_H
|
||||
#define GNSS_SDR_SENSOR_DATA_SOURCE_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "sensor_data/sensor_data_file.h"
|
||||
#include "sensor_data/sensor_data_source_configuration.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h> // for sync_block
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
#include <cstddef> // for size_t
|
||||
#include <cstdint>
|
||||
|
||||
/** \addtogroup Algorithms_Library
|
||||
* \{ */
|
||||
|
@@ -104,10 +104,10 @@ void SensorDataSourceConfiguration::configure_files(const ConfigurationInterface
|
||||
.id = id,
|
||||
.filename = filename,
|
||||
.repeat = configuration->property(role + ".repeat"s, false),
|
||||
.chunk_size = configuration->property(role + ".chunk_size"s, 0UL),
|
||||
.file_offset = configuration->property(role + ".file_offset"s, 0UL),
|
||||
.sample_offset = configuration->property(role + ".sample_offset"s, 0UL),
|
||||
.sample_period = configuration->property(role + ".sample_period"s, 0UL)});
|
||||
.chunk_size = configuration->property(role + ".chunk_size"s, uint64_t{0UL}),
|
||||
.file_offset = configuration->property(role + ".file_offset"s, uint64_t{0UL}),
|
||||
.sample_offset = configuration->property(role + ".sample_offset"s, uint64_t{0UL}),
|
||||
.sample_period = configuration->property(role + ".sample_period"s, uint64_t{0UL})});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ void SensorDataSourceConfiguration::configure_sensors(const ConfigurationInterfa
|
||||
}
|
||||
else
|
||||
{
|
||||
offset = configuration->property(role + ".offset"s, 0UL);
|
||||
offset = configuration->property(role + ".offset"s, uint64_t{0UL});
|
||||
}
|
||||
|
||||
// Configure file_id, default to previous sensor file_id
|
||||
@@ -156,7 +156,7 @@ void SensorDataSourceConfiguration::configure_sensors(const ConfigurationInterfa
|
||||
}
|
||||
else
|
||||
{
|
||||
file_id = configuration->property(role + ".file"s, 0UL);
|
||||
file_id = configuration->property(role + ".file"s, uint64_t{0UL});
|
||||
}
|
||||
|
||||
if (sensor_identifier != "UNDEFINED")
|
||||
|
@@ -31,7 +31,7 @@ struct SensorDataType
|
||||
SensorDataType() = delete;
|
||||
enum value_type
|
||||
{
|
||||
UINT64, // Used internally for SAMPLE_STAMP and CHUNK_COUNT
|
||||
UINT64, // Used internally for SAMPLE_STAMP and CHUNK_COUNT
|
||||
F32,
|
||||
F64,
|
||||
I32,
|
||||
|
@@ -80,7 +80,7 @@ private:
|
||||
|
||||
void set_tag_timestamp_in_sdr_timeframe(const std::vector<Gnss_Synchro>& data, uint64_t rx_clock);
|
||||
|
||||
void propagate_sensor_data(const std::vector<Gnss_Synchro> &data);
|
||||
void propagate_sensor_data(const std::vector<Gnss_Synchro>& data);
|
||||
|
||||
int32_t save_matfile() const;
|
||||
|
||||
|
@@ -2105,7 +2105,7 @@ int dll_pll_veml_tracking::general_work(int noutput_items __attribute__((unused)
|
||||
{
|
||||
add_item_tag(0, this->nitems_written(0) + 1, tag.key, tag.value);
|
||||
}
|
||||
|
||||
|
||||
*out[0] = std::move(current_synchro_data);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user