-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Ardupilot with airsim: Error while receiving rotor control data #4492
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
Comments
Are you running both on Linux? For using on Windows with Ardupilot on a separate machine or in WSL2 you'll need some settings changes. |
@samuelctabor Thanks, Yes, both are running on Ubuntu 18.04 |
I believe the AirSim binary is waiting for a response from Ardupilot. If you run Ardupilot, it should resume. Usually the execution order is Ardupilot and then AirSim. |
I have recently encountered the same problem. A quick fix is changing the UdpPort and ControlPort
However, when the AirSim is started the quadcopter just increase its vertical speed constantly, so you can not really control it. |
Can you expand on this? I'm using WSL2 Ubuntu-20.04 and I've followed the instructions but I'm seeing the same error message. |
Test environment: same issue Has anyone solved the problem? Thanks |
@WangLouis @Kevinlibaba try this: https://discuss.ardupilot.org/t/gsoc-2019-airsim-simulator-support-for-ardupilot-sitl-part-ii/46395/29?u=crose4 I had this problem for 2 years which kept me from using AirSim with WSL2. Getting the ip address of WSL2 and windows like the post suggests is what solved it for me. Hope it helps! |
@crose72 1.When i use ip address of WSL2 , It is error 2.'VehicleType' back to SimpleFlight", anything went to well. 3.Set the 'VehicleType' in settings to ArduCopter, the error will be occurred. Should AirSim be executed first or WSL2 SITL be executed first? Thank you |
That worked, I got it , thank you so much! “LocalHostIp”: “192.168.0.85”, ← this is IP of your main Windows |
Sorry I didn't get back to you earlier. I'm glad you've got it now! Your settings and process look correct. |
Hi! I have the same problem... I changed the ports but after that the quadcopter started to increase its vertical speed... do you know how can I solve? |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
What's the issue you encountered?
When I run the binary with ArduCopter's setting, an error was occurred as follows:
How can the issue be reproduced?
1.Set the 'VehicleType' in settings to ArduCopter/ArduRover, and run airsim with binary. the error will be occurred.
2.If set the 'VehicleType' back to SimpleFlight", anything went to well.
Include full error message in text form
see log file.
Settings
my setting.json is as follows (from here):
The text was updated successfully, but these errors were encountered: