I Need CIM Encoder java codes ?

What kind of code should we write to get data from CIM Encoder? Chassis module of our robot Tank

1 Like

Howdy! Assuming you have a CimCoder you can use the andymark info page to get the pinout, then use the following to program it:

The WPI page breaks down how encoders work, and how to program whem quite well: Encoders - Software — FIRST Robotics Competition documentation

Here is the WPILIB Example for using an encoder: allwpilib/Robot.java at main · wpilibsuite/allwpilib · GitHub

Let us know if you have any more questions! If you do, remember to include as much detail as you can (programming language, link to existing code, and what you have already tried are very helpful)