Go to Post I'm sure you can come up with something, with a bit of warped thought! ... and if not, warped thinking is what your team's Engineers are for! :) - kmcclary [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 18-02-2010, 02:14
Michael Fadaie Michael Fadaie is offline
Registered User
FRC #3393
 
Join Date: Feb 2010
Location: Edgewood
Posts: 10
Michael Fadaie is an unknown quantity at this point
Fast Stop and Jerky need help

This is our groups rookie year and currently I am the only programmer. I have programmed all of the tele code including the compressor and kicker. So, far all I have in auto is that it moves forward one second back one second and then it will kick and retract. Along, with the compressor working.

Currently, I have two problems and there is no way that my current labView skills will be able to solve them. Well, at least not in the time we have left.

If you press the joystick foward and then let up on it suddenly. The robot will stop very fast. So, is there a VI that will control acceleration. This would make the motors come to a slow stop.

Next, if you push the joystick a little it seems like the robot just takes off. Is there a way to make it so when you move the joystick just a little it only moves a tiny bit? There is no middle or beginning. There is only fast, faster, and fastest.

If you have any questions, feel free to ask. Any help would be great. Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 06:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Fast Stop and Jerky need help

For the first issue, this may best be solved by looking at the motor controllers and seeing if the jumper is set for Coast or Brake. I believe the Jaguars in particular ship set for Brake, and you likely want to move it to Coast for your drive motors.

For the second issue, since the numbers go between -1 and 1, try adding some math in between the joystick code and the drive code. If you never need to top speed, you can simply divide by a number. If you want to affect small numbers more, you can square and reapply the sign, or you can even cube the number or put it to any power you like.

You may also find it useful to build a small program to plot joystick versus motor to check the various math options and help visualize what they do.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 20:37
GLaDOS GLaDOS is offline
Registered User
FRC #3215
 
Join Date: Feb 2010
Location: Greensboro, NC
Posts: 2
GLaDOS is an unknown quantity at this point
Re: Fast Stop and Jerky need help

We had this same exact problem. This was because we had it round up the nearest whole number. Allowing the program to use decimals solved the problem for us.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2010, 21:26
Michael Fadaie Michael Fadaie is offline
Registered User
FRC #3393
 
Join Date: Feb 2010
Location: Edgewood
Posts: 10
Michael Fadaie is an unknown quantity at this point
Re: Fast Stop and Jerky need help

Thanks for the reply Greg McKaskle. I just got in and changed the jaguar to coast. I haven't gotten a chance to try it out yet though.

Also, GLaDOS what do you mean that you had to rounding to whole numbers and how did you change that?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2010, 23:30
Michael Fadaie Michael Fadaie is offline
Registered User
FRC #3393
 
Join Date: Feb 2010
Location: Edgewood
Posts: 10
Michael Fadaie is an unknown quantity at this point
Re: Fast Stop and Jerky need help

Nvm I got the robot to work. Thanks for the help.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2010, 12:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Fast Stop and Jerky need help

For the benefit of others reading this thread who might have similar problems, it would be helpful if you described what was wrong and what you did to make it work the way you wanted it to.
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
Jerky Tracking? Matt Krass Programming 5 13-01-2006 00:50
need help fast!!! Hubless 1/4 pitch sprockets Travis Covington General Forum 6 03-02-2003 18:44
Need Help fast on GM17 archiver 2000 2 23-06-2002 22:37
Help! Need Motor Coupling FAST! Eric Reed General Forum 3 06-09-2001 00:40


All times are GMT -5. The time now is 22:03.

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