2013-11-09 22:03:42 +00:00
|
|
|
/*!
|
|
|
|
* \file sbas_l1_telemetry_decoder.h
|
2013-11-10 18:52:29 +00:00
|
|
|
* \brief Interface of an adapter of a SBAS telemetry data decoder block
|
2013-11-09 22:03:42 +00:00
|
|
|
* to a TelemetryDecoderInterface
|
|
|
|
* \author Daniel Fehr 2013. daniel.co(at)bluewin.ch
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2018-05-13 20:49:11 +00:00
|
|
|
* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
|
2013-11-09 22:03:42 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2013-11-09 22:03:42 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2013-11-09 22:03:42 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_H_
|
|
|
|
#define GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_H_
|
|
|
|
|
2018-02-26 02:15:53 +00:00
|
|
|
|
2019-03-02 01:21:03 +00:00
|
|
|
#include "sbas_l1_telemetry_decoder_gs.h"
|
2018-12-09 21:00:09 +00:00
|
|
|
#include "telemetry_decoder_interface.h"
|
2018-02-26 02:15:53 +00:00
|
|
|
#include <string>
|
2013-11-09 22:03:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ConfigurationInterface;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief This class implements a NAV data decoder for SBAS frames in L1 radio link
|
|
|
|
*/
|
|
|
|
class SbasL1TelemetryDecoder : public TelemetryDecoderInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SbasL1TelemetryDecoder(ConfigurationInterface* configuration,
|
2018-12-03 18:01:47 +00:00
|
|
|
const std::string& role,
|
2018-03-03 01:03:39 +00:00
|
|
|
unsigned int in_streams,
|
|
|
|
unsigned int out_streams);
|
2013-11-09 22:03:42 +00:00
|
|
|
|
|
|
|
virtual ~SbasL1TelemetryDecoder();
|
2017-08-15 22:58:10 +00:00
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline std::string role() override
|
2013-11-09 22:03:42 +00:00
|
|
|
{
|
|
|
|
return role_;
|
|
|
|
}
|
|
|
|
|
2013-11-10 18:52:29 +00:00
|
|
|
/*!
|
|
|
|
* \brief Returns "SBAS_L1_Telemetry_Decoder"
|
|
|
|
*/
|
2017-08-21 09:45:12 +00:00
|
|
|
inline std::string implementation() override
|
2013-11-09 22:03:42 +00:00
|
|
|
{
|
|
|
|
return "SBAS_L1_Telemetry_Decoder";
|
|
|
|
}
|
2017-08-15 22:58:10 +00:00
|
|
|
|
|
|
|
void connect(gr::top_block_sptr top_block) override;
|
|
|
|
void disconnect(gr::top_block_sptr top_block) override;
|
|
|
|
gr::basic_block_sptr get_left_block() override;
|
|
|
|
gr::basic_block_sptr get_right_block() override;
|
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
void set_satellite(const Gnss_Satellite& satellite) override;
|
2017-08-21 09:45:12 +00:00
|
|
|
inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
|
2017-08-15 22:58:10 +00:00
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline void reset() override
|
2013-11-09 22:03:42 +00:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2017-08-15 22:58:10 +00:00
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline size_t item_size() override
|
2013-11-09 22:03:42 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2019-03-02 01:21:03 +00:00
|
|
|
sbas_l1_telemetry_decoder_gs_sptr telemetry_decoder_;
|
2013-11-09 22:03:42 +00:00
|
|
|
Gnss_Satellite satellite_;
|
|
|
|
int channel_;
|
|
|
|
bool dump_;
|
|
|
|
std::string dump_filename_;
|
|
|
|
std::string role_;
|
|
|
|
unsigned int in_streams_;
|
|
|
|
unsigned int out_streams_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|