|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 22-11-2011 at 10:56. Reason: x/y dsylexia |
|
#3
|
||||
|
||||
|
Re: Confusion with turning
Quote:
I think you have the x and y interchanged? http://www.chiefdelphi.com/forums/at...d=13219745 12 |
|
#4
|
|||||
|
|||||
|
Re: Confusion with turning
Yes, thanks. I made that and other corrections.
I'm a bit distracted by the NASA Grant emails flying around this morning. Last edited by Mark McLeod : 22-11-2011 at 10:48. |
|
#5
|
||||
|
||||
|
Re: Confusion with turning
so, which one is the forward movement? x or y?
|
|
#6
|
||||
|
||||
|
Re: Confusion with turning
x axis is for movement left and right,
y axis is for movement up and down |
|
#7
|
||||
|
||||
|
Re: Confusion with turning
oh ok, so it is just like a graph. Thanks, got it now.
|
|
#8
|
||||||
|
||||||
|
Re: Confusion with turning
Quote:
x=0, y=0 x=0.25, y=0 x=-0.25, y=0 x=0, y=0.25 x=0, y=-0.25 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|