Go to Post Winning or losing on the field has nothing to do with this success. - E. Wood [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 25-01-2016, 18:24
samknight213 samknight213 is offline
Registered User
FRC #4656
 
Join Date: Jan 2016
Location: two harbors, Minnesota
Posts: 4
samknight213 is an unknown quantity at this point
Question weird drive problems

We have had this problem for about a week and a half, so when we drive forward its fine. When we turn left while driving forward, it's fine same as the right. When spinning left and right it is also fine. But the problem comes when we drive backwards. Driving backwards straight is fine, but when we turn left on the joystick the robot turns back right and vice versa. Does anybody have a clue what is happening in the code. We have tried making a case structure in teleOp.vi to see if the y axis is positive or negative then inverse it if it is negative but we may have done it wrong so if you could show a picture of how it should look. Thanks....

But who knows I've been blaming wiring because that's what I do when I don't know something.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2016, 20:29
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,609
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: weird drive problems

You have your left and right sides mixed up. Swap your left and right motors in the code and you'll be fine.

Also, welcome to ChiefDelphi, and feel free to ask a little sooner than a week and a half of struggling. Maybe just a day or two?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 25-01-2016 at 20:33.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2016, 18:02
samknight213 samknight213 is offline
Registered User
FRC #4656
 
Join Date: Jan 2016
Location: two harbors, Minnesota
Posts: 4
samknight213 is an unknown quantity at this point
Re: weird drive problems

We have changed the PWM's to match the PWM's on the chassis but it still doesn't work. and thanks for the welcome.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2016, 23:39
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,609
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: weird drive problems

Oh, I kind of skimmed your original post. Didn't realize the problem was only when you were backing up. I think the behavior you describe is actually the correct behavior for most usual "Arcade Drive" setups. Left-right on the joystick controls rotation direction and speed. Front-Back controls forwards-backwards motion. The behavior you describe just follows from there. If you're turning clockwise and moving forward (away from the driver), the robot turns to the driver's right. If you're turning clockwise and moving backward (towards the driver), the robot moves to the driver's left.

If you want different behavior, you'll have to program it yourself. It's tricky to get the robot to spin in place, turn the "same direction" moving forwards and backwards, and not destroy motors and gearboxes when you go from moving forwards to moving backwards.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2016, 17:10
samknight213 samknight213 is offline
Registered User
FRC #4656
 
Join Date: Jan 2016
Location: two harbors, Minnesota
Posts: 4
samknight213 is an unknown quantity at this point
Re: weird drive problems

Do you use arcade or tank, (I don't think mecahnum is good for this challenge) and what does the team driver find easier to do?
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2016, 23:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
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: weird drive problems

Quote:
Originally Posted by samknight213 View Post
mecahnum
http://youtu.be/LlSoEfAW47I?t=3m33s


Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2016, 10:00
samknight213 samknight213 is offline
Registered User
FRC #4656
 
Join Date: Jan 2016
Location: two harbors, Minnesota
Posts: 4
samknight213 is an unknown quantity at this point
Re: weird drive problems

mecanum then, sorry
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 03:56.

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