Hi,

I've got an APM2.5 loaded with the Simulation firmware connected with MP1.2.11 on a WinXP laptop. I have XPlane 9.69 running on an iMac on the same network set up according to the guidelines on the wiki page (sim->xplane:49000, xplane->sim:49005).

In Mission Planner, I started the Xplane simulation and loaded the standard parameters from the param file on the google code wiki and calibrated the radio. Then I tried to do a HITL simulation by creating a simple flight plan.

I can see Arudpilot responses (when mode is Manual) ranging from -1.000 to +1.000 for roll pitch and yaw and throttle from 0.000 to 1.000.

However, in XPlane, the PT60 only responds to throttle input and mode changes and has no reaction whatsoever to roll/pitch/yaw. I can increase the throttle and take off but without any rudder, aileron or elevator, its a pretty short flight. While in Auto mode, the control surfaces don't respond either (throttle does seem to adjust itself though).

When I logged the UDP traffic in X-Plane to log.txt, the only inputs (there is a lot of output from X-Plane to MP) I saw looked like this:

We are now receiving UDP data into index #25.
is-int: 0 0 0 0 0 0 0 0
use-data: 1 0 0 0 0 0 0 0
conversion: 1 1 1 1 1 1 1 1. (-998.0=integer)
The converted data is: 0 0 0 0 0 0 0 0. (-999.0=do not apply)
Let this input control X-Plane: 0. (0/1 for yes/no if the data is not -999) Data inputs with an 'x' can control the sim, others do not: .........


We are now receiving UDP data into index #11.
is-int: 0 0 0 0 0 0 0 0
use-data: 1 1 1 0 1 0 0 0
conversion: 1 1 1 1 1 1 1 1. (-998.0=integer)
The converted data is: 0 0 0 -999 0 -999 -999 -999. (-999.0=do not apply)
Let this input control X-Plane: 1. (0/1 for yes/no if the data is not -999) Data inputs with an 'x' can control the sim, others do not: xxxx.....

Index #25 seems to be throttle control which is why that looks like its working. Index #11 looks like its correct (the flight controls) but the data is the same for the 10 or so records which were captured and there doesn't seem to be any response.

Am happy to attach the 6.6Mb log file if anyone wants. Help anyone?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi Prateek,

    I have X-plane 10 on a MacBook Pro and  MP 1.2.14 on a Win7 PC both wifi over my home network. HIL PlaneV2.65 on a APM2.0 connected via the USB cable to PC.

    * My X-plane, Settings, Net Connections, Data, IP for Data Output is 192.168.0.112 (My PC IP Address) 49005

    UDP Ports are default. ie receive 49000, Send 49001

    This page also mention the IP address of the Mac

    * My MP, Simulation, Advance IP Settings are, Sim PC 192.168.0.113 (Mac IP), Sim PC Port 49000, Planner PC Port 49005

    * I have the Show Roll, Pitch,Rudder & Throttle checked at the bottom of the simulation page. These give a good indication with whats going on.

    * I found it helpful to initially set X-plane to Location, Get Me Lost. and as the plane fell from the sky set the mode to Sabilize from MP and then play with the Reverse Roll, Pitch & Rudder check boxes on the Simulation tab until the plane stabilizes.

This reply was deleted.

Activity