June 17, 20232 yr Hi All, I am interested in disabling the XPlane-11 physics model to test a research flight dynamics model. The procedure I want to do is as follows: 1. Disable XPlane-11 flight engine 2. Read button/switch status's and control (joystick/throttle/peddles etc) positions via UDP. 3. Feed this though research flight model 4. Update Lat,Lon,Alt, Phi,Theta,Psi & peripherals The various pause plug-ins seem to prohibit reading the stick positions, so too does the freeze plugin in https://www.avsim.com/forums/topic/552318-freeze-vs-pause-plugin/ Setting "sim/operation/override/override_flightcontrol" to 1 allows me to read the controls, however does not freeze the state (Lat,Lon,Alt, Phi,Theta,Psi) of the aircraft. Would anyone have any advice on how to approach both freezing the state and allowing sampling of hardware. Thanks in advance, Brendan
June 17, 20232 yr Hi, you want sim/operation/override/override_planepath. It is an array but it seems only the first index is important.
June 17, 20232 yr 2 hours ago, flightwusel said: Hi, you want sim/operation/override/override_planepath. It is an array but it seems only the first index is important. at a guess, the array is likely for the AI aircraft positions ___ all the default datarefs and commands are stored in datarefs.txt and commands.txt in the resources/plugins folder Edited June 17, 20232 yr by mSparks AutoATC Developer
June 18, 20232 yr In any array that considers AI aircraft (i.e. with a length of 20), the user aircraft always has index zero. 7950X3D + 7900 XT + 64 GB + Linux | 4800H + RTX2060 + 32 GB + Linux My add-ons from my FS9/FSX days
June 20, 20232 yr Hi, I am in a similar situation as I want to disable the physics of an aircraft to add my own, override_planepath is great but it disable the command inputs, I tried override_forces but it seems there are still some forces that move the plane. If anyone has any idea, I feel like the solution is a combination of several override.
June 20, 20232 yr 2 hours ago, Wrrn said: but it disable the command inputs it doesn't disable them, it just doesn't apply sim/joystick/joy_mapped_axis_value to its mapped axis, you'll have to plumb that in yourself to. AutoATC Developer
June 21, 20232 yr Thank you very much, I hadn't thought about this dataref , I was using joystick/FC_ptch and others. It works now 🙂
July 15, 20232 yr Author On 6/22/2023 at 2:17 AM, Wrrn said: Thank you very much, I hadn't thought about this dataref , I was using joystick/FC_ptch and others. It works now 🙂 Out of interest which DREFs are you using to update position (x,y,z) and rotation (phi,theta,psi) and do you use XPLMWorldToLocal? Currently experiencing challenges between the different frames of reference. Cheers.
Archived
This topic is now archived and is closed to further replies.