Mapping Motors

I realize this is a small question but I’m not able to test his out on our electrical board right now. I’m using the command based robot from BradAMiller’s videos (Which were a huge help to a new programmer like me) and we are using two digital modules. There’s an analog module in the first slot so the first digital module is in the second slot, so should I have
cannonMotorModule = 1
because it’s the first digital module
cannonMotorModule = 2
because it’s in the second slot of the cRIO?

It’s by the module type, not the cRIO slot.
First of that type or second of that type.