Thread: Teleop Lag
View Single Post
  #6   Spotlight this post!  
Unread 18-02-2009, 21:32
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Teleop Lag

Can you characterize the delay any more?

The most likely thing that is causing this is having code in the teleop loop that causes it to finish late. A new teleop message arrives every 20ms, so you can't really do much in there. Go ahead and time the amount of time spent in the loop or the time between subsequent iterations.

And if you plug in the serial cable, are there messages on the terminal that give an indication as to what is going on? The earlier issue with the lag, by the way had to do with too many print statements being sent out the serial port, so even a message that doesn't sound bad may give info towards the lag.

Greg McKaskle