I've been successfully using HIL with X-plane and APM Planner Buld 1.0.16, but decided last night to try to get it to run with X-plane supplying all the sensor data and having the DCM strut its stuff.
Alas, no joy was had as the APM Planner always times out when trying to connect.
I'm running APM 2.12 at the moment - slightly behind the times, I know, but...
Is anyone flush with success in this field?
well now that could mean something. since last night i have been fiddling with my APM and the Mission planner since i upgraded mine to 1.0.81 i uploaded the latest program via the Mission planner and i ca not fly auto i can only fly manual and i also noticed that the in simulation menu on MP there is no data update which suggests that data is not being read by APM and when i play around and select flight gear some data starts to show but obviously Xplane is not now talking. I wonder if there is a problem now that you mention it too ???
The newest versions I have run are 184.108.40.206 with X-plane 9.7 and a very recent version of MP.
I have not had any problems. You have to "translate" some of the X-plane UI settings.... make sure you are changing the right network settings, as they moved them around, and there are lots of network "display" and master console and other settings that look the same, but are not...
also, after an x-plane update, be sure to go back through all the settings, they normally get reset. In particular, be sure to re-setup the sensor outputs, because x-plane will clear these settings.
Mike, are you saying you've not had problems running Sensor mode, or is your message in response to avionics?
I can successfully run in ATTITUDE mode, but not SENSOR. I am compiling and loading via the Ardiuno IDE and changing the line in APM_Config.h to
#define HIL_MODE HIL_MODE_SENSORS
When I try to connect the APM with MP terminal, I get the following:
Init ArduPilotMega 2.0
Free RAM: 2835
load_all took 3788us
using 2175 bytes of memory
<startup_IMU_ground> Warming up ADC...
<startup_IMU_ground> Beginning IMU calibration; do not move plane
at which point it hangs, presumably awaiting data from the ADC. I assume it's hanging in the same position when I try to connect in the Simulation pane, although in this case I can't see what's going on and it just times out.
I am running with the Sensor box on the Simulation screen ticked, but there's no documentation to suggest what this actually does...
My apologies, I didn't pay enough attention. I have only used HIL_MODE_ATTUTUDE.
Andrew, what are you aiming for? at the moment sensor level hil just feeds in gyro rate and accel data. not adc level. and does wotk in xplanes and flightgear last time i tested
vs attitude hil which feeds in absolute attitude.
Michael. Thanks for taking the time.
I'm basically wanting to do exactly that - feed the APM with gyro and accel data, rather than outright attitude. I'm missing something though, because I can't get it to configure, at least when I set HIL_MODE manually before compiling and downloading.
When I have the HIL simulation running in attitude mode and then click the Sensor box, I lose all stabliising/FBW control. I have to switch modes to make it recognise this new setting though.
I don't know of any method to find out what APM is actually using
well eventually i got it going !! how ??/ I had to reload the X-plane parameters that i had luckily saved before, so I have a feeling that when I reset everything the parameters some how are not compatible. the sympton being the plane can be controlled manually but on Auto or RTL or basically on IMU the plane gets inverted and crash eventually.
I wonder if the resetting by terminal can make any changes that i didnt have it before, as before didnt do that.
any way now it works in X-plane as before.