Can you be more specific? What exactly didn’t work?
Absolutely! Sorry about that.
So we had a quadrature encoder connected to our talon. I noticed when polling that position function (talon.getSelectedSensorPosition()), the value seemed to increment by about 200 every complete rotation it did (I was under the impression that it was 4096 ticks per rotation but it seemed to be 200… assuming that sensorPosition value represented ticks…)
so I would then zero the encoder on initiation of the Robot… meaning my sensor position should now be 0. From that point all I did was:
talon.set(ControlMode.Postion, 200);
It was my thinking that should rotate the motor to position 200, which I thought would be one rotation of the encoder.
Clearly I am understanding something wrong here?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.