Thread: RoboRio
View Single Post
  #79   Spotlight this post!  
Unread 02-05-2014, 08:50
Tom Line's Avatar
Tom Line Tom Line is online now
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,564
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: RoboRio

Quote:
Originally Posted by Joey1939 View Post
3. Units and Measures: In java pots will directly return an angle and encoders a distance
Keep in mind the amount of work you will have to do is the same. You'll still have to supply a scaling factor to get an accurate angle, because the rRIO doesn't know if you are using a 1 turn pot, a 10 turn pot, or a 54 inch string pot. The same caveat holds true for the encoders.

I didn't realize in the past that Java didn't have a function that just allowed you to supply a scaling factor when you declare the sensor. That's how LabVIEW has always had it.