We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3f194 commit 2caa194Copy full SHA for 2caa194
src/main/java/frc/team2767/deepspace/subsystem/IntakeSubsystem.java
@@ -153,7 +153,7 @@ public void shoulderOpenLoop(double setpoint) {
153
public boolean zero() {
154
boolean didZero = false;
155
if (shoulder.getSensorCollection().isRevLimitSwitchClosed()) {
156
- int absPos = shoulder.getSensorCollection().getPulseWidthPosition() % 0xFFF;
+ int absPos = shoulder.getSensorCollection().getPulseWidthPosition() & 0xFFF;
157
int offset = absPos - kAbsoluteZero;
158
logger.debug(
159
"pulse = {} abs = {} rel = {}",
0 commit comments