View Single Post
  #4   Spotlight this post!  
Unread 17-02-2014, 21:17
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Joystick.getRawAxis()

Quote:
Originally Posted by Greg McKaskle View Post
Actually, the returned data is an I8. It goes from -128 to 127. The normal joystick functions are scaled, but not the raw one.
In Java, getRawAxis gets the scale value of an axis based on joystick axis number, rather then the joystick axis enum. Java does not provide an interface to the unscaled value like LabVIEW does.

Last edited by Joe Ross : 17-02-2014 at 22:16.