18 #ifndef GNSS_SDR_TCP_CMD_INTERFACE_H 19 #define GNSS_SDR_TCP_CMD_INTERFACE_H 30 #include <unordered_map> 46 void run_cmd_server(
int tcp_port);
57 std::array<float, 3>
get_LLH()
const;
59 void set_pvt(std::shared_ptr<PvtInterface> PVT_sptr);
62 std::unordered_map<std::string, std::function<std::string(const std::vector<std::string> &)>>
64 std::string status(
const std::vector<std::string> &commandLine);
65 std::string reset(
const std::vector<std::string> &commandLine);
66 std::string standby(
const std::vector<std::string> &commandLine);
67 std::string hotstart(
const std::vector<std::string> &commandLine);
68 std::string warmstart(
const std::vector<std::string> &commandLine);
69 std::string coldstart(
const std::vector<std::string> &commandLine);
70 std::string set_ch_satellite(
const std::vector<std::string> &commandLine);
72 void register_functions();
74 std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> control_queue_;
75 std::shared_ptr<PvtInterface> PVT_sptr_;
81 time_t receiver_utc_time_;
89 #endif // GNSS_SDR_TCP_CMD_INTERFACE_H
Interface of a thread-safe std::queue.
This class represents an interface to a PVT block.
time_t get_utc_time() const
gets the UTC time parsed from the last TC command issued
std::array< float, 3 > get_LLH() const
gets the Latitude, Longitude and Altitude vector from the last TC command issued