X-Plane Setup

New here; I was trying to get hook up autopilot with xplane to test pids but haven't been able to do so. I have gone through the manual multiple times and followed it step by step. My problem is that, I can see the input of throttle, pitch, yaw or roll on the ardupilotsim but the response is slow.   it takes over 40 seconds for the input to show up.  it does the same on xplane as well.  if i give throttle now, it will start the throttle 40 seconds or so later.   also i do not see any "demo servos" message when it opens the port. i have the following on my apm_config.h file:

 

#define ENABLE_HIL ENABLED

#define GCS_PROTOCOL GCS_PROTOCOL_XPLANE

#define GCS_PORT 0#define GPS_PROTOCOL GPS_PROTOCOL_IMU

#define AIRSPEED_CRUISE 25 // or whatever works best for your Xplane selection

#define AIRSPEED_SENSOR ENABLED


#define SERIAL3_BAUD        115200//#define GCS_PROTOCOL        GCS_PROTOCOL_NONE


#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

 

ANY IDEAS?

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

Join diydrones

Email me when people reply –

Replies

  • I've had this problem. Reset factory defaults on apm, power cycle and reboot everything. That fixed the problem.
This reply was deleted.

Activity