RMRobotics / FTC_5421_2014-2015

Assets for 2014-2015 Team 5421 FIRST Tech Challenge.
MIT License
6 stars 1 forks source link

Update code to make sure motorResetEncoder is called only in motorInit #71

Closed jimmyli97 closed 9 years ago

jimmyli97 commented 9 years ago

This is because of encoder contention over calling motorResetEncoder(). For example, if I were monitoring the lift encoder in both JoyAux.h and JoyMec.h, and I called motorResetEncoder() in JoyAux.h, JoyMec.h would have no way of knowing and things would die.

This can be undertaken with #70