Go to Post Place a corner of it on the end of a table, clamp down the other side, and have a good whack at it with a hammer (hard). If it didn't break, it was polycarbonate. - vivek16 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   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,567
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?
  #2   Spotlight this post!  
Unread 31-01-2010, 16:16
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: The 2nd Joystick must DIE

Quote:
Originally Posted by Joe Ross View Post
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??
I assume you are talking about digging into the HolonomicDrive VI. It takes 3 inputs... Magnitude (which is from 0.0 - 1.0), Direction (which is in degrees) and Rotation (which is -1.0 to 1.0, but has errant documentation claiming it is in degrees/sec).

Quote:
Originally Posted by Joe Ross View Post
Also, wouldn't putting the gyro in as an input cause positive feedback? Shouldn't that also be a joystick value?
Who's putting the Gyro in? I'm guessing you mean into the Direction input. The Gyro only comes into play if you want field oriented control, in which case you would subtract the gyro angle from the desired direction coming from the cartesian to polar conversion.

-Joe
  #3   Spotlight this post!  
Unread 31-01-2010, 16:23
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,567
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
Who's putting the Gyro in? I'm guessing you mean into the Direction input. The Gyro only comes into play if you want field oriented control, in which case you would subtract the gyro angle from the desired direction coming from the cartesian to polar conversion.

-Joe
Nevermind, I didn't follow the wires correctly.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: In the pit everyone must follow the rules Rich Wong Extra Discussion 3 02-07-2009 15:57
The 2nd and 3rd Clue???? nevereverregret General Forum 4 19-01-2009 20:22
Why MUST the 7.2v battery be attached to operate servos on the RC? Mike Rush Control System 17 06-02-2004 18:57
... And the Boards Die AJ Quick Chit-Chat 19 14-04-2003 13:36
I must be the postman... archiver 2001 4 23-06-2002 22:22


All times are GMT -5. The time now is 01:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi