Jump to content
Sign in to follow this  
Guest JALOWT

Restricting Yoke Movement

Recommended Posts

Guest JALOWT

Hi,I was wondering what part of this code restricts the X movement of the yoke bmp?<Gauge Version="1.0" Name="Yoke" > <Element> <Size X="630" Y="450" /> <Element> <Image Name="Yoke.bmp" ImageSizes="630,300" > <Axis X="317" Y="83" /> </Image> <Rotate> <Value> (A:YOKE X POSITION,numbers) </Value> </Rotate> <Shift> <Value> (A:ELEVATOR POSITION, numbers) </Value> <Nonlinearity> <Item Value="-1" X="10" Y="70"/> <Item Value="0" X="10" Y="100"/> <Item Value="1" X="10" Y="130"/> </Nonlinearity> </Shift> </Element></Element><Mouse> <Tooltip>Yoke</Tooltip> </Mouse></Gauge>I thought it would be the "<Item Value=**** x="10" " but when I play around with the number it has no effect.So I am basically trying to shorten the distance the bitmap will rotate to both sides.Also, does anyone know how to make the bitmap rotate in smaller increments? The bitmap is rotating too far in one increment at the moment.Thank you very much

Share this post


Link to post
Share on other sites

The existing nonlinearity table is applied to the <Shift> element.You would need to create a nonlinearty table for the <Rotate> element.Aside from that, the proper unit for the A:variable is "percent" <Value> (A:YOKE X POSITION,percent) </Value>0 percent is fully left50 percent is the 'neutral/middle' position100 percent is fully rightSince I don't have the graphics this gauge uses, I cannot even begin to guess the x,y values you will need for your nonlinearity table... ;)


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
Guest JALOWT
The existing nonlinearity table is applied to the <Shift> element.You would need to create a nonlinearty table for the <Rotate> element.Aside from that, the proper unit for the A:variable is "percent" <Value> (A:YOKE X POSITION,percent) </Value>0 percent is fully left50 percent is the 'neutral/middle' position100 percent is fully rightSince I don't have the graphics this gauge uses, I cannot even begin to guess the x,y values you will need for your nonlinearity table... ;)
Hi,<Gauge Version="1.0" Name="Yoke" > <Element> <Size X="630" Y="450" /> <Element> <Image Name="Yoke.bmp" ImageSizes="630,300" > <Axis X="317" Y="83" /> </Image> <Rotate> <Value> (A:YOKE X POSITION,percent) </Value> <Nonlinearity> <Item Value="-1" X="30" Y="0"/> <Item Value="0" X="50" Y="0"/> <Item Value="1" X="70" Y="0"/> </Nonlinearity> </Rotate> <Shift> <Value> (A:ELEVATOR POSITION, numbers) </Value> <Nonlinearity> <Item Value="-1" X="10" Y="70"/> <Item Value="0" X="10" Y="100"/> <Item Value="1" X="10" Y="130"/> </Nonlinearity> </Shift> </Element></Element><Mouse> <Tooltip>Yoke</Tooltip> </Mouse><copyright> ©2004 by Claus Vendelboe Holmberg [c.holmberg@vip.cybercity.dk] </copyright></Gauge>Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?Thanks
The existing nonlinearity table is applied to the <Shift> element.You would need to create a nonlinearty table for the <Rotate> element.Aside from that, the proper unit for the A:variable is "percent" <Value> (A:YOKE X POSITION,percent) </Value>0 percent is fully left50 percent is the 'neutral/middle' position100 percent is fully rightSince I don't have the graphics this gauge uses, I cannot even begin to guess the x,y values you will need for your nonlinearity table... ;)
Hi,<Gauge Version="1.0" Name="Yoke" > <Element> <Size X="630" Y="450" /> <Element> <Image Name="Yoke.bmp" ImageSizes="630,300" > <Axis X="317" Y="83" /> </Image> <Rotate> <Value> (A:YOKE X POSITION,percent) </Value> <Nonlinearity> <Item Value="-1" X="30" Y="0"/> <Item Value="0" X="50" Y="0"/> <Item Value="1" X="70" Y="0"/> </Nonlinearity> </Rotate> <Shift> <Value> (A:ELEVATOR POSITION, numbers) </Value> <Nonlinearity> <Item Value="-1" X="10" Y="70"/> <Item Value="0" X="10" Y="100"/> <Item Value="1" X="10" Y="130"/> </Nonlinearity> </Shift> </Element></Element><Mouse> <Tooltip>Yoke</Tooltip> </Mouse><copyright> ©2004 by Claus Vendelboe Holmberg [c.holmberg@vip.cybercity.dk] </copyright></Gauge>Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?Thanks

Share this post


Link to post
Share on other sites

Hi,You also could try:<Value> (A:YOKE X POSITION,numbers) 2 /</Value><Value> (A:ELEVATOR POSITION, numbers) 2 / </Value>or a lesser value.Jan

Share this post


Link to post
Share on other sites
Guest JALOWT
Hi,You also could try:<Value> (A:YOKE X POSITION,numbers) 2 /</Value><Value> (A:ELEVATOR POSITION, numbers) 2 / </Value>or a lesser value.Jan
hi,thanks to both of you, it works now with Jan's code :)I actually changed it to:<Value> (A:YOKE X POSITION,numbers) 6 /</Value>and it works wellthanks

Share this post


Link to post
Share on other sites
Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?Thanks
I'm not surprised at all. The last time I checked, there are ONE HUNDRED whole units in a "100 percent"... <Item Value="-100" X="30" Y="0"/><Item Value="0" X="50" Y="0"/><Item Value="100" X="70" Y="0"/>Restrictling the movement to ONE percent results in no movement... :(

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

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...