Skip to content

Commit

Permalink
add a way to reset all sim SparkMAXes
Browse files Browse the repository at this point in the history
  • Loading branch information
MEFThunders7035 committed Feb 26, 2024
1 parent 52fc22e commit 05f26db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/utils/sim_utils/SparkMAXSimAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ public static CANSparkMax getSparkMAX(int deviceID) {
}
return sparkMaxes.get(deviceID);
}

public static void resetData() {
sparkMaxes.clear();
}
}

0 comments on commit 05f26db

Please sign in to comment.