1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-10 20:10:05 +00:00

Fixed clang format

This commit is contained in:
Xavier Guerrero-Pau 2024-09-09 15:43:24 +02:00 committed by Carles Fernandez
parent fdc4e4078e
commit c9277539ff
5 changed files with 24 additions and 24 deletions

View File

@ -24,17 +24,17 @@
Monitor_Pvt_Udp_Sink::Monitor_Pvt_Udp_Sink(
const std::vector<std::string>& addresses,
const std::vector<std::string>& ports,
const std::vector<std::string>& ports,
bool protobuf_enabled) : socket{io_context},
use_protobuf(protobuf_enabled)
{
for (const auto& address : addresses)
{
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(address, error), boost::lexical_cast<int> (port));
endpoints.push_back(endpoint);
}
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(address, error), boost::lexical_cast<int>(port));
endpoints.push_back(endpoint);
}
}
if (use_protobuf)

View File

@ -41,8 +41,8 @@ class Monitor_Pvt_Udp_Sink
{
public:
Monitor_Pvt_Udp_Sink(
const std::vector<std::string>& addresses,
const std::vector<std::string>& ports,
const std::vector<std::string>& addresses,
const std::vector<std::string>& ports,
bool protobuf_enabled);
bool write_monitor_pvt(const Monitor_Pvt* const monitor_pvt);

View File

@ -43,11 +43,11 @@ gnss_synchro_monitor::gnss_synchro_monitor(int n_channels,
const std::vector<std::string>& udp_addresses,
bool enable_protobuf)
: gr::block("gnss_synchro_monitor",
gr::io_signature::make(n_channels, n_channels, sizeof(Gnss_Synchro)),
gr::io_signature::make(0, 0, 0)),
count(0),
d_nchannels(n_channels),
d_decimation_factor(decimation_factor)
gr::io_signature::make(n_channels, n_channels, sizeof(Gnss_Synchro)),
gr::io_signature::make(0, 0, 0)),
count(0),
d_nchannels(n_channels),
d_decimation_factor(decimation_factor)
{
udp_sink_ptr = std::make_unique<Gnss_Synchro_Udp_Sink>(udp_addresses, udp_ports, enable_protobuf);
}

View File

@ -17,8 +17,8 @@
#include "gnss_synchro_udp_sink.h"
#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/serialization/vector.hpp>
#include <iostream>
#include <sstream>
@ -35,13 +35,13 @@ Gnss_Synchro_Udp_Sink::Gnss_Synchro_Udp_Sink(
}
for (const auto& address : addresses)
{
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(
boost::asio::ip::address::from_string(address, error),
boost::lexical_cast<int> (port));
endpoints.push_back(endpoint);
}
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(
boost::asio::ip::address::from_string(address, error),
boost::lexical_cast<int>(port));
endpoints.push_back(endpoint);
}
}
}

View File

@ -226,7 +226,7 @@ void GNSSFlowgraph::init()
GnssSynchroMonitor_ = gnss_synchro_make_monitor(channels_count_,
configuration_->property("Monitor.decimation_factor", 1),
udp_port_vec,
udp_addr_vec,
udp_addr_vec,
enable_protobuf);
}
@ -255,7 +255,7 @@ void GNSSFlowgraph::init()
GnssSynchroAcquisitionMonitor_ = gnss_synchro_make_monitor(channels_count_,
configuration_->property("AcquisitionMonitor.decimation_factor", 1),
udp_port_vec,
udp_addr_vec,
udp_addr_vec,
enable_protobuf);
}
@ -284,7 +284,7 @@ void GNSSFlowgraph::init()
GnssSynchroTrackingMonitor_ = gnss_synchro_make_monitor(channels_count_,
configuration_->property("TrackingMonitor.decimation_factor", 1),
udp_port_vec,
udp_addr_vec,
udp_addr_vec,
enable_protobuf);
}