Go to Post If you water it and nurture it and fertilize it and put it out in the sunlight, it might just grow up to be a big lathe... :) - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-03-2011, 15:05
TheBigCheese TheBigCheese is offline
Registered User
FRC #0619
 
Join Date: Jan 2010
Location: Charlottesville, VA
Posts: 7
TheBigCheese is an unknown quantity at this point
Joysticks Laggy/Jerky

We have been experiencing a problem with our joysticks where the response seems to be laggy or almost deadbanded. Sometimes it will work as expected, but most of the time, it doesn't register until past 1/3 of the way forward or back. I've been able to have it not register until the joystick is fully forward, by moving is slowly.

It doesn't seem to be a problem with the joysticks themselves as we've tried different models and are experiencing the same problems.

Has anyone else experienced this, or does anyone have any suggestions as to what the problem may be?

Thanks in advance.
  #2   Spotlight this post!  
Unread 19-03-2011, 15:12
Andrew Lawrence
 
Posts: n/a
Re: Joysticks Laggy/Jerky

Is there something in the code, or is it a mechanical issue? Maybe there is something blocking your wheels, or your motors? Maybe slowing them down? That's all I can think of.
  #3   Spotlight this post!  
Unread 19-03-2011, 15:13
Conor Ryan Conor Ryan is offline
I'm parking robot yacht club.
FRC #4571 (Robot Yacht Club)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: Midtown, NYC
Posts: 1,893
Conor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond repute
Re: Joysticks Laggy/Jerky

Do you have a webcam? The increased data flow might cause the problem, so just unplug it. Also are you using a classmate?
  #4   Spotlight this post!  
Unread 19-03-2011, 15:39
TheBigCheese TheBigCheese is offline
Registered User
FRC #0619
 
Join Date: Jan 2010
Location: Charlottesville, VA
Posts: 7
TheBigCheese is an unknown quantity at this point
Re: Joysticks Laggy/Jerky

I don't think it's a mechanical issue, everything seems to be clear.

I've been using it a bit and it seems like it might be a problem with the wireless. There seems to be a specific .5-1 second lag between moving the arm joystick and the arm actually moving.

We're not using a webcam, though I'll check to see at what rate we're checking specific sensors. We may be tying up resources I suppose, though I think the cRIO should be able to handle a fair amount of requests.
  #5   Spotlight this post!  
Unread 19-03-2011, 17:52
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,797
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: Joysticks Laggy/Jerky

I'd do a speed check on your code to see if it's slow in certain spots.

Try putting the robot up on blocks and getting it to repeat the problem while tethered.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 19-03-2011, 18:40
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: Joysticks Laggy/Jerky

In case this helps, we noticed significant control lag when running the driver station on Vista laptops.
  #7   Spotlight this post!  
Unread 19-03-2011, 18:55
Sean1038 Sean1038 is offline
Registered User
FRC #1038
 
Join Date: Jan 2010
Location: Liberty Township
Posts: 14
Sean1038 is an unknown quantity at this point
Re: Joysticks Laggy/Jerky

We also were having a lag problem with the joysticks, and our best guess is that, while debugging, the code depends on the laptop to run it and since our laptop is really slow, we get a lag. The lag seems to go away when we run the permanent code.
  #8   Spotlight this post!  
Unread 20-03-2011, 15:33
TheBigCheese TheBigCheese is offline
Registered User
FRC #0619
 
Join Date: Jan 2010
Location: Charlottesville, VA
Posts: 7
TheBigCheese is an unknown quantity at this point
Re: Joysticks Laggy/Jerky

Tethering seems to help a little, though it's not obviously better. I timed the code. An entire loop of TeleOp periodic only takes about 32ms, so I think that's fine.

Another problem that has been cropping up is that when braking hard or putting load on the motors, the jaguars turn a solid red and the robot stops moving. The connection is fine, and we can ping to robot, but it doesn't move.

We're using a CAN-based system, so that may be part of the problem, though I'm not sure.
  #9   Spotlight this post!  
