From 0399d36bd3c20eeb59955ccf03afdf3076f9a7aa Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Mon, 4 Apr 2022 00:28:03 -0700 Subject: [PATCH] Support simulating cargo detector --- simgui-window.json | 2 +- .../superstructure/cargo_detector/CargoDetectorIOIR.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/simgui-window.json b/simgui-window.json index 5090cfd..3192e5b 100644 --- a/simgui-window.json +++ b/simgui-window.json @@ -39,7 +39,7 @@ "###DIO": { "Collapsed": "0", "Pos": "1677,877", - "Size": "195,86" + "Size": "124,54" }, "###FMS": { "Collapsed": "0", diff --git a/src/main/java/frc/robot/superstructure/cargo_detector/CargoDetectorIOIR.java b/src/main/java/frc/robot/superstructure/cargo_detector/CargoDetectorIOIR.java index 916bfc0..22776a6 100644 --- a/src/main/java/frc/robot/superstructure/cargo_detector/CargoDetectorIOIR.java +++ b/src/main/java/frc/robot/superstructure/cargo_detector/CargoDetectorIOIR.java @@ -19,6 +19,10 @@ public CargoDetectorIOIR() { // TODO: Wire this sensor rightSensor = new DigitalInput(25); break; + case SIM_BOT: + leftSensor = new DigitalInput(9); + rightSensor = new DigitalInput(8); + break; default: throw new UnsupportedSubsystemException(this); }