In our district today, we have time off as admin determines what “learning from home” means for our district. Since my wife needs as much bandwidth as possible for her job (They are working from home too), I cannot run BOINC at the moment (will do so tonight).
While I wait, I decided to start working toward understanding trajectories. I am working in the simulator. To start, I am trying to get encoders working, but am struggling. The only example that uses encoders in the sim is the Pathfinder example, but it seems like it was not completely updated for 2020. It fails with the import of Pathfinder (which I did not install, as I write this, I realize, I should do so), but also has the old HAL calls.
So my question…
Looking at the help files, we create an encoder object using an index (one integer).
Yet, when we call the encoder in robot.py, we use two channels (the DI in the Rio for A and B channels of the encoder). How do we resolve the discrepancy between the two?