Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to SITL #40

Closed
DanWilson00 opened this issue Feb 21, 2017 · 2 comments
Closed

Unable to connect to SITL #40

DanWilson00 opened this issue Feb 21, 2017 · 2 comments

Comments

@DanWilson00
Copy link

I have successfully built and run PX4 SITL in Windows 10 Bash and get:
INFO [simulator] Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed..
TCPView confirms that PX4 is connected to localhost and port 14560

I have then done the following:

  • Downloaded/installed UE4
  • Downloaded/built the dependencies
  • Downloaded/built Airsim in VS2015
  • Created a new project, added an environment, copied the Airsim plugin files to the project, enabled the plugin
  • Modified settings.json to not use serial
  • Ran the UE4 project in VS2015 and changed to SimGameMode
  • Pressed play

The simulator doesn't connect to the SITL and UE4 hangs until I stop running the project from VS2015 (see below)

ue4 hang

Am I missing something?

@lukaszebedin
Copy link

Modify LocalHostIp to something different than 127.0.0.1, for example 127.0.0.2, that worked for me. Matching IPs makes it use connectLocalUdp which actually starts a server instead of listening, therefore the bind error if the PX4 firmware is already running

@DanWilson00
Copy link
Author

That worked, thanks sirluzelot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants