2020-11-21 18:37:22 +00:00
|
|
|
/*!
|
|
|
|
* \file tlm_conf.cc
|
|
|
|
* \brief Class that contains all the configuration parameters for generic
|
|
|
|
* telemetry decoder block.
|
|
|
|
* \author Carles Fernandez, 2020. cfernandez(at)cttc.es
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2020-11-21 18:37:22 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-11-21 18:37:22 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tlm_conf.h"
|
|
|
|
|
|
|
|
Tlm_Conf::Tlm_Conf()
|
|
|
|
{
|
|
|
|
dump = false;
|
|
|
|
dump_mat = false;
|
2020-12-09 13:44:57 +00:00
|
|
|
remove_dat = false;
|
2021-04-19 11:26:46 +00:00
|
|
|
enable_reed_solomon = false;
|
2020-11-21 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Tlm_Conf::SetFromConfiguration(const ConfigurationInterface *configuration,
|
|
|
|
const std::string &role)
|
|
|
|
{
|
|
|
|
const std::string default_dumpname("telemetry");
|
|
|
|
dump_filename = configuration->property(role + ".dump_filename", default_dumpname);
|
|
|
|
dump = configuration->property(role + ".dump", false);
|
|
|
|
dump_mat = configuration->property(role + ".dump_mat", dump);
|
2020-11-23 15:09:27 +00:00
|
|
|
remove_dat = configuration->property(role + ".remove_dat", false);
|
2020-11-21 18:37:22 +00:00
|
|
|
}
|