Go to Post I bet Andy Baker would totally own JVN in a 1v1 dodgeball fight. - Greg Marra [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 10-02-2013, 17:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Code running slow

Quote:
Originally Posted by gman View Post
We double checked, there are absolutely no for or while loops anywhere in the program...
Are there any delays in your code which are implemented as busy-waiting?


Reply With Quote
  #17   Spotlight this post!  
Unread 10-02-2013, 18:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Code running slow

It might be helpful if you posted your project.
Reply With Quote
  #18   Spotlight this post!  
Unread 15-02-2013, 15:26
gman gman is offline
Registered User
FRC #4024
 
Join Date: Jan 2013
Location: Florida
Posts: 13
gman is an unknown quantity at this point
Re: Code running slow

I have absolutely not idea what's slowing it down. The good news is that the delay is now only about 2 seconds (no idea why) but that's still too long. The entire project is attached.
Attached Files
File Type: zip 4024-2013.zip (1.35 MB, 27 views)
Reply With Quote
  #19   Spotlight this post!  
Unread 15-02-2013, 23:23
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Code running slow

The starting of a command in teleopInit is not conventional. I would suggest removing that as well as making another subsystem that implements all your drive motors. This command would be the one that has the default command of normDrive as well as being the subsystem normDrive requires. Also, after doing the above, make sure to remove all the require commands from your motor subsystems.

What I believe is happening is your starting 5 normDrive commands in your code, which are all trying to control the same thing at the same time, which could possibly be your delay issue.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me

Last edited by Team3266Spencer : 16-02-2013 at 11:48.
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 12:54.

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