1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-04 23:40:04 +00:00

Telecommand status: add DROP state and make map members const

This commit is contained in:
Álvaro Cebrián Juan 2020-09-02 02:18:38 +02:00
parent 585754a665
commit b6b7cc76a3
2 changed files with 18 additions and 17 deletions

View File

@ -35,6 +35,7 @@ using b_io_context = boost::asio::io_context;
using b_io_context = boost::asio::io_service;
#endif
TcpCmdInterface::TcpCmdInterface()
{
register_functions();
@ -44,21 +45,6 @@ TcpCmdInterface::TcpCmdInterface()
rx_longitude_ = 0.0;
rx_altitude_ = 0.0;
receiver_utc_time_ = 0;
map_signal_pretty_name_["1C"] = "L1 C/A";
map_signal_pretty_name_["1B"] = "E1";
map_signal_pretty_name_["1G"] = "L1 C/A";
map_signal_pretty_name_["2S"] = "L2C";
map_signal_pretty_name_["2G"] = "L2 C/A";
map_signal_pretty_name_["5X"] = "E5a";
map_signal_pretty_name_["7X"] = "E5b";
map_signal_pretty_name_["L5"] = "L5";
map_signal_pretty_name_["B1"] = "B1I";
map_signal_pretty_name_["B3"] = "B3I";
map_state_name_[0] = "STBY";
map_state_name_[1] = "ACQ";
map_state_name_[2] = "TRK";
}

View File

@ -74,8 +74,23 @@ private:
std::shared_ptr<PvtInterface> PVT_sptr_;
std::shared_ptr<std::vector<std::shared_ptr<ChannelInterface>>> channels_sptr_;
std::map<std::string, std::string> map_signal_pretty_name_;
std::map<uint32_t, std::string> map_state_name_;
const std::map<std::string, std::string> map_signal_pretty_name_{
{"1C", "L1 C/A"},
{"1B", "E1"},
{"1G", "L1 C/A"},
{"2S", "L2C"},
{"2G", "L2 C/A"},
{"5X", "E5a"},
{"7X", "E5b"},
{"L5", "L5"},
{"B1", "B1I"},
{"B3", "B3I"}};
const std::map<uint32_t, std::string> map_state_name_{
{0, "STBY"},
{1, "ACQ"},
{2, "TRK"},
{3, "DROP"}};
float rx_latitude_;
float rx_longitude_;