#1




G25 steering wheel range !
Hello all,
I'm using the G25 steering wheel which has 900 degrees steering range (450 to the right and 450 to the left). I use vizjoy.getPosition() to get the value of steering, the value comes on X. The problem is that i get "1" for 90 degrees to the left and "1" for 90 degrees to the right, I need to get the full range (900 degrees). How can i scale it ?? 
#2




here you dont want to scale first, you need to get the full range [5,5] if you can get it,
then you can use the mathmatical range scaling which: to scale x form range [ab] to range [cd] newX=(xa)/(ba) #here you will have your value in range [01] finalValue=(newX*(dc))+c #and here you will have your value in range [cd] which in your case if x was 2 in range [5,5] and you need to change it to range [450,450] you can solve it as follows: newX=(2(5))/(5(5)) #7/10=0.7 in range [0,1] finalValue=(0.7*(450(450)))+(450) #(0.7*900)450=180 and thats it hope that helps 
#3




Quote:
therefore, in the scaling equation you wrote, finalValue is 90 max when steering right and 90 for steering left thank you for your help 
Thread Tools  
Display Modes  Rate This Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Range of Cameras  Vic  Precision Position Tracker (PPT)  2  06112009 06:19 AM 
How to get the data from Logitech G25 racing wheel ?  fuyonggang  Vizard  4  12182008 06:14 PM 
Flock of birds extended range problem  theuberk  Vizard  4  07302007 09:31 AM 
Do you have some idea about the bicycle and wheel  sled  Vizard  6  08012003 10:03 PM 
Can I see infinite distance  sled  Vizard  2  07162003 04:18 PM 