Thread: KOP Gyro Lag
View Single Post
  #2   Spotlight this post!  
Unread 13-02-2008, 23:50
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: KOP Gyro Lag

2 things:

1. I believe the lag you are seeing is related to your print out rather than true lag. Output to screen takes more time than the slow loop, so what you are seeing as output happened a while ago. When you are outputing a dynamic value every loop, the buffer backs up. You could try adding a counter and just print every 10 loops or so.

2. The 80 deg/sec gyro is ok if you just want to use it to help drive straight, but it is hard to turn the robot that slow. I would definitely go with the 300 deg/sec gyro. Again lag issues you are observing aren't originating from from the gyros themselves so that isn't an issue.