mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 15:41:35 +08:00
Add support for simulators running on a different host than the PX4 instance
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user