mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Revert "Avoid reassignation of satellites"
This reverts commit 84b2684337
.
This commit is contained in:
parent
d2e0bf973a
commit
1931d2adb6
@ -775,9 +775,23 @@ void GNSSFlowgraph::apply_action(unsigned int who, unsigned int what)
|
|||||||
acq_channels_count_--;
|
acq_channels_count_--;
|
||||||
for (unsigned int i = 0; i < channels_count_; i++)
|
for (unsigned int i = 0; i < channels_count_; i++)
|
||||||
{
|
{
|
||||||
|
unsigned int sat_ = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sat_ = configuration_->property("Channel" + std::to_string(i) + ".satellite", 0);
|
||||||
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
LOG(WARNING) << e.what();
|
||||||
|
}
|
||||||
if (!available_GNSS_signals_.empty() && (acq_channels_count_ < max_acq_channels_) && (channels_state_[i] == 0))
|
if (!available_GNSS_signals_.empty() && (acq_channels_count_ < max_acq_channels_) && (channels_state_[i] == 0))
|
||||||
{
|
{
|
||||||
channels_state_[i] = 1;
|
channels_state_[i] = 1;
|
||||||
|
if (sat_ == 0)
|
||||||
|
{
|
||||||
|
std::lock_guard<std::mutex> lock(signal_list_mutex);
|
||||||
|
channels_[i]->set_signal(search_next_signal(channels_[i]->get_signal().get_signal_str(), true));
|
||||||
|
}
|
||||||
acq_channels_count_++;
|
acq_channels_count_++;
|
||||||
DLOG(INFO) << "Channel " << i << " Starting acquisition " << channels_[i]->get_signal().get_satellite() << ", Signal " << channels_[i]->get_signal().get_signal_str();
|
DLOG(INFO) << "Channel " << i << " Starting acquisition " << channels_[i]->get_signal().get_satellite() << ", Signal " << channels_[i]->get_signal().get_signal_str();
|
||||||
channels_[i]->start_acquisition();
|
channels_[i]->start_acquisition();
|
||||||
|
Loading…
Reference in New Issue
Block a user