View Single Post
  #9   Spotlight this post!  
Unread 20-02-2013, 09:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: KOP Gyro steadily decreasing

Quote:
Originally Posted by brennonbrimhall View Post
Hence my confusion. To reset every iteration of testPeriodic(), autoPeriodic(), or teleopPeriodic() would reset my current frame of reference every 20ms.
Spencer said to reset it "as often as possible", not every 20ms.


Quote:
When would you suggest resetting the gyro, so that the drift is minimized, but the reference is functionally unchanged?
It depends on the application. For example, if you're using it to measure the heading of the robot, you could have a reset button on the joystick that the driver could push whenever the robot is pointing straight downfield.


Reply With Quote