Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Design Forums
›
Scenery & Panel Design
› Making a XML gauge
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Making a XML gauge (Read 387 times)
Jul 12
th
, 2007 at 10:07am
captses
Offline
1st Lieutenant
I Fly Sim!
Gender:
Posts: 2
Hi all. I am in the process of removing all my hair at too early an age. I have created the bitmaps for a RADIO HEIGHT gauge and I am having trouble getting the code to work. First I am a newbie at all this gauge stuff so please be kind as bald and bruises do not look good together. First let me include the code I have as of yet.
<Gauge Name="RadAlt" Version="1.0">
<Image Name="RadAltBackground.bmp"/>
<Element>
<Image Name="RadAltOFF.bmp"/>
</Element>
<Element>
<Image Name="RadAltDH.bmp"/>
</Element>
<Element>
<Position X="450" Y="450"/>
<Image Name="RadAltHeightNeedle.bmp">
<Axis X="450" Y="450"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="5000">(A:RADIO HEIGHT, degrees)</Value>
<Nonlinearity>
<Item Value="100" Degrees="80"/>
<Item Value="200" Degrees="124"/>
<Item Value="400" Degrees="165"/>
<Item Value="1000" Degrees="240"/>
<Item Value="5000" Degrees="322"/>
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Image Name="RadAltRim.bmp"/>
</Element>
</Gauge>
The gauge is appearing on the panel how and where I want it. The issue I am having is getting the height needle to represent the correct height. Sitting on the tarmac (433') the gauge reads 85 feet. As I apply collective the needle rotates until it indicates 5000'. The aircraft at this point is only 293' off the ground. What am I doing wrong? Any help would be appreciated.
Back to top
IP Logged
Reply #1 -
Jul 12
th
, 2007 at 5:37pm
Gypsy_Baron
Offline
Colonel
USS Dewey DGL-14 & VX-8
Daly City, California
Gender:
Posts: 467
<Value Minimum="0" Maximum="5000">(A:RADIO HEIGHT, degrees)</Value>
Seems to me this should be "(A:RADIO HEIGHT, feet)"...your units are incorrect.
Paul
Back to top
IP Logged
Reply #2 -
Jul 13
th
, 2007 at 2:48pm
captses
Offline
1st Lieutenant
I Fly Sim!
Gender:
Posts: 2
Roger that. I began using feet and later switched to using degrees as that is what I read in a tutorial. I will go back to feet and give it a go again. Thanks for the help.
Back to top
IP Logged
Pages: 1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design
- Scenery & Panel Design ««
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.