Skip to content

Commit

Permalink
only fake note in sim
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Oct 7, 2024
1 parent 60709dc commit 5644691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/cpp/RobotContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "RobotContainer.h"

#include <frc/MathUtil.h>
#include <frc/RobotBase.h>
#include <frc2/command/Commands.h>
#include <str/DriverstationUtils.h>

Expand All @@ -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())
Expand Down

0 comments on commit 5644691

Please sign in to comment.