This should be set to true when the plane is on the ground.
Currently, though, XPMP2 does not generically know when a plane is on the ground. This will require a new interface function Aircraft::SetOnGnd() for plugins to inform XPMP2 about a plane being on the ground.
As an additional service, this new function can be coupled with Aircraft::SetTouchDown(), which currently only directly controls the libxplanemp/misc/touch_down animation dataRef, which typically causes CSL objects to emit tire smoke. XPMP2 could offer to automatically control SetTouchDown, like in
Describe the bug XPMP2 does set a number of TCAS target-related dataRefs, but not
This should be set to
true
when the plane is on the ground.Currently, though, XPMP2 does not generically know when a plane is on the ground. This will require a new interface function
Aircraft::SetOnGnd()
for plugins to inform XPMP2 about a plane being on the ground.As an additional service, this new function can be coupled with
Aircraft::SetTouchDown()
, which currently only directly controls thelibxplanemp/misc/touch_down
animation dataRef, which typically causes CSL objects to emit tire smoke. XPMP2 could offer to automatically controlSetTouchDown
, like inwith
fSetTouchDownTime
being an optional parameter denoting for how long thetouch_down
animation dataRaf is set totrue
.Todos
Aircaft::Is/SetOnGround()
sim/cockpit2/tcas/targets/position/weight_on_wheels
TCAS target dataRefSetOnGround()
withSetTouchDown()
To Reproduce / Source Code Example Updating this dataRef is missing in
AIUpdateTCASTargets()
.Expected behavior
sim/cockpit2/tcas/targets/position/weight_on_wheels
should be set totrue
when plane is in the ground.Version
Additional context First reported and locally implemented for xPilot in xpilot-project/xpilot#34.