Go to Post since when do we programmers start begging to get off easy? - Kevin Sevcik [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-11-2011, 07:15
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Confusion with turning

I want to program with LabView this year, so I started learning it online. During the simple autonomous lesson where you set the speeds for the motor, I am really confused about the x and y speed inputs. If x=0.25 and y=0.5 then it turns right and if they are reversed, it turns left??? This doesn't really make sense. Is it turning with no forward movement or still moving forward, just turning a little?
Attached Thumbnails
Click image for larger version

Name:	turn right.JPG
Views:	32
Size:	16.1 KB
ID:	11112  
Reply With Quote
  #2   Spotlight this post!  
Unread 22-11-2011, 09:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Confusion with turning

The y value tells Arcade to move forward at half speed while the x tells it how much to turn (quarter speed) and in what direction (left or right), so the robot will move forward in an arc as it turns. To turn in place, make y=0.

To overcome the mass and friction of the robot it takes a little bit of the low-end power, so maybe 20% (.2) of the forward power will simply get the robot moving slightly (depends on the robot).

To turn the opposite way leave y alone and make x negative, i.e., x=-0.25

Make y negative to backup while turning.


If you use Tank Drive instead of Arcade, then you might reverse the two inputs to get the opposite effect, but the inputs would typically represent two y joysticks, rather than the single joystick of Arcade. In autonomous of course there are no joysticks, but many people still like to think of it as if a driver were controlling the robot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-11-2011 at 10:56. Reason: x/y dsylexia
Reply With Quote
  #3   Spotlight this post!  
Unread 22-11-2011, 10:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Confusion with turning

Quote:
Originally Posted by Mark McLeod View Post
The x value tells Arcade to move at one quarter speed while the y tells it how much to turn (half speed)

I think you have the x and y interchanged?

http://www.chiefdelphi.com/forums/at...d=13219745 12


Attached Thumbnails
Click image for larger version

Name:	arcade.png
Views:	28
Size:	8.5 KB
ID:	11114  
Reply With Quote
  #4   Spotlight this post!  
Unread 22-11-2011, 10:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Confusion with turning

Quote:
Originally Posted by Ether View Post
I think you have the x and y interchanged?
Yes, thanks. I made that and other corrections.

I'm a bit distracted by the NASA Grant emails flying around this morning.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-11-2011 at 10:48.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-11-2011, 10:12
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Confusion with turning

so, which one is the forward movement? x or y?
Reply With Quote
  #6   Spotlight this post!  
Unread 23-11-2011, 10:17
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: Confusion with turning

Quote:
Originally Posted by tilky View Post
so, which one is the forward movement? x or y?
x axis is for movement left and right,
y axis is for movement up and down
__________________
"A team back in training !"
Reply With Quote
  #7   Spotlight this post!  
Unread 28-11-2011, 06:54
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Confusion with turning

oh ok, so it is just like a graph. Thanks, got it now.
Reply With Quote
  #8   Spotlight this post!  
Unread 28-11-2011, 12:05
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,579
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: Confusion with turning

Quote:
Originally Posted by tilky View Post
I want to program with LabView this year, so I started learning it online. During the simple autonomous lesson where you set the speeds for the motor, I am really confused about the x and y speed inputs. If x=0.25 and y=0.5 then it turns right and if they are reversed, it turns left??? This doesn't really make sense. Is it turning with no forward movement or still moving forward, just turning a little?
Rather then changing both x and y at the same time, it would have been better to only change one value while keeping the other the same. I would probably try five different tests (see below). That may seem like a lot, but it allows you to fully characterize the behavior and is a lot faster then changing multiple values at once and guessing which one caused what change. Once you've done those, you should be able to predict what would happen for any other combination.

x=0, y=0
x=0.25, y=0
x=-0.25, y=0
x=0, y=0.25
x=0, y=-0.25
Reply With Quote
Reply


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


All times are GMT -5. The time now is 20:38.

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