Hello, I’m currently trying to add encoders into autonomous so I can have the robot stop after it goes a certain distance. I know that I need to use encoders for this, and I know that our Spark MAXs already have encoders built in. However, I have no idea how to access these encoders in either the code or wiring. While I’m not entirely sure if the wiring needs to be changed, I’ll keep to the programming side of it first;
how do I read the encoder values for our spark MAX drive train in LabVIEW?
(I tried looking at the encoder example code in Labview and noticed that it used DIO inputs, however we don’t have any DIOs plugged in, which is where my confusion with the wiring comes in- our current drive train uses a CAN loop, not DIOs)