MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

SITL and XPlane simulation

Open thesamwise opened this issue 11 years ago • 18 comments

The XPlane simulation works with HIL, however when I try to connect using the "SITL" checkbox, mission planner doesn't connect to the SITL. I've checked all the ports and IP addresses and I can connect to the SITL with MAVProxy and QGroundControl. I can even connect to the SITL with the "Connect" button and selection of "TCP" in Mission Planner, however this doesn't send the data from XPlane back to the SITL.

thesamwise avatar Apr 07 '15 17:04 thesamwise

did you check the advanced settings?

meee1 avatar Apr 07 '15 23:04 meee1

Yep. The problem seems to be that the SITL uses two UDP ports where MissionPlanner uses a single TCP port

thesamwise avatar Apr 08 '15 19:04 thesamwise

I'm seeing the same issue.

kjeremy avatar Oct 02 '15 15:10 kjeremy

Is there any solution found for that ? I am facing the same problem please

ayoubzar avatar Aug 09 '16 09:08 ayoubzar

Try udp

magicrub avatar Aug 09 '16 10:08 magicrub

Is there is any requirement for the direction of software (Xplane and MP should be in the same direction ?) because i tried UDP and TCP as well ,always MP said heartbeat packet missed any tips will be very appreciate it I spent like two weeks trying to figure it out without any result

ayoubzar avatar Aug 09 '16 10:08 ayoubzar

Do you have the normal SITL sim working?

On Aug 9, 2016 3:48 AM, "ayoubzar" [email protected] wrote:

Is there is any requirement for the direction of software (Xplane and MP should be in the same direction ?) because i tried UDP and TCP as well ,always MP said heartbeat packet missed any tips will be very appreciate it I spent like two weeks trying to figure it out without any result

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ArduPilot/MissionPlanner/issues/835#issuecomment-238518484, or mute the thread https://github.com/notifications/unsubscribe-auth/AEj7G2wS5HR18d10H_Czt1CwFpSUWhCLks5qeFsGgaJpZM4D7yBR .

magicrub avatar Aug 09 '16 14:08 magicrub

Yes it is working normally but when i want to contact it with mission planner a message pops up said heartbeat packet missed . all the ports are good ,IP as well ,more than that sometimes it works but most the time is not what will the problem in this case Sir please

ayoubzar avatar Aug 09 '16 19:08 ayoubzar

Sir is this software need any extra codes for the communication or all includes in them ? what is the relation of Mavlink with SITL ? as far as I understand heartbeat packet send by Mavlink verifies is the APM connected or not but we talking about SITL here there is no Hardware . why this message pops up ? please any help I am like loser now

ayoubzar avatar Aug 10 '16 12:08 ayoubzar

I am facing the same issue. As I would like to use the SITL with x-plane but mission planner will not connect with the Arduplane.exe via TCP when I have chosen x-plane as a simulation platform. I think the issue is with in the arduplane code.

Abdullah1990 avatar Nov 16 '16 07:11 Abdullah1990

are you using the latest version of mission planner? have you allowed missionplanner, SITL and Xplanes through the firewall?

meee1 avatar Nov 16 '16 09:11 meee1

Yes I am using the latest mission planner 1.3.41. And I did disable the windows firewall entirely. But i think the STIL is not sending any messages on tcp port 5760

Abdullah1990 avatar Nov 16 '16 10:11 Abdullah1990

I also use win10 and try wiki‘s three ways:Using SITL from MissionPlanne;Using SITL with your own GCS;Using SITL with sim_vehicle.py None of them worked...no matter use Mavproxy or MP,they can't get TCP or UDP messages...

nocternal avatar Dec 09 '16 13:12 nocternal

Same as @nocternal I've tried every way described in documentation, none works.

t4r4n15 avatar Jan 19 '17 02:01 t4r4n15

3years later, and I have the same problem. Any updates?

mojtabacazi avatar Apr 10 '18 07:04 mojtabacazi

No... I finally use Flightgear instead of XPlane to have visualization of SITL. At least Flightgear works

nocternal avatar Apr 10 '18 07:04 nocternal

@nocternal enabled xplane data outputs and it started working. http://ardupilot.org/dev/_images/mavlinkhil1.jpg

mojtabacazi avatar Apr 10 '18 07:04 mojtabacazi

@mojtabacazi wow,I'll have a try , thanks

nocternal avatar Apr 10 '18 07:04 nocternal