Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/abstractingndparenting' into abs…
Browse files Browse the repository at this point in the history
…tractingndparenting
  • Loading branch information
powerfulHermes committed Jan 18, 2024
2 parents a164e3a + 976e831 commit 5a4505e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.firstinspires.ftc.teamcode.opmode;

import android.util.Log;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
Expand All @@ -11,6 +13,7 @@
import org.firstinspires.ftc.teamcode.util.Toggle;

import java.io.File;
import java.util.Objects;

@TeleOp

Expand Down Expand Up @@ -65,6 +68,7 @@ public void runOpMode() throws InterruptedException {

Configuration config = Configurator.load();

purpleToggle.state = config.placePixel;

// Toggle innerParkToggle = new Toggle();
// Toggle outerParkToggle = new Toggle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ public boolean update(boolean buttonState) {
if (buttonState) {
if (!lastState) {
lastState = true;
return true;
}
} else {
lastState = false;
}
return false;
return lastState;
}
}

0 comments on commit 5a4505e

Please sign in to comment.