mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-30 10:54:50 +00:00
Warn the user about the change in parameter name
This commit is contained in:
parent
dc18980194
commit
3f557eeb41
@ -28,16 +28,11 @@
|
|||||||
*
|
*
|
||||||
* -------------------------------------------------------------------------
|
* -------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
//#include <memory>
|
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
//#include "channel_interface.h"
|
|
||||||
//#include "acquisition_interface.h"
|
|
||||||
//#include "tracking_interface.h"
|
|
||||||
//#include "telemetry_decoder_interface.h"
|
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
//#include "channel_msg_receiver_cc.h"
|
|
||||||
|
|
||||||
using google::LogMessage;
|
using google::LogMessage;
|
||||||
|
|
||||||
@ -65,6 +60,17 @@ Channel::Channel(ConfigurationInterface *configuration, unsigned int channel,
|
|||||||
acq_->set_gnss_synchro(&gnss_synchro_);
|
acq_->set_gnss_synchro(&gnss_synchro_);
|
||||||
trk_->set_gnss_synchro(&gnss_synchro_);
|
trk_->set_gnss_synchro(&gnss_synchro_);
|
||||||
|
|
||||||
|
// Provide a warning to the user about the change of parameter name
|
||||||
|
if(channel_ == 0)
|
||||||
|
{
|
||||||
|
long int deprecation_warning = configuration->property("GNSS-SDR.internal_fs_hz", 0);
|
||||||
|
if(deprecation_warning != 0)
|
||||||
|
{
|
||||||
|
std::cout << "WARNING: The global parameter name GNSS-SDR.internal_fs_hz has been DEPRECATED." << std::endl;
|
||||||
|
std::cout << "WARNING: Please replace it by GNSS-SDR.internal_fs_sps in your configuration file." << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// IMPORTANT: Do not change the order between set_doppler_step and set_threshold
|
// IMPORTANT: Do not change the order between set_doppler_step and set_threshold
|
||||||
|
|
||||||
unsigned int doppler_step = configuration->property("Acquisition_" + implementation_ + boost::lexical_cast<std::string>(channel_) + ".doppler_step" ,0);
|
unsigned int doppler_step = configuration->property("Acquisition_" + implementation_ + boost::lexical_cast<std::string>(channel_) + ".doppler_step" ,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user