Jump to content
Sign in to follow this  
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

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; }


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...