From cdccdac4c62c457411867f519e8ba3109ad54430 Mon Sep 17 00:00:00 2001 From: Luis Esteve Date: Mon, 30 Jan 2012 14:13:34 +0000 Subject: [PATCH] Bug fixed in channel.cc git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@149 64b25241-fba3-4117-9849-534c7e92360d --- src/algorithms/channel/adapters/channel.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/algorithms/channel/adapters/channel.cc b/src/algorithms/channel/adapters/channel.cc index 038e17561..d828885c4 100644 --- a/src/algorithms/channel/adapters/channel.cc +++ b/src/algorithms/channel/adapters/channel.cc @@ -170,13 +170,12 @@ gr_basic_block_sptr Channel::get_right_block() void Channel::set_signal(Gnss_Signal gnss_signal) { - Gnss_Satellite gnss_satellite; - gnss_satellite = gnss_signal.get_satellite(); - gnss_signal.get_signal().copy(gnss_synchro_.Signal,2,0); - gnss_synchro_.PRN=gnss_signal.get_satellite().get_PRN(); - gnss_synchro_.System=gnss_signal.get_satellite().get_system_short().c_str()[0]; + gnss_signal_=gnss_signal; + gnss_signal_.get_signal().copy(gnss_synchro_.Signal,2,0); + gnss_synchro_.PRN=gnss_signal_.get_satellite().get_PRN(); + gnss_synchro_.System=gnss_signal_.get_satellite().get_system_short().c_str()[0]; acq_->init(); - nav_->set_satellite(gnss_satellite); + nav_->set_satellite(gnss_signal_.get_satellite()); }