Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Code running slow (http://www.chiefdelphi.com/forums/showthread.php?t=113113)

Ether 10-02-2013 17:23

Re: Code running slow
 
Quote:

Originally Posted by gman (Post 1231108)
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?



Joe Ross 10-02-2013 18:10

Re: Code running slow
 
It might be helpful if you posted your project.

gman 15-02-2013 15:26

Re: Code running slow
 
1 Attachment(s)
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.

Team3266Spencer 15-02-2013 23:23

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.


All times are GMT -5. The time now is 11:49.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi