Go to Post Johnny V-Neun. People just want to be his kind of cool... none of us really know why... - Pamela [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-04-2016, 21:40
NathanZhu NathanZhu is offline
Registered User
FRC #2415
 
Join Date: Jan 2016
Location: Georgia
Posts: 1
NathanZhu is an unknown quantity at this point
Robot lag?

So recently we discovered that whenever we tried to drive our robot, there was some lag time between the time we moved the joystick to the time the robot moved. Also, the robot continued to move even when we were not holding the joystick down. There was no change in code and we did not do anything different to the robot. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2016, 21:56
SndMndBdy SndMndBdy is offline
Registered User
FRC #3419
 
Join Date: Jan 2013
Location: New York
Posts: 18
SndMndBdy is on a distinguished road
Re: Robot lag?

Try checking a few things:

1. On the driver station, check your robot CPU usage. If it's high (over 30%) something funny might be going on with your code.
2. Check task manager for your computer's CPU usage. If it's high, check to make sure there are no other unnecessary process running on your computer.
3. Check your network connection. Look in the diagnostics tab of the driver station and look for packet loss and round trip time (they might not be callled exactly that, but something like that). If they are high, that could be a problem. Switch to a tethered connection (USB or network cable) and see if that's the problem.
4. Check that your joystick is not broken. You can see some raw diagnostics about the joystick on the USB tab of the driver station.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-04-2016, 22:15
KosmicKhaos's Avatar
KosmicKhaos KosmicKhaos is offline
Calm Cool Collected
AKA: Andrew Thompson
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Webster NY
Posts: 142
KosmicKhaos has a spectacular aura aboutKosmicKhaos has a spectacular aura about
Re: Robot lag?

As far as the robot moving while the joystick is not being moved you may want to check the trims on your joysticks if they have them. Play around with the X and Y trims. If the problem still persists you may want to try setting a dead band in the code.
__________________
2016 Greater Pittsburgh Regional Winner (With 5406 and 1559) | Finger Lakes Regional Semi-finalist
2015 Greater Pittsburgh Regional Quarter-finalist | Finger Lakes Regional Semi-finalist
Reply With Quote
  #4   Spotlight this post!  
Unread 01-04-2016, 22:15
Sperkowsky's Avatar
Sperkowsky Sperkowsky is offline
Professional Multitasker
AKA: Samuel Perkowsky
FRC #2869 (Regal Eagles)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Bethpage, NY
Posts: 1,900
Sperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond repute
Are you using multithreading?
Reply With Quote
  #5   Spotlight this post!  
Unread 01-04-2016, 22:48
trumpthero786's Avatar
trumpthero786 trumpthero786 is offline
What Part of the Sandwich Are You?
AKA: Humza
FRC #2729 (Storm Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Medford, New Jersey
Posts: 167
trumpthero786 will become famous soon enough
Re: Robot lag?

We had this issue when some vision code was implemented, but not refined or tested, causing a good 1 to 2 second lag. Like others have said, I would look for something that is using more resources than it should be. Or it's just a network/wireless issue.
__________________
CLAP CLAP WHOOSH!

2015 - Hatboro Horsham - Quarterfinalist with 272 and 5181 - Entrepreneurship Award
2015 - Seneca - Quarterfinalist with 316 and 5684 - Engineering Inspiration Award
2015 - MAR Championships - 50th Seed - Quarterfinalists with teams 1923 and 11
2016 - Hatboro Horsham - Team Spirit Award
2016 - Seneca - Gracious Professionalism Award


"nice beaver tail"

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 17:34.

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