Owne / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

(this is not really an) Enhancement request #273

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Guys,

I'm trying to setup a full hardware-in-the-loop simulation with
Xplane. I'm using the DX5e.

I followed all the instructions you have posted in "How to set up a full 
hardware-in-the-loop simulation with Xplane". I successfully have my RC 
controller controlling the plane in Xplane using the methods described (through 
the APM), and I can toggle through different modes to Stabilize, Auto, RTL, etc.

However how can I insert my own code to work via Xplane using the
method you use? Basically, I want to write my own stabilization code and test 
it out with Xplane through the APM as you guys are doing with your own code. Is 
there a quick and dirty way? 

Any comments and/or solutions would be appreciated at your earliest.

Thanks,
Shawn

Original issue reported on code.google.com by shah.sot...@gmail.com on 18 Jan 2011 at 7:55

GoogleCodeExporter commented 8 years ago
The "quick and dirty" way would be to use the same variable/parameter names 
that are used by the HIL, strip out our stabilization code and insert yours.

Original comment by dewei...@gmail.com on 19 Jan 2011 at 11:22

GoogleCodeExporter commented 8 years ago
Yea I figured, but there are a lot of files that are working together to get 
this thing running. I'm just wondering which functions or commands within those 
many lines of code send out a request through to X-Plane to adjust it's 
pitch,roll,yaw,thrust etc.

Original comment by shah.sot...@gmail.com on 2 Feb 2011 at 1:14