- Messages
- 231
- Country

I am trying to write xml code for a 2d analog 24 hour clock. This is for FS2004. I have gotten the hour hand to function for the first 24 hours, but when time kicks over to 0:0:01, the needle rotates counter clock wise to the 0:0:01 position.
I have searched the gauge forum for threads relating to clocks and been unable to find anything that helps. I am a newbie, so it is probably something simple I am missing or don't understand in the threads I have been reading.
Would some one take a look at my code and let me know how badly I have screwed up?
Carl
I have searched the gauge forum for threads relating to clocks and been unable to find anything that helps. I am a newbie, so it is probably something simple I am missing or don't understand in the threads I have been reading.
Would some one take a look at my code and let me know how badly I have screwed up?
Code:
<Gauge Name="f4u1 clock" Version="1.0">
<Image Name="f4u1_clock_background.bmp" ImageSizes="1200,1200,1200,1200"/>
<Element>
<Position X="600" Y="600"/>
<Image Name="f4u1_clock_day_hand.bmp" PointsTo="North"
ImageSizes="80,230,80,230">
<Axis X="40" Y="190"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="31">(P:Local time,day)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action=""/>
</Failures>
<Nonlinearity>
<Item Value="0" X="590" Y="410"/>
<Item Value="31" X="562" Y="413"/>
</Nonlinearity>
<Delay DegreesPerSecond="02"/>
</Rotate>
</Element>
<Element>
<Position X="600" Y="600"/>
<Image Name="f4u1_clock_hour_hand.bmp" PointsTo="North"
ImageSizes="63,340,63,340">
<Axis X="31" Y="313"/>
</Image>
<Rotate>
<Value>(P:Local time,hours)</Value>
<Nonlinearity>
<Item Value="0" X=" 601" Y="410"/>
<Item Value="12" X="600" Y="912"/>
<Item Value="24" X="600" Y="410"/>
</Nonlinearity>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action=""/>
</Failures>
<Delay DegreesPerSecond="24"/>
</Rotate>
</Element>
<Mouse>
<Tooltip ID="TOOLTIPTEXT_CLOCK"/>
</Mouse>
</Gauge>
Carl



