So we have those AMT-103 Encoders On our Robot And We are Trying To Get Them Working for The 2023 ISR Offseason Event.
We wired Them Up all good And Wrote Some Code For It To Reset In “init” And If(encoder.getDistance() < 5) then drive. else it will stop in the Periodic.
It Did not quite Work And its Just Kept Going(The Wheels). One Time It Didn`t show any signal of life in the Shuffleboard (Sended the Encoder Data To There) and after some Rewiring Also Did not work. We Checked the code And Deleted all Of The Enocder Parameters like DistancePerPulse and MinRate.
It Worked But The Encoder Gave Us A Very big Number For One Rotation and If We Would`ve Wrote The DistancePerPulse line Again it Was not giving us any output Anymore.
So we do not have the Index Cabel Wired To The Robot, And I Guess it`s the Problem here.
But What Is Index And Does It Really Makes The Encoder Useless without It?
Encoder: AMT-103
Encoding Type: Quadrature
Connected: Power=VRM 5V 500amp, Chanle A = 0,2(2 Encoders), Chanle B = 1,3.