20 #ifndef GNSS_SDR_TCP_CMD_INTERFACE_H 21 #define GNSS_SDR_TCP_CMD_INTERFACE_H 32 #include <unordered_map> 42 void run_cmd_server(
int tcp_port);
53 std::array<float, 3>
get_LLH()
const;
55 void set_pvt(std::shared_ptr<PvtInterface> PVT_sptr);
58 std::unordered_map<std::string, std::function<std::string(const std::vector<std::string> &)>>
60 std::string status(
const std::vector<std::string> &commandLine);
61 std::string reset(
const std::vector<std::string> &commandLine);
62 std::string standby(
const std::vector<std::string> &commandLine);
63 std::string hotstart(
const std::vector<std::string> &commandLine);
64 std::string warmstart(
const std::vector<std::string> &commandLine);
65 std::string coldstart(
const std::vector<std::string> &commandLine);
66 std::string set_ch_satellite(
const std::vector<std::string> &commandLine);
68 void register_functions();
70 std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> control_queue_;
71 std::shared_ptr<PvtInterface> PVT_sptr_;
77 time_t receiver_utc_time_;
82 #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