Add support for simulators running on a different host than the PX4 instance

This commit is contained in:
Chris Lovett
2021-03-31 20:56:38 -04:00
committed by GitHub
parent b66ae5f2d4
commit 292a66ce41
4 changed files with 43 additions and 1 deletions
+3
View File
@@ -123,6 +123,7 @@ public:
void set_ip(InternetProtocol ip) { _ip = ip; }
void set_port(unsigned port) { _port = port; }
void set_hostname(std::string hostname) { _hostname = hostname; }
void set_tcp_remote_ipaddr(char *tcp_remote_ipaddr) { _tcp_remote_ipaddr = tcp_remote_ipaddr; }
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
@@ -206,6 +207,8 @@ private:
InternetProtocol _ip{InternetProtocol::UDP};
std::string _hostname{""};
char *_tcp_remote_ipaddr{nullptr};
double _realtime_factor{1.0}; ///< How fast the simulation runs in comparison to real system time