View Single Post
  #3   Spotlight this post!  
Unread 31-01-2010, 09:50
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: The 2nd Joystick must DIE

Quote:
Originally Posted by jhersh View Post
It looks reasonable, but there is an easier way to convert from cartesian to polar (the magnitude and direction). In the palette under Programming >> Numeric >> Complex choose "Re/Im to Polar". This VI does all that math internally. The output is in radians, so you still need the conversion to degrees.
The help implies that some of the inputs should be in degrees. However, when I dug in, it looks like it limits the values to -1 to 1, which implies they should not be degrees, but joystick values. Am I reading that right?

Also, wouldn't putting the gyro in as an input cause positive feedback? Shouldn't that also be a joystick value?