Jump to content

Question for coders: capturing airborne/on ground state of the 10C


Recommended Posts

Posted

I know a small number of functions in the A-10C are enabled/disabled or at least in some way affected by whether the jet is on the ground or in the air. This leads me to believe that somewhere in the code a value is indicating the status of the jet: airborne or on the ground.

 

Is it possible to capture this value and have it enable a modifier key when on the ground, and disable this modifier when airborne?

i7 4790K: 4.8GHz, 1.328V (manual)

MSI GTX 970: 1,504MHz core, 1.250V, 8GHz memory

Posted (edited)
I know a small number of functions in the A-10C are enabled/disabled or at least in some way affected by whether the jet is on the ground or in the air. This leads me to believe that somewhere in the code a value is indicating the status of the jet: airborne or on the ground.

 

Is it possible to capture this value and have it enable a modifier key when on the ground, and disable this modifier when airborne?

 

I think the jet considers such things as "is my gear down?" and "is the radar altimeter reading zero?" when attempting to determine whether it in on the ground. Quite possibly reading pressure on the landing gear too.

 

Most of these things can be read from the sim via export.lua. However, enabling a modifier in real-time would involve some rather invasive and difficult meddling with the sim's Lua system. Probably more effort than it's worth. Not impossible, but does the work outweigh the benefit?

 

Edit: For what it's worth, I took a long hard look at the input system while developing uMFCD. I decided to leave it well alone.

Edited by Sgt_Baker

UltraMFCD 3.0 in the works.

 

https://ultramfcd.com

  • 2 weeks later...
Posted (edited)

I am trying to create a functionality that is sometimes seen in others sims. When the AC is on the ground I would like the stick's X-axis to control the rudder(s) and NWS. As soon as one or all wheels are off the ground I want to have the rudder(s)/NWS centered and the control input from the stick's X-axis should control ailerons. All of it in a split second ofcourse.

 

Currently I am doing this by hand using a modifier. X-axis controls ailerons, toggled modifier + X-axis controls rudder(s)/NWS. However, at around 100kts I can stop correcting and the jet remains on the runway centreline whereas at around 120kts I rotate in most cases. The time you have to let the strick go to the centre position and to click the modifier is barely enough to make it in time (that is, before reaching 120kts). Now picture this scenario when doing a formation take-off.

Edited by JayPee

i7 4790K: 4.8GHz, 1.328V (manual)

MSI GTX 970: 1,504MHz core, 1.250V, 8GHz memory

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...