|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Code running slow
We double checked, there are absolutely no for or while loops anywhere in the program...
|
|
#2
|
||||
|
||||
|
Re: Code running slow
Quote:
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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. Last edited by Team3266Spencer : 16-02-2013 at 11:48. |
|
#5
|
||||||
|
||||||
|
Re: Code running slow
It might be helpful if you posted your project.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|