Go to Post But please take into account that each year, the GDC has to come up with a rule book that will spend the next three months being picked apart by 40,000 of the brightest, most creative minds on the planet. I think they do an outstanding job of it. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 19-02-2012, 02:29
Batman Batman is offline
Registered User
AKA: Evan Wiederspan
FRC #3663 (CPR)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Bothell, WA
Posts: 4
Batman is an unknown quantity at this point
More motors cause joystick to get slow

When we try to create more than 5 motor objects (RobotDrive, Jaguar, Victor using C++), our joystick starts responding very slowly so the ArcadeDrive doesn't move the robot until a half second or more after the joystick is moved. This is only our second year, so we could easily be doing things wrong, but we can't find a problem like this mentioned anywhere else. We've tried increasing the Wait time in our main and task loops to 20 and 50 ms but that hasn't helped much. We've seen teams talk about using 10 or more drives, so it seems like we shouldn't be having these problems.

Any help with be greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 02:34
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: More motors cause joystick to get slow

Are your motors too close to you radio? Are you tethered or wireless? Does it still lag when tethered?
__________________
"Sometimes the questions are

complicated but the answers are simple."

- Dr. Seuss
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 02:38
Batman Batman is offline
Registered User
AKA: Evan Wiederspan
FRC #3663 (CPR)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Bothell, WA
Posts: 4
Batman is an unknown quantity at this point
Re: More motors cause joystick to get slow

Yes it was still lagging while we were tethered, and no our motors aren't too close to the radio
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2012, 13:49
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: More motors cause joystick to get slow

Are you using any Wait()s in your code? as any time you spend waiting is time that you aren't reading your inputs and updating your outputs.

Also, if you have image processing running continuously that can cause alot of processing to take place which needs to finish when before you process inputs and outputs again.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2012, 18:30
Batman Batman is offline
Registered User
AKA: Evan Wiederspan
FRC #3663 (CPR)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Bothell, WA
Posts: 4
Batman is an unknown quantity at this point
Re: More motors cause joystick to get slow

Were not using the axis camera or image processing at all. We are going to check the wait statements, but I don't think that's the problem.

Does it cause a problem creating a new Jaguar or Victor object for a motor that is not yet connected to the robot?
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2012, 09:01
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: More motors cause joystick to get slow

It shouldn't add any more load than actually having that Jaguar present, unless perhaps you use CAN to connect your Jaguars (but I don't know much about CAN); but the standard case is using PWMs to drive the motor, which is not a bidirectional communication, so it has no way to know if you have the Jag present or not.
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 13:32.

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