Hello.
Iam looking for a gauge for FS9/FSX that can tell me the current distance flown, in nm, while in flight.
Hello.
Iam looking for a gauge for FS9/FSX that can tell me the current distance flown, in nm, while in flight.
How do you define 'distance flown'?
-distance from your departure airport
-progress along the flightplan
-distance flown relative to the air (ie not corrected for wind)
-distance flown relative to the ground (ie corrected for wind)
Sorry about not being clear what Iam seeking.
Distance flown meaning simply, speed (ground speed) X time (minutes, hours).
For example, if Iam dead reckoning a 500nm flight, I take off, following a heading corrected for wind, then at say 258nm from take off, I have a waypoint made and I need to change course to avoid a mountain or something, Iam looking for a gauge that can tell me that I am at 258nm from take off. Without using a gps or map.
Hope this clears up some questions. Thanks.
Here is a quicky:
It will show the distance flown in nm and if you click on it the distance will be reset to 0.Code:<Gauge Name="DistanceFlown"> <Size X="100" Y="10"/> <Update Frequency="1"/> <Element> <Select> <Value> (A:GROUND VELOCITY, knots) (P:ABSOLUTE TIME, seconds) (L:PrevTime, seconds) - 3600 / * (>L:DistanceFlown, nm) (L:PrevTime, seconds) 0 == if{ 0 (>L:DistanceFlown, nm) } (P:ABSOLUTE TIME, seconds) (>L:PrevTime, seconds) </Value> </Select> </Element> <Element> <Position X="0" Y="0"/> <Text X="100" Y="10" Bright="No" Length="10" Font="Arial" Color="Red" Adjust="Left" VerticalAdjust="Top"> <String>%((L:DistanceFlown, nm))%!5.1f!</String> </Text> </Element> <Mouse> <Area Left="0" Top="0" Right="100" Bottom="10"> <Cursor Type="Hand" /> <Click> 0 (>L:DistanceFlown, nm) </Click> </Area> </Mouse> </Gauge>
Save this as an .xml file in the fs\gauges folder and add it to your panel.
Thanks a bunch jeroen79.
Hi, jeroen79, I'm trying to find a gauge similar to the above but displaying metres traveled, for figuring out take-off and landing distances.
I tried modifying the above gauge, but can't it to work (didn't work as originally entered above either). Could you take a look please? Bold items are modified items.
<Gauge Name="DistanceFlown">
<Size X="100" Y="10"/>
<Update Frequency="1"/>
<Element>
<Select>
<Value>
(A:GPS GROUND SPEED, Meters per second) (P:LOCAL TIME, seconds) (L:PrevTime, seconds) - 3600 / * (>L:DistanceTravelled, Meters)
(L:PrevTime, seconds) 0 == if{ 0 (>L:DistanceTravelled, Meters) }
(P:LOCAL TIME, seconds) (>L:PrevTime, seconds)
</Value>
</Select>
</Element>
<Element>
<Position X="0" Y="0"/>
<Text X="100" Y="10" Bright="No" Length="10" Font="Arial" Color="Red" Adjust="Left" VerticalAdjust="Top">
<String>%((L:DistanceTravelled, Meters))%!04d!</String>
</Text>
</Element>
<Mouse>
<Area Left="0" Top="0" Right="100" Bottom="10">
<Cursor Type="Hand" />
<Click> 0 (>L:DistanceTravelled, Meters) </Click>
</Area>
</Mouse>
</Gauge>
Thanks.
The problem is in the units specified...
...these are the only valid unit declarations allowed:
meter per second, meters/second, m/s
As for the L:var units, typically one would choose either 'bool', 'boolean', 'number' or 'enum' (although truthfully anything may be used).
Bill Leaming
Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
Flightsim.com Panels & Gauges Forum Moderator
Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
Bookmarks