Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Disable X-Plane 11 physics engine but monitor control input

Featured Replies

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

Hi,

you want sim/operation/override/override_planepath. It is an array but it seems only the first index is important.

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 by mSparks

AutoATC Developer

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.

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

Thank you very much, I hadn't thought about this dataref , I was using joystick/FC_ptch and others. It works now 🙂

 

  • 4 weeks later...
  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.