mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-14 13:54:57 +00:00
Telecommand status: add DROP state and make map members const
This commit is contained in:
parent
585754a665
commit
b6b7cc76a3
@ -35,6 +35,7 @@ using b_io_context = boost::asio::io_context;
|
|||||||
using b_io_context = boost::asio::io_service;
|
using b_io_context = boost::asio::io_service;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
TcpCmdInterface::TcpCmdInterface()
|
TcpCmdInterface::TcpCmdInterface()
|
||||||
{
|
{
|
||||||
register_functions();
|
register_functions();
|
||||||
@ -44,21 +45,6 @@ TcpCmdInterface::TcpCmdInterface()
|
|||||||
rx_longitude_ = 0.0;
|
rx_longitude_ = 0.0;
|
||||||
rx_altitude_ = 0.0;
|
rx_altitude_ = 0.0;
|
||||||
receiver_utc_time_ = 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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,8 +74,23 @@ private:
|
|||||||
std::shared_ptr<PvtInterface> PVT_sptr_;
|
std::shared_ptr<PvtInterface> PVT_sptr_;
|
||||||
std::shared_ptr<std::vector<std::shared_ptr<ChannelInterface>>> channels_sptr_;
|
std::shared_ptr<std::vector<std::shared_ptr<ChannelInterface>>> channels_sptr_;
|
||||||
|
|
||||||
std::map<std::string, std::string> map_signal_pretty_name_;
|
const std::map<std::string, std::string> map_signal_pretty_name_{
|
||||||
std::map<uint32_t, std::string> map_state_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_latitude_;
|
||||||
float rx_longitude_;
|
float rx_longitude_;
|
||||||
|
Loading…
Reference in New Issue
Block a user