Hi, I've downloaded this gauge which is supposed to simulate a davtron M3 clock/timer and I can't get the flight timer to work. The elapsed time works.
<Gauge Name="Davtron 803" Version="1.0">
<Image Name="M803.bmp" Luminous="Yes"/>
<Element>
<Position X="48" Y="93" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Image Name="DD.bmp" Bright="Yes" />
<Element>
<Position X="40" Y="-2" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Text X="225" Y="87" Length="7" Font="arial" Color="#0D0E0C" Bold="Yes" Italic="Yes" >
<String>%((G:Var9) 1 == )%{if}T %((A:Ambient Temperature, celsius) 1.8 * 32 + )%!2d!°F
%{else}%((G:Var9) 2 == )%{if}T %((A:Ambient Temperature, celsius))%!2d!°C
%{else}%((A:Electrical main bus voltage, volts))%!3.1f! V%{end}</String>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Text>
</Element>
<Element>
<Position X="93" Y="74" />
<Text X="300" Y="90" Length="6" Font="arial" Color="#0D0E0C" >
<String>%((G:Var1) 0 == )%{if}%((P:Local time,hours) flr 24 % )%!02d!:%((P:Zulu time,minutes) flr 60 %)%!02d!
%{else}%((G:Var1) 3 == )%{if}%((P:Zulu time,hours) flr 24 % )%!02d!:%((P:Zulu time,minutes) flr 60 %)%!02d!
%{else}%((G:Var1) 1 == )%{if}%(
(G:Var7) 0 < if{ (G:Var7) 24 + (>G:Var7) }
(G:Var8) 0 < if{ (G:Var8) 60 + (>G:Var8) }
(G:Var7))%!02d!:%((G:Var8))%!02d!
%{else}%( (P:Absolute time,seconds) (>G:Var6)
(G:Var2) 0 == if{ (G:Var6) (>G:Var4) (G:Var6) (>G:Var5) }
(G:Var2) 1 == if{ (G:Var6) (>G:Var5) }
(G:Var2) 2 == if{ }
(G:Var5) (G:Var4) - 3600 < )%{if}%((G:Var5) (G:Var4) - 60 / flr 60 % )%!02d!:%( (G:Var5) (G:Var4) - flr 60 % )%!02d!%{else}%((G:Var5) (G:Var4) - 3600 / flr int)%!02d!:%((G:Var5) (G:Var4) - 60 / flr 60 % )%!02d!%{end}
%{end </String>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Text>
</Element>
<Element>
<Position X="0" Y="0" />
<Visible>(G:Var1) 1 != (G:Var7) 60 * (G:Var8) + 0 > && </Visible>
<Select>
<Value>(P:Zulu time,hours) 60 * (G:Var7) 60 * (G:Var8) + > if{ (P:Absolute time,seconds) 1 % } </Value>
<Case Value="1">
<Image Name="DZ.bmp" Bright="Yes" />
</Case>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Select>
</Element>
<Element>
<Position X="0" Y="73" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Select>
<Value>(G:Var1, enum)</Value>
<Case Value="0">
<Image Name="DL.bmp" Bright="Yes" />
</Case>
<Case Value="1">
<Image Name="DF.bmp" Bright="Yes" />
</Case>
<Case Value="2">
<Image Name="DE.bmp" Bright="Yes" />
</Case>
<Case Value="3">
<Image Name="DU.bmp" Bright="Yes" />
</Case>
</Select>
</Element>
</Element>
<Mouse>
<Area Left="168" Top ="18" Right="208" Bottom="58" >
<Tooltip ID="">OAT - V</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var9) 1 + 3 % (>G:Var9)</Click>
</Area>
<Area Left="100" Top ="293" Right="150" Bottom="346" >
<Tooltip ID="">Select</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var1) 1 + 4 % (>G:Var1)</Click>
</Area>
<Area Left="225" Top ="293" Right="275" Bottom="346" >
<Tooltip ID="">Control</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var1) 1 == if{ 0 (>G:Var7) 0 (>G:Var8) } (G:Var1) 2 == if{ (G:Var2) 1 + 3 % (>G:Var2) } </Click>
</Area>
<Area Left="134" Top ="180" Right="178" Bottom="240" >
<Cursor Type="DownArrow" />
<Click>(G:Var1) 1 == if{ (G:Var7) 1 - 24 % (>G:Var7) } </Click>
</Area>
<Area Left="178" Top ="180" Right="219" Bottom="240" >
<Cursor Type="UpArrow" />
<Click>(G:Var1) 1 == if{ (G:Var7) 1 + 24 % (>G:Var7) } </Click>
</Area>
<Area Left="219" Top ="180" Right="275" Bottom="240" >
<Cursor Type="DownArrow" />
<Click>(G:Var1) 1 == if{ (G:Var8) 1 - 60 % (>G:Var8) } </Click>
</Area>
<Area Left="275" Top ="180" Right="319" Bottom="240" >
<Cursor Type="UpArrow" />
<Click>(G:Var1) 1 == if{ (G:Var8) 1 + 60 % (>G:Var8) } </Click>
</Area>
</Mouse>
</Gauge>
What I was wanting was a timer the would start automatically and I found one that starts when GS gets above 35 knots. I tried to copy and paste the following into this gauge but I couldn't get it to work.
<Value>(E:ZULU TIME, seconds) 60 / (>L:TNOW, minutes)
(A:AIRSPEED INDICATED, knots) 35 < if{ (L:TNOW, minutes) (>L:TONG, minutes) }
(A:AIRSPEED INDICATED, knots) 35 > if{ (L:TNOW, minutes) (L:TTHEN, minutes) - abs 10 > if{ (L:TNOW, minutes) (L:TTHEN, minutes) - (L:TONG, minutes) + (>L:TONG, minutes) } }
(A:AIRSPEED INDICATED, knots) 35 > if{ (L:TNOW, minutes) (L:TONG, minutes) - (>L:TDISP, minutes) }
(L:TNOW, minutes) (>L:TTHEN, minutes)
Does anyone have any ideas what I'm doing wrong?
Mark
<Gauge Name="Davtron 803" Version="1.0">
<Image Name="M803.bmp" Luminous="Yes"/>
<Element>
<Position X="48" Y="93" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Image Name="DD.bmp" Bright="Yes" />
<Element>
<Position X="40" Y="-2" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Text X="225" Y="87" Length="7" Font="arial" Color="#0D0E0C" Bold="Yes" Italic="Yes" >
<String>%((G:Var9) 1 == )%{if}T %((A:Ambient Temperature, celsius) 1.8 * 32 + )%!2d!°F
%{else}%((G:Var9) 2 == )%{if}T %((A:Ambient Temperature, celsius))%!2d!°C
%{else}%((A:Electrical main bus voltage, volts))%!3.1f! V%{end}</String>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Text>
</Element>
<Element>
<Position X="93" Y="74" />
<Text X="300" Y="90" Length="6" Font="arial" Color="#0D0E0C" >
<String>%((G:Var1) 0 == )%{if}%((P:Local time,hours) flr 24 % )%!02d!:%((P:Zulu time,minutes) flr 60 %)%!02d!
%{else}%((G:Var1) 3 == )%{if}%((P:Zulu time,hours) flr 24 % )%!02d!:%((P:Zulu time,minutes) flr 60 %)%!02d!
%{else}%((G:Var1) 1 == )%{if}%(
(G:Var7) 0 < if{ (G:Var7) 24 + (>G:Var7) }
(G:Var8) 0 < if{ (G:Var8) 60 + (>G:Var8) }
(G:Var7))%!02d!:%((G:Var8))%!02d!
%{else}%( (P:Absolute time,seconds) (>G:Var6)
(G:Var2) 0 == if{ (G:Var6) (>G:Var4) (G:Var6) (>G:Var5) }
(G:Var2) 1 == if{ (G:Var6) (>G:Var5) }
(G:Var2) 2 == if{ }
(G:Var5) (G:Var4) - 3600 < )%{if}%((G:Var5) (G:Var4) - 60 / flr 60 % )%!02d!:%( (G:Var5) (G:Var4) - flr 60 % )%!02d!%{else}%((G:Var5) (G:Var4) - 3600 / flr int)%!02d!:%((G:Var5) (G:Var4) - 60 / flr 60 % )%!02d!%{end}
%{end </String>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Text>
</Element>
<Element>
<Position X="0" Y="0" />
<Visible>(G:Var1) 1 != (G:Var7) 60 * (G:Var8) + 0 > && </Visible>
<Select>
<Value>(P:Zulu time,hours) 60 * (G:Var7) 60 * (G:Var8) + > if{ (P:Absolute time,seconds) 1 % } </Value>
<Case Value="1">
<Image Name="DZ.bmp" Bright="Yes" />
</Case>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Select>
</Element>
<Element>
<Position X="0" Y="73" />
<Visible>(A:Circuit General Panel on,bool)</Visible>
<Select>
<Value>(G:Var1, enum)</Value>
<Case Value="0">
<Image Name="DL.bmp" Bright="Yes" />
</Case>
<Case Value="1">
<Image Name="DF.bmp" Bright="Yes" />
</Case>
<Case Value="2">
<Image Name="DE.bmp" Bright="Yes" />
</Case>
<Case Value="3">
<Image Name="DU.bmp" Bright="Yes" />
</Case>
</Select>
</Element>
</Element>
<Mouse>
<Area Left="168" Top ="18" Right="208" Bottom="58" >
<Tooltip ID="">OAT - V</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var9) 1 + 3 % (>G:Var9)</Click>
</Area>
<Area Left="100" Top ="293" Right="150" Bottom="346" >
<Tooltip ID="">Select</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var1) 1 + 4 % (>G:Var1)</Click>
</Area>
<Area Left="225" Top ="293" Right="275" Bottom="346" >
<Tooltip ID="">Control</Tooltip>
<Cursor Type="Hand" />
<Click>(G:Var1) 1 == if{ 0 (>G:Var7) 0 (>G:Var8) } (G:Var1) 2 == if{ (G:Var2) 1 + 3 % (>G:Var2) } </Click>
</Area>
<Area Left="134" Top ="180" Right="178" Bottom="240" >
<Cursor Type="DownArrow" />
<Click>(G:Var1) 1 == if{ (G:Var7) 1 - 24 % (>G:Var7) } </Click>
</Area>
<Area Left="178" Top ="180" Right="219" Bottom="240" >
<Cursor Type="UpArrow" />
<Click>(G:Var1) 1 == if{ (G:Var7) 1 + 24 % (>G:Var7) } </Click>
</Area>
<Area Left="219" Top ="180" Right="275" Bottom="240" >
<Cursor Type="DownArrow" />
<Click>(G:Var1) 1 == if{ (G:Var8) 1 - 60 % (>G:Var8) } </Click>
</Area>
<Area Left="275" Top ="180" Right="319" Bottom="240" >
<Cursor Type="UpArrow" />
<Click>(G:Var1) 1 == if{ (G:Var8) 1 + 60 % (>G:Var8) } </Click>
</Area>
</Mouse>
</Gauge>
What I was wanting was a timer the would start automatically and I found one that starts when GS gets above 35 knots. I tried to copy and paste the following into this gauge but I couldn't get it to work.
<Value>(E:ZULU TIME, seconds) 60 / (>L:TNOW, minutes)
(A:AIRSPEED INDICATED, knots) 35 < if{ (L:TNOW, minutes) (>L:TONG, minutes) }
(A:AIRSPEED INDICATED, knots) 35 > if{ (L:TNOW, minutes) (L:TTHEN, minutes) - abs 10 > if{ (L:TNOW, minutes) (L:TTHEN, minutes) - (L:TONG, minutes) + (>L:TONG, minutes) } }
(A:AIRSPEED INDICATED, knots) 35 > if{ (L:TNOW, minutes) (L:TONG, minutes) - (>L:TDISP, minutes) }
(L:TNOW, minutes) (>L:TTHEN, minutes)
Does anyone have any ideas what I'm doing wrong?
Mark
Last edited:

