Go to Post For those who have been doing this for a long time, design is an emotional experience. - Joe Johnson [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-02-2010, 18:57
lucoytoa's Avatar
lucoytoa lucoytoa is offline
Programmer
AKA: Nicolas Xiong
FRC #2276 (STARS of Cypress)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Spring, TX
Posts: 20
lucoytoa is an unknown quantity at this point
Cool Motor Jerking when Reverse

We have a program that when button 1 is press, the motor goes forward, when button 2 is press, the motor reverses. When button 2 is press, the motor jerks and moves very slowly. Moving forward is fine. Please help!!!

We've tested on several motors, jaguars, changed pwm, and still having the same problem.

Here is our code:
Attached Thumbnails
Click image for larger version

Name:	untitled.JPG
Views:	65
Size:	124.8 KB
ID:	8772  
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2010, 21:50
663.keith 663.keith is offline
Registered User
FRC #1493 (Falcons)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Whitinsville Massachusetts
Posts: 250
663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all
Send a message via AIM to 663.keith
Re: Motor Jerking when Reverse

The code is a little difficult to read, and it would be beneficial to clean up the wiring to help with any problems. However, it appears that you have a joystick axis value going to a case statement rather than a button press, as indicated by the orange wire, rather than a dashed green bool wire.
__________________
http://www.wcsrobotics.com
team 663
team 1493
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2010, 10:54
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 206
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Motor Jerking when Reverse

Plus, you've got two Motor Set Speed vi's to the same motor with conflicting speed values.

Try something more like this:



or this:

__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes


Last edited by Doc Wu : 23-02-2010 at 11:13.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-03-2010, 14:25
lucoytoa's Avatar
lucoytoa lucoytoa is offline
Programmer
AKA: Nicolas Xiong
FRC #2276 (STARS of Cypress)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Spring, TX
Posts: 20
lucoytoa is an unknown quantity at this point
Re: Motor Jerking when Reverse

Thanks! That sure made it a lot less messy- and less complicated. I won't be able to test it until tomorow when we actually get to see the robot again. Anyway, thanks for the help!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Robot doesn't respond when i add a fifth motor starsROBOTICS NI LabVIEW 2 14-02-2009 22:40
forward reverse on drill motor PDonovan Motors 2 03-02-2003 11:11
Reverse Engineering the Drill Motor Andrew Motors 1 05-01-2003 16:14
Difference in forward/reverse drill motor speed archiver 2001 25 24-06-2002 00:21
Drill Motor Anti-reverse Pins... archiver 2000 5 23-06-2002 23:10


All times are GMT -5. The time now is 04:46.

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