Archived

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

Guest JALOWT

Restricting Yoke Movement

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

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... ;)
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
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... :(

Share this post


Link to post
Share on other sites