Skip to content

Commit

Permalink
Fix FakeRobot test case for DigitalInput to use boolean instead of st…
Browse files Browse the repository at this point in the history
…ring values (#183)
  • Loading branch information
chauser authored Sep 10, 2023
1 parent c6e7af7 commit aeb4f9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static void main(String[] args) throws IOException {
STATUS.putString("Robot", "Testing");
wPotentiometer.putNumber("Value", 2.6);
ePotentiometer.putNumber("Value", -11.6872);
tSwitch.putString("Value", "Off");
tSwitch.putBoolean("Value", false);

ePID.putNumber("p", 0.5);
ePID.putNumber("i", 0.5);
Expand All @@ -87,7 +87,7 @@ public void run() {
tPotentiometer.putNumber("Value", (Math.random()-.5) * 24);
tGyro.putNumber("Value", Math.random() * 360);
tAccel.putNumber("Value", (Math.random()-.5)*8);
tSwitch.putString("Value", Math.random() < 0.5 ? "On" : "Off");
tSwitch.putBoolean("Value", Math.random() < 0.5 ? true : false);
tEncoder1.putNumber("Speed", Math.random() * 20);
tEncoder1.putNumber("Distance", Math.random() * 10);
tEncoder1.putNumber("Distance per Tick", Math.random());
Expand Down

0 comments on commit aeb4f9c

Please sign in to comment.