- Messages
- 5
- Country

Dear FS Developers:
I am designing and coding my own gauges for the Lear 45 cockpit. Frankly, I cannot afford the Jet45 cost although they are extremely fine instruments.
I am somewhat sophisticated in creating images and gauges and using FSUIPC to drive aircraft and FSX environmental data. I use Desktop Aviator’s circuit boards to communicate hardware with FSUIPC (www.desktopaviator.com) which work very well and are less expensive than other circuits. I am building a Lear 45 cockpit.
However, I am at a loss with using ESP’s Gauge DSK and Nick Pike’s Gauge Programming when it comes to dealing with the <MaskImage> XML Object. I hope someone at Hangar 45 can help. Is there a clear formula to align a tape bit map, the mask image and the shift expressions? I cannot find any on the internet. Mr. Pike’s explanation deals with a single gauge with one mask and one bit map. I have several.
The altitude tape works fine through trial and error. I cannot get the airspeed tape to align. The mask image, by itself lines up perfectly. The bit map will line up with the mask image. But I cannot get the zero position to align with the background. I have an image of what I mean. If I fiddle with the float positions, axes or nonlinearity entries, I can get two out of the three to align.
Can anyone help or at least point to significant documentation?
Thanks,
Dave Simmons
Sugar Land, Texas
<!-- Airspeed Tape-->
<Element id="Airspeed Tape">
<FloatPosition>40.000,87.000</FloatPosition>
<Image id="pfd_speed_tape_normal.bmp"
Name="pfd_speed_tape_normal.bmp">
<Transparent>True</Transparent>
<Axis>0.000,-25.000</Axis>
<Bright>True</Bright>
</Image>
<MaskImage id="pfd_airspeed_tape_mask.bmp"
Name="pfd_airspeed_tape_mask.bmp">
<Transparent>True</Transparent>
</MaskImage>
<Shift id="Shift">
<Scale>0.000,-1.000</Scale>
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1000.000</Maximum>
<Script>(A:Airspeed select indicated or true, knots)</Script>
</Expression>
<FailureTable id="FailureTable">
<Failure id="Failure">
<Fail_Key>SYSTEM_ELECTRICAL_PANELS</Fail_Key>
<Fail_Action>Zero</Fail_Action>
</Failure>
</FailureTable>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>1000.000</ExpressionResult>
<FloatPosition>0.000,24.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>0.000</ExpressionResult>
<FloatPosition>0.000,2423.000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Shift>
</Element>
I am designing and coding my own gauges for the Lear 45 cockpit. Frankly, I cannot afford the Jet45 cost although they are extremely fine instruments.
I am somewhat sophisticated in creating images and gauges and using FSUIPC to drive aircraft and FSX environmental data. I use Desktop Aviator’s circuit boards to communicate hardware with FSUIPC (www.desktopaviator.com) which work very well and are less expensive than other circuits. I am building a Lear 45 cockpit.
However, I am at a loss with using ESP’s Gauge DSK and Nick Pike’s Gauge Programming when it comes to dealing with the <MaskImage> XML Object. I hope someone at Hangar 45 can help. Is there a clear formula to align a tape bit map, the mask image and the shift expressions? I cannot find any on the internet. Mr. Pike’s explanation deals with a single gauge with one mask and one bit map. I have several.
The altitude tape works fine through trial and error. I cannot get the airspeed tape to align. The mask image, by itself lines up perfectly. The bit map will line up with the mask image. But I cannot get the zero position to align with the background. I have an image of what I mean. If I fiddle with the float positions, axes or nonlinearity entries, I can get two out of the three to align.
Can anyone help or at least point to significant documentation?
Thanks,
Dave Simmons
Sugar Land, Texas
<!-- Airspeed Tape-->
<Element id="Airspeed Tape">
<FloatPosition>40.000,87.000</FloatPosition>
<Image id="pfd_speed_tape_normal.bmp"
Name="pfd_speed_tape_normal.bmp">
<Transparent>True</Transparent>
<Axis>0.000,-25.000</Axis>
<Bright>True</Bright>
</Image>
<MaskImage id="pfd_airspeed_tape_mask.bmp"
Name="pfd_airspeed_tape_mask.bmp">
<Transparent>True</Transparent>
</MaskImage>
<Shift id="Shift">
<Scale>0.000,-1.000</Scale>
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1000.000</Maximum>
<Script>(A:Airspeed select indicated or true, knots)</Script>
</Expression>
<FailureTable id="FailureTable">
<Failure id="Failure">
<Fail_Key>SYSTEM_ELECTRICAL_PANELS</Fail_Key>
<Fail_Action>Zero</Fail_Action>
</Failure>
</FailureTable>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>1000.000</ExpressionResult>
<FloatPosition>0.000,24.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>0.000</ExpressionResult>
<FloatPosition>0.000,2423.000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Shift>
</Element>
