View Single Post
  #3   Spotlight this post!  
Unread 12-02-2013, 20:03
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Button Checking Code lags Teleop.vi

Quote:
Originally Posted by propionate View Post
I'm a little confused as to why you have contained your separate motor control VI's in a flat sequence. Are you attempting to run these controls in a particular order if a certain combination of buttons is pressed? If not, there is no need for the flat sequence structure.
I had the idea that it was running too many things at once, and that if I put it into a flat sequence structure, it will slow down a bit. That, and I'm more used to coded languages such as python or java, the flat sequence make a little bit more "sence" to me.

Quote:
Originally Posted by Greg McKaskle View Post
I assume you placed that code into teleop. If teleop doesn't read the joysticks and update the robotDrive many times per second, it will act as you describe. Once your sequence starts, the delays prevent teleop from doing the robotDrive task.

What most teams do is to move the code you've shown into periodic tasks. That way teleop can run quickly and return to the scheduler.

Greg McKaskle
I'll try that tonight, thanks.
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote