@@ -0,0 +1,287 @@
+// Latches a boolean%0Apackage com.team254.lib.util;%0A%0A/**%0A *%0A * @author richard@team254.com (Richard Lin)%0A */%0Apublic class Latch %7B%0A  private boolean lastVal;%0A%0A  public boolean update(boolean newVal) %7B%0A    boolean result = newVal && !lastVal;%0A    lastVal = newVal;%0A    return result;%0A  %7D%0A%7D%0A

Add Latch class