Archived

This topic is now archived and is closed to further replies.

geoffco

XML setting for zoom

Recommended Posts

Hi,Is there an XML command to set the zoom level of the forward view to a specifric value? I can only see the following in the FS2004 controls.dll list I have:ZOOM_1XZOOM_INZOOM_IN_FINEZOOM_MINUSZOOM_OUTZOOM_OUT_FINEZOOM_PLUSWhat I would like to do is write a small gauge that changes the zoom as I change altitude:> read altitude and write required zoom value to a variable> If altitude below a certain cutoff and zoom not default, set the default low altitude zoom> If altitude above a certain cutoff and zoom not default, set the default high altitude zoom> If altitude between the cutoff values and zoom not same as stored variable, set zoom to the stored variable...Thanks,Geoff

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code):

if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; }

Share this post


Link to post
Share on other sites
No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code):
if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; }

Hmmm. The problem with that is that if I was levelling off for a time at an intermediate altitude, I might end up with an odd zoom value at the end. I suppose I could have some certain altitudes at which zooming events occured and a "done" variable to tell what had happened - getting pretty complicated now though!Odd that there wasn't a ZOOM_SET variable... (and annoying)Geoff

Share this post


Link to post
Share on other sites