- Messages
- 97
- Country
Howdy again,
I have a new little problem to solve involving a oxygen gauge and I have been trying various code but to no avail.
I have a timer that should start when the airplane leaves the ground and stop when the airplane is on the ground. When the time have expired the timer should stop and so should the needle movement (oxygen depleted). I do not want the needle to start over again at 100 like it is doing now. Here is the code without the (A:SIM ON GROUND, bool) code or anything else....just the timer and the needle.
How do I prevent the needle from starting at 0 again?
Any suggestions?
Regards,
John
I have a new little problem to solve involving a oxygen gauge and I have been trying various code but to no avail.
I have a timer that should start when the airplane leaves the ground and stop when the airplane is on the ground. When the time have expired the timer should stop and so should the needle movement (oxygen depleted). I do not want the needle to start over again at 100 like it is doing now. Here is the code without the (A:SIM ON GROUND, bool) code or anything else....just the timer and the needle.
Code:
<Element>
<Position X="0.000" Y="0.000"/>
<Image Name="needle.bmp" PointsTo="North">
<Axis X="0.000" Y="0.000"/>
</Image>
<Shift>
<Value Minimum="0" Maximum="100">(P:Local time,minutes) flr 100 %</Value>
<FailureTable id="FailureTable">
<Failure id="Failure">
<Fail_Key>SYSTEM_ELECTRICAL_PANEL</Fail_Key>
<Fail_Action>Zero</Fail_Action>
</Failure>
</FailureTable>
<Nonlinearity>
<Item Value="100" X="80" Y="662"/>
<Item Value="50" X="214" Y="662"/>
<Item Value="0" X="332" Y="662"/>
</Nonlinearity>
</Shift>
</Element>
How do I prevent the needle from starting at 0 again?
Any suggestions?
Regards,
John