APM Planner + Servo Outputs + X-Plane

Hello Everyone,

 

I'm trying to run a simulation using X-Plane to get comfortable with the RC system. I'm unable to get an output graph for the servos in APM Planner, even though the servos are connected through APM and they move when I move the sticks.

I have done the radio setup and mode setup with arduino-ide in CLI. I'm running APM 1.02, I have the APM 1.0 board with the OilPan. I'm using 3 servos, a battery is connected to the RX which powers the servos and a USB connection is present. I've also followed the steps in the manual (http://code.google.com/p/ardupilot-mega/wiki/Xplane) for the settings in X-Plane.

 

1 - My question is what am I missing? I can't get any responses from the TX in X-Plane, nor in the Planner.

 

2 - Is it normal that APM does its sequence of calibration everytime I try to connect and disconnect from ArdupilotSim or read from the EEPROM? I don't remember it doing that before.

 

Here is a copy of my:

 

APM_Config.h

/*
READ THIS.  REALLY!  READ THIS.

First, you MUST uncomment the GPS PROTOCOL line below or the code will not compile.
This is because we need you to tell the code which GPS module you're using, so we can load the right libraries.

Second, there is a lot more you can do with configuration options is you want. See the APM manual for all the available options.
*/

//-------------- REQUIRED ------------------
#define GPS_PROTOCOL GPS_PROTOCOL_MTK16 // You must uncommment this line by removing the slashes ("//")
//in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're
//using one of them instead:

// Other allowed options include:
// GPS_PROTOCOL_NONE        No GPS attached
// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.
// GPS_PROTOCOL_MTK         MediaTek-based GPS.
// GPS_PROTOCOL_MTK16       MediaTek-based GPS with 1.6 firmware
// GPS_PROTOCOL_UBLOX       UBLOX GPS
// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED
//
//
//----------------OPTIONAL-------------------
//
#define GCS_PROTOCOL            GCS_PROTOCOL_LEGACY
//
// The GCS_PROTOCOL option determines which (if any) ground control station
// protocol will be used.  Must be one of:
//
// GCS_PROTOCOL_NONE        No GCS output
// GCS_PROTOCOL_STANDARD    standard APM protocol
// GCS_PROTOCOL_SPECIAL     special test protocol (?)
// GCS_PROTOCOL_LEGACY      legacy ArduPilot protocol
// GCS_PROTOCOL_XPLANE      HIL simulation ground station
// GCS_PROTOCOL_IMU         ArdiPilot IMU output
// GCS_PROTOCOL_JASON       Jason's special secret GCS protocol
//--------------------------------------------------
//
#define GCS_PORT 3
// This determines which port APM will send telemetery on. The USB port is Port 0, for when you're testing on the ground.
//The Xbee port is Port 3, for the field and in the air and you want to send telemetery wirelessly
//
#define SERIAL0_BAUD        115200
#define SERIAL3_BAUD        57600
// These determine the baudrate for the telemetry port.  Default is 115200bps for Port 3.
//
// -------------------------------------------------
//#define AIRSPEED_SENSOR     ENABLED
// Are you using an airspeed sensor? Choose DISABLED if not.


//This section is in charge of software simulation with Flightgear
#define HIL_PROTOCOL        HIL_PROTOCOL_MAVLINK
#define HIL_MODE                 HIL_MODE_ATTITUDE
#define HIL_PORT                  0
#define GCS_PROTOCOL      GCS_PROTOCOL_MAVLINK
//#define GCS_PORT              3

 

APM_Config_xplane.h

#define FLIGHT_MODE_CHANNEL    8
#define FLIGHT_MODE_1        AUTO
#define FLIGHT_MODE_2        RTL
#define FLIGHT_MODE_3         FLY_BY_WIRE_A
#define FLIGHT_MODE_4           FLY_BY_WIRE_B
#define FLIGHT_MODE_5           STABILIZE
#define FLIGHT_MODE_6           MANUAL

//#define GCS_PROTOCOL            GCS_PROTOCOL_DEBUGTERMINAL
#define GCS_PROTOCOL            GCS_PROTOCOL_XPLANE
#define ENABLE_HIL        ENABLED
#define GCS_PORT                0
#define GPS_PROTOCOL          GPS_PROTOCOL_IMU
#define AIRSPEED_CRUISE         25

#define SERIAL0_BAUD        38400

#define THROTTLE_FAILSAFE       ENABLED
#define AIRSPEED_SENSOR        ENABLED

 

Thanks for your help.

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

Join diydrones

Email me when people reply –

Replies

  • This is my new setup

    photo.JPG

  • Developer
    The setting you are using are for 2.0 not apm 1.02. since you have the hardware why not 2.0?
This reply was deleted.

Activity