Jump to content


Photo

Zoom with FSUIPC


  • Please log in to reply
8 replies to this topic

#1 Nicolas L

Nicolas L

    Newbie

  • new Members
  • Pip
  • 3 posts
  • LocationMontpellier, FR

Posted 15 March 2012 - 10:54 AM

Hi,

I got the registered version of FSUIPC and would like to assign an axis of my Satek X52 Pro with a zoom command in FSX. Basically, my axis is a slide horizontal cursor on the throttle. I would like to assign the default zoom (x1) when the cursor is in the right extremity, and a value of my choice when the cursor is in the other extremity, with a linear progression between the 2 values.

Is it possible? Could you help me?

Thank you very much (sorry for my english).

Nico

Posted Image
  • 0

#2 Pete Dowson

Pete Dowson

    Advanced Member

  • Moderators
  • 26,418 posts
  • LocationNear Stoke-on-Trent, UK

Posted 15 March 2012 - 11:56 AM

I got the registered version of FSUIPC and would like to assign an axis of my Satek X52 Pro with a zoom command in FSX. Basically, my axis is a slide horizontal cursor on the throttle. I would like to assign the default zoom (x1) when the cursor is in the right extremity, and a value of my choice when the cursor is in the other extremity, with a linear progression between the 2 values.


I suppose you could do that by assigning to View zoom set and using the axis scaling option in the INI assignment line. You'd need to work the latter out based on the range of inputs from the Axis, whch you will see in the assignments tab. For example, with an axis range of -16384 to +16383 (i.e. a "perfect" input range), I find good Zoom values are obtained by scaling of *0.01 (i.e divide by 100) and +164 (to make the minimum positive). On the axis assignment line in the FSUIPC INI file this looks like:

3=2Z,256,F,65701,0,0,0,*0.01,+163

Your axis might have a different range, and you might want the top Zoom value to be smaller or larger, so obviously you need to adjust the multiplier and adder accordingly.

Regards
Pete
  • 0

#3 Nicolas L

Nicolas L

    Newbie

  • new Members
  • Pip
  • 3 posts
  • LocationMontpellier, FR

Posted 15 March 2012 - 02:29 PM

I could'nt hope such a complete answer, thank you very much!
Will try this tonight and report you the result.

Regards,
Nico
  • 0

#4 Nicolas L

Nicolas L

    Newbie

  • new Members
  • Pip
  • 3 posts
  • LocationMontpellier, FR

Posted 16 March 2012 - 08:29 PM

Works perfectly as this: 6=0S,256,F,65701,0,0,0,*0.01,+163

Thanks!

Nico
  • 0

#5 Paul K

Paul K

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 May 2012 - 03:07 PM

Nico, Peter...thanks for all the information. I'm learning FSUIPC ( version 4.827 ) slowly but surely, and I too wanted to assign zoom view to the thumb slider on the Saitek X52 Pro throttle. Thanks to this thread, I have been able to.

:)

The entry in my fsuipc.ini file is exactly the same as Nico's... 6=0S,256,F,65701,0,0,0,*0.01,+163

Can I edit this to reverse the axis...so I zoom IN when I move the thumb slider to the right, instead of zoom OUT ? Sorry if its a stupid question.

Regards

Paul
  • 0

#6 Pete Dowson

Pete Dowson

    Advanced Member

  • Moderators
  • 26,418 posts
  • LocationNear Stoke-on-Trent, UK

Posted 24 May 2012 - 04:30 PM

Can I edit this to reverse the axis...so I zoom IN when I move the thumb slider to the right, instead of zoom OUT ? Sorry if its a stupid question.


As the manual states:

,*<number> to multiply the axis value by <number>. This can be a fraction, such as 0.5 (to divide by 2), and it can be negative, to reverse the axis direction.


Having made it negative, thought, you'd need to correct the range by adding more, so you'd need something like

*-0.01,+327

I've not tried this. You may need to tune it a little.

Pete
  • 0

#7 Paul K

Paul K

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 May 2012 - 05:09 PM

Hi Peter, thanks very much. I kept it *-0.01,+163, and that seems fine, though I will tweak it a little.

Please accept my apologies - I'm really getting places with the FSUIPC manual and tutorials now, but the reverse axis part obviously eluded me. I'm sure you have better things to do on a Thursday afternoon than repeat what you've already said in the manual, so I apologise again.

Thanks once more for your help and this absorbing FSUIPC you've come with, Peter. The more I learn, the more amazed I am at what it's capable of. No flight simmer should be without it. :smile:
  • 0

#8 georgefitz

georgefitz

    Newbie

  • Members
  • Pip
  • 9 posts
  • Locationusa

Posted 14 January 2013 - 11:52 PM

i have used pete's code for assigning the slider on my saitek 52 for zooming. However, I am getting too much zooming. How would I limit the zoom to say 5x down to 0.25x? Perhaps, someone could explain exactly what each of the aspects or elements of the axis code refers to.
  • 0

#9 Pete Dowson

Pete Dowson

    Advanced Member

  • Moderators
  • 26,418 posts
  • LocationNear Stoke-on-Trent, UK

Posted 15 January 2013 - 12:44 AM

i have used pete's code for assigning the slider on my saitek 52 for zooming. However, I am getting too much zooming. How would I limit the zoom to say 5x down to 0.25x? Perhaps, someone could explain exactly what each of the aspects or elements of the axis code refers to.


What needs explaining? The only relevant part to scaling the input value to get values more suited to what you want are these:

*-0.01,+327

which simply says "multiply by -0.01" then "add 327". i.e. it changes the sign, making positive negative or vice versa, then divides by 100 (same as multiplying by .01 = 1/100th) before adding 327. You'd need to experiment really.

I'm not totally sure without experimenting myself, but I think the value for 5x needs to be 320 and 0.25x is 16, so you want the minimum axis value converting to 16 and the max to 320. If the values run from -16383 to +16383 you'd need something like:

*.0092779,+168

the first number being 304 / 32766 to get the full ranfe -16383 to +16383 to be -152 to +152, and the +168 adjusts this to +16 to +320, as required.

As before, you can reverse this is you wish by using *-.0092779,+168

Pete
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


About simFlight - simflight.com - simflight.de - simflight.fr - simflight.nl - simflight.pt - simflight.es - simflight.it - simflight.jp - simrussia.com - simMarket