Unread 20-03-2011, 16:36
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Joysticks Laggy/Jerky

Are your jaguars in brake or coast mode?

Are you tripping a breaker?
  #10   Spotlight this post!  
Unread 20-03-2011, 16:54
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 470
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Joysticks Laggy/Jerky

Quote:
Originally Posted by TheBigCheese View Post
We have been experiencing a problem with our joysticks where the response seems to be laggy or almost deadbanded. Sometimes it will work as expected, but most of the time, it doesn't register until past 1/3 of the way forward or back. I've been able to have it not register until the joystick is fully forward, by moving is slowly.
We (1519) were having this problem starting a couple weeks ago when we upgraded our Driver Station (the Classmate) to the new 2011 release running Windows 7. (We had not been having the problem with Windows XP on the classmate.)

This week, we switched to using a different laptop (a Dell Latitude D610) and the lag problem has gone away completely. We believe our problem was due to the Classmate, rather than the robot!
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"
  #11   Spotlight this post!  
Unread 20-03-2011, 17:01
CoachPoore CoachPoore is offline
Registered User
AKA: Noel Poore
FRC #1519 (Mechanical Mayhem)
Team Role: Coach
 
Join Date: Jun 2008
Rookie Year: 2006
Location: Mont Vernon, NH
Posts: 30
CoachPoore has a spectacular aura aboutCoachPoore has a spectacular aura about
Send a message via AIM to CoachPoore
Re: Joysticks Laggy/Jerky

Quote:
Originally Posted by Ken Streeter View Post
We (1519) were having this problem starting a couple weeks ago when we upgraded our Driver Station (the Classmate) to the new 2011 release running Windows 7. (We had not been having the problem with Windows XP on the classmate.)

This week, we switched to using a different laptop (a Dell Latitude D610) and the lag problem has gone away completely. We believe our problem was due to the Classmate, rather than the robot!
Yes, we were also seeing other concerning symptoms such as the robot continuing to operate for up to about 5s after it should have been disabled via the driver station. This was observed when disabling by pressing the space bar or clicking on the "Disable" button. The Classmate in question had been re-imaged to Windows 7 using the (unmodified) memory stick provided in the KoP. Other than activating Windows 7, the only other thing we had done to the Classmate was to install the latest driver station update.
__________________
2011 Granite State Regional Winners with teams 175 and 176
2010 Granite State Regional Winners with teams 1073 and 1058
2010 Granite State Regional Innovation In Controls Award Winners
2010 North Carolina Regional Engineering Excellence Award Winners
2010 North Carolina Regional Finalists with teams 1772 and 1741
  #12   Spotlight this post!  
Unread 20-03-2011, 17:06
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,797
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: Joysticks Laggy/Jerky

When I've seen the slow down/stutter due to the Classmate it has been when there is very little free disk space left.
The OS starts struggling to keep up with it's regular housekeeping and commands to the robot begin to get delayed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #13   Spotlight this post!  
Unread 20-03-2011, 18:06
TheBigCheese TheBigCheese is offline
Registered User
FRC #0619
 
Join Date: Jan 2010
Location: Charlottesville, VA
Posts: 7
TheBigCheese is an unknown quantity at this point
Re: Joysticks Laggy/Jerky

Well we've determined that it's actually two problems.

1. We're tripping a breaker if you jam hard in the opposite direction with inertia.
I'm not really sure why this is happening, since we've never had the problem in previous years. It's just a cim and toughbox chained to a wheel.

2. The Joysticks give some faulty readings.
The joysticks will read zero if properly moved. I can move it slowly to full and about 5-10% of the time the Y axis will read at zero, then quickly jump to the correct reading if I wiggle the stick a bit. It's strange because it happens on all models, and on certain sticks more than others. We're going to go ahead and install the proprietary drivers to see if that helps.


We've tried different laptops as well, though that doesn't seem to be the problem, nor does tethering help.

We also just switched to Victors and we're still tripping the breaker and having Joystick problems, so it's definitely not a problem with CAN.

Thanks for the ongoing help.
Closed Thread


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 18:25.

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