- Messages
- 26
- Country

Hi All
I am trying to implement spark fouling in the a custom behaviour xml.
I have a time that checks what the mixture ratio is and then counts up to between 30 & 60.
Once there I want to implement/simulate the rough running of the engine but i'm having trouble making it realistic. At the moment I am reducing the engine manifold pressure, has anyone else got any ideas how we can implement a rough running engine?
Instead of manifold pressure I think I really want to show changes to rpm and power?
I am trying to implement spark fouling in the a custom behaviour xml.
I have a time that checks what the mixture ratio is and then counts up to between 30 & 60.
Once there I want to implement/simulate the rough running of the engine but i'm having trouble making it realistic. At the moment I am reducing the engine manifold pressure, has anyone else got any ideas how we can implement a rough running engine?
Instead of manifold pressure I think I really want to show changes to rpm and power?
XML:
<Macro Name="MaxPsiDrop"> 6 </Macro>
<Macro Name="PsiScaler"> (L:ELAPSED_TIME) 0.01 * 0.29 - </Macro>
<!-- ### TRIGGER ### -->
<Update Frequency="1">
(L:ELAPSED_TIME) 30 >
if{
1 (>L:Fouling, bool)
} els{
0 (>L:Fouling, bool)
</Update>
<!-- ### FOULING EFFECT, SCALED BY THE TIMING MECHANISM not shown ### -->
<Update Frequency="3">
(L:Fouling, bool) 1 ==
(A:GENERAL ENG RPM:1, rpm) 600 > and
if{
@PsiScaler @MaxPsiDrop >
if{ (A:RECIP ENG MANIFOLD PRESSURE:1, psi) @MaxPsiDrop - (>A:RECIP ENG MANIFOLD PRESSURE:1, psi) }
els{ (A:RECIP ENG MANIFOLD PRESSURE:1, psi) @PsiScaler - (>A:RECIP ENG MANIFOLD PRESSURE:1, psi) }
}
</Update>



I nearly did once, but I was downwind in the circuit and the engine decided to play nice after a couple of heart-stopping seconds.