FRC1076 / FRC1076-2016-Competition

The code for the 2016 competition robot
0 stars 3 forks source link

Refactor IEncoder into IDistanceEncoder #30

Closed a2aaron closed 8 years ago

a2aaron commented 8 years ago

Most encoders cannot respond to getDistance() sensibly. This PR makes it so that they don't have to try to anymore.

getDistance has been moved from IEncoder into IDistanceEncoder

MockEncoder and DistanceEncoder now implement IDistanceEncoder.