February 2, 200917 yr 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
February 2, 200917 yr Moderator 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
February 2, 200917 yr 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 [[email protected]] </copyright></Gauge>Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?ThanksThe 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 [[email protected]] </copyright></Gauge>Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?Thanks
February 2, 200917 yr 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 Jan "Beatus ille qui procul negotiis..."
February 2, 200917 yr Hi,You also could try:<Value> (A:YOKE X POSITION,numbers) 2 /</Value><Value> (A:ELEVATOR POSITION, numbers) 2 / </Value>or a lesser value.Janhi,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
February 3, 200917 yr Moderator Now the yoke bmp is even moving left or right, only forward/back :( Any ideas?ThanksI'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
Create an account or sign in to comment