I got it working on my Dell Latitude D830 laptop with Windows 7 Pro 64bit. I'm using X-Plain 9.21rc2, the AruduPilotMega Planner 0.5 by Michael Oborne, ArguPilot Mega with IMU shield and a
Spektrum 8 receiver / transmitter.
I was not sure how all this fit together but I think I understand it now. Here is how I understand it now.
My transmitter is programmed for a simple four servo plain no mixing.
The switches on my IMU, from left to right are UP, UP, UP Down, when you are facing the switch.
This turns off the IMU mixing.
In the ArduPilotMega Planner, I set my comm port and check the Reverse box for Roll, Pitch and
Rudder.
For a time I could had trouble getting all the controls to register. After checking and rechecking my
connections I got it to work find.


Permalink Reply by Mark Grennan on November 24, 2010 at 7:04am
Permalink Reply by Mark Grennan on December 6, 2010 at 10:09am
Permalink Reply by Mark Grennan on December 7, 2010 at 4:10pm
Permalink Reply by Benjamin Pelletier on December 7, 2010 at 4:25pm
Permalink Reply by Mark Grennan on December 8, 2010 at 10:06am
Permalink Reply by Benjamin Pelletier on December 8, 2010 at 12:58pm
Permalink Reply by Mark Grennan on December 8, 2010 at 11:24am
Permalink Reply by Mark Grennan on January 1, 2011 at 11:18pm I've made more progress but I still can't fly a mission.
I was having big issues with X-Plane getting a high frame rate. I recommend you display Frame Rate on the screen so you can keep track of this. (See my settings pic.) The screen rate needs to be higher then the UPD rate feeding X-Plane for good results. I fixed this issue by running X-Plane on a different computer then the Flight Planner / ArdupilotSim. To make this work, I had to program the ArdupilotSim program to connect to X-Plane at a different IP then 127.0.0.1. I added two new text fields for Simulater IP and Port.
This IP and port send the control data to X-Plane (192.168.2.188). I set the IP address and port in X-Plane to send it's data back to the ArdupilotSim program (192.168.2.181 port 49005).
With my connection to X-Plane working. I added these lines to APM_Config.h, compiled and uploaded the code to my APM.
Using APM PLanner 0.4.12 by Michael Obone, I added a few way points and started flying. Here are my waypoints.
#define WP_RADIUS 30 // What is the minimum distance to reach a waypoint?
#define LOITER_RADIUS 45 // How close to Loiter?
#define HOLD_CURRENT_ALT 0 // 1 = hold the current altitude, 0 = use the defined altitude to for RTL
#define ALT_TO_HOLD 600
float mission[][5] = {
{CMD_WAYPOINT,0,600,47.2606358,11.3479005},
{CMD_WAYPOINT,0,600,47.2589175,11.3322793},
{CMD_WAYPOINT,0,600,47.2607378,11.3317323},
{CMD_WAYPOINT,0,600,47.263592,11.3602924},
{CMD_LOITER,0,600,47.2598786,11.3485122},
};
I found my Mode switch has three modes, Manual, FBW-B and Auto. In manual I can fly all day. In FBW-B mode the plane doesn't fly to the next waypoint and I can only control the rutter. In Auto mode I can control everything but the throttle.What am I missing?
Here is my X-Plan settings.

The APM code I'm using is the code is the latest "Release".
Permalink Reply by Mark Grennan on January 2, 2011 at 1:10am Sure. Or I can send my my code. I added the needed code to save these values as well.
You take Diffs?
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.1299 members
24 members
48 members
51 members
111 members
© 2013 Created by Chris Anderson.
Powered by
