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.
2 parents 0d7a6ea + 7695318 commit 28548b7Copy full SHA for 28548b7
src/main/java/org/carlmontrobotics/subsystems/Arm.java
@@ -464,6 +464,9 @@ public void setDefaultCommand(TeleopArm teleopArm, Object object) {
464
@Override
465
public void simulationPeriodic() {
466
// Fake goaling to the goal instantaneously
467
- rotationsSim.set((goalState.position + armMasterEncoder.getZeroOffset()) / armMasterEncoder.getPositionConversionFactor());
+ if (rotationsSim != null) {
468
+ rotationsSim.set((goalState.position + armMasterEncoder.getZeroOffset())
469
+ / armMasterEncoder.getPositionConversionFactor());
470
+ }
471
}
472
0 commit comments