-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update fake PWM ports to increment their values by 10 #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like with an expansion board there can be up to 20 regular PWM channels. See:
It looks like |
Grumble. Can we use a SimDeviceSim instead? |
I'll look into it. |
This is supplemented by DeepBlueRobotics/DeepBlueSim#10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just the one suggestion. If that's all you change, no further approval needed.
encoder = new Encoder(2 * id, 2 * id + 1); | ||
encoderSim = EncoderSim.createForIndex(encodersCreated); | ||
encodersCreated++; | ||
device = SimDevice.create("EncoderSim_SparkMax", id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the other devices don't have "Sim" in their names, I recommend using "CANEncoder_SparkMax".
Side note: Resist the temptation to just use "CANEncoder". My understanding it that technically speaking, two different types of devices can be configure to have the same ID and they will not interfere with each other. Only the combination of device type and CAN ID needs to be unique. So including "_SparkMax" allows use to support that.
Fixes #4.