Beta Windows version of Xplane/Flight gear interface for ArduPilot APM

Michael Oborne has released a Windows GUI version of his great program to interface ArduPilot/APM with Xplane and FlightGear.


It's working well for me. Can you check it out and see how it works for you?


Instructions for setting up ArduPilot and sims are here.

Views: 447

Comment by Recmaster on August 10, 2010 at 3:02am
3. Why in simulate mode plane in X-Plane going right by circle and after that going left? As a result plane doing a danger dance on runway at takeoff phase.

Developer
Comment by Michael Oborne on August 10, 2010 at 3:06am
Hi Recmaster,

1. it does do that, in the latest, on form close it check if the com port is still open, and processes accordingly.
2. i asume you are seeing negative and positive WPdist because you are no where near you programmed way points, this is something i can not change as its an integer overflow. To make it not do it change your start sim coords to somewhere close to your wp's.

Thanks
Michael
Comment by Darren on August 10, 2010 at 3:08am
Thanks for the reply Michael, but pre-rudder version? I've tried two so far... do you have links to older?

Developer
Comment by Michael Oborne on August 10, 2010 at 3:38am
Hi Darren,

The quickest fix i can think of is to replace part of GCS_Xplanes.pde with this

void output_Xplane(void)
{
// output real-time sensor data
Serial.print("AAA"); // Message preamble
output_int((int)(servo_out[CH_ROLL]*100)); // 0 bytes 0,1
output_int((int)(servo_out[CH_PITCH]*100)); // 1 bytes 2,3
output_int((int)(servo_out[CH_THROTTLE])); // 2 bytes 4,5
output_int((int)(servo_out[CH_RUDDER]*100)); // 2 bytes 6,7
output_int((int)wp_distance); // 3 bytes 8,9
output_int((int)bearing_error); // 4 bytes 10,11
output_int((int)altitude_error); // 5 bytes 12,13
output_int((int)energy_error); // 6 bytes 14,15
output_byte(wp_index); // 7 bytes 16
output_byte(control_mode); // 8 bytes 17

// print out the buffer and checksum
// ---------------------------------
print_buffer();
}


all you need to do is look for that part and paste over it with the above.

Thanks
Michael

Developer
Comment by Michael Oborne on August 10, 2010 at 4:43am
the underscore version is a human readable version i assume jason was using for debuging.
Comment by Darren on August 10, 2010 at 4:44am
found it, and changed but whats the difference between output_Xplane(void) and output_Xplane_(void) ???
should I modify both sections?
It is now outputing rudder by the way!

Developer
Comment by Michael Oborne on August 10, 2010 at 4:53am
no you only need to do the first one, im sure that file will change in the future anyway.

Developer
Comment by Michael Oborne on August 10, 2010 at 5:32am
Hi Everyone,

New version of my program avaliable, this time with google earth.


get it from here http://vps.oborne.me/ardupilotsim.zip
Comment by Darren on August 10, 2010 at 6:25am
SWEET!
I just completed the candlestick tour! Too cool!!!
Thanks again Michael

Darren
Comment by Antonio on August 10, 2010 at 5:55pm
Hi Michael,
Thanks for all the information you have given here.
I have soldered the 2 extra wires required as per he manual and if i understand your comments then your program doesn;t read the rudder channel yet is this correct.
Is your code replacement above a work around for this, i notice it modifies the output string to your software, will your program still recognise this new string???
Would you be able to provide me with a proven simple set of waypoints and advise what i change the location in xplanes to to see this work.
Many Thanks,
Tony

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service