Thread: Dual encoders
View Single Post
  #11   Spotlight this post!  
Unread 19-02-2016, 01:20
mehnadnerd mehnadnerd is offline
Registered User
AKA: Brendan
FRC #1458 (Red Tie Robotics)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2009
Location: Danville
Posts: 5
mehnadnerd is an unknown quantity at this point
Re: Dual encoders

Having two encoders also helps to ensure driving straight. The way we implement it can be found at https://github.com/FRC1458/turtleshe...tDrivePID.java, we combine the gyro data and the difference (left - right) to figure out how much the motors need to drive differently.