• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v5 Canopy Animation

Messages
152
Country
france
Hello all,
I have written this xml code to animate a jet fighter canopy :
<Code>
(A:SIM ON GROUND,bool)
(A:LIGHT NAV,bool) and
(A:GENERAL ENG RPM:1,degrees per second) 0 != and
if{ 100 } els{ 0 }
</Code>
<Lag>100</Lag>

The idea here is to have the canopy opening couple minutes before the push back (the Light Nav condition) and have it closing right after the push back when the engine starts running (the Gen Eng RPM condition).
This code does not work for a reason I do not understand: the canopy opens OK when the Nav Lights are on but instead of closing at the engine start remains open up until the aircraft takes off.

The above makes me believe that the third condition is simply ignored. I tried several variables including the Light Beacon one and other engine related variables without success. It seems that this third condition is always ignored regardless the one I am using.

Any thoughts would be appreciated . Thanks
 
Messages
1,856
Country
us-ohio
Engine RPM is typically expressed in percent for turbines... and I don't ever recall seeing it expressed as degrees per second. I'm uncertain if the sim would even return a good value for that at all.
 

Roy Holmes

Resource contributor
Messages
1,717
Country
us-virginia
Jet fighters do not get pushed back after start. The reason for a push back is that the nose is forward and almost against the airport building to let passengers embark and so the airplane needs assistance in getting to a position where it can taxi. Normally fighters are parked so they can start, move forward and taxi out.
As Warp D said RPM is in percent or RPM not degrees per second and it should be N1 or N2 for jet fighters if the sim jet engine performance is to work properly. If as you said the third condition is not working it is because the variable is incorrect. You need A:TURB ENG N1:index, percent.
Roy
 
Messages
440
Country
us-wisconsin
The logic seems wrong too, the engine rpm logic should be equal to zero, or less than ignition rpm, not "not equal" to zero.

<Code>
(A:SIM ON GROUND,bool)
(A:LIGHT NAV,bool) and
(A:GENERAL ENG RPM:1, percent) 1 &lt; and
if{ 100 } els{ 0 }
</Code>
<Lag>100</Lag>

Also instead of using RPM you could also use : (A:ENG COMBUSTION:1, bool) !
This will give the the actual status of the engine, is it running or not, rather than RPM.
 
Messages
152
Country
france
thanks to both of you for the guidance here ... I will test both variables and see how I can make this animation work properly
 
Top