|
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
|