From 56446918437af018dd2d1b0f203746347cc07ca6 Mon Sep 17 00:00:00 2001 From: Drew Williams Date: Mon, 7 Oct 2024 08:13:44 -0400 Subject: [PATCH] only fake note in sim --- src/main/cpp/RobotContainer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/cpp/RobotContainer.cpp b/src/main/cpp/RobotContainer.cpp index 44ad046..459f798 100644 --- a/src/main/cpp/RobotContainer.cpp +++ b/src/main/cpp/RobotContainer.cpp @@ -5,6 +5,7 @@ #include "RobotContainer.h" #include +#include #include #include @@ -31,7 +32,10 @@ void RobotContainer::ConfigureBindings() { }, true, true)); - driverController.Start().WhileTrue(intakeSubsystem.FakeNote()); + // FAKE NOTE INTAKE + if(frc::RobotBase::IsSimulation()) { + driverController.Start().WhileTrue(intakeSubsystem.FakeNote()); + } driverController.LeftTrigger().OnTrue(IntakeNote()); (!driverController.LeftTrigger() && !intakeSubsystem.TouchedNote())