mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 19:50:34 +00:00
Bug fixed in channel.cc
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@149 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
parent
9f3fbeb52d
commit
cdccdac4c6
@ -170,13 +170,12 @@ gr_basic_block_sptr Channel::get_right_block()
|
|||||||
|
|
||||||
void Channel::set_signal(Gnss_Signal gnss_signal)
|
void Channel::set_signal(Gnss_Signal gnss_signal)
|
||||||
{
|
{
|
||||||
Gnss_Satellite gnss_satellite;
|
gnss_signal_=gnss_signal;
|
||||||
gnss_satellite = gnss_signal.get_satellite();
|
gnss_signal_.get_signal().copy(gnss_synchro_.Signal,2,0);
|
||||||
gnss_signal.get_signal().copy(gnss_synchro_.Signal,2,0);
|
gnss_synchro_.PRN=gnss_signal_.get_satellite().get_PRN();
|
||||||
gnss_synchro_.PRN=gnss_signal.get_satellite().get_PRN();
|
gnss_synchro_.System=gnss_signal_.get_satellite().get_system_short().c_str()[0];
|
||||||
gnss_synchro_.System=gnss_signal.get_satellite().get_system_short().c_str()[0];
|
|
||||||
acq_->init();
|
acq_->init();
|
||||||
nav_->set_satellite(gnss_satellite);
|
nav_->set_satellite(gnss_signal_.get_satellite());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user