Skip to content

Commit

Permalink
Merge pull request #42 from bearbotics2358/LED_Commands
Browse files Browse the repository at this point in the history
Updated Robot.cpp for LED NoteOnBoard
  • Loading branch information
44RAV authored Mar 26, 2024
2 parents 4af5ca3 + 45f8048 commit 689e5ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "Collector.h"
#include "BeamBreak.h"
#include "SwerveDrive.h"
#include "LED.h"
#include <frc/GenericHID.h>
#include "LimelightHelpers.h"

Expand Down Expand Up @@ -104,11 +105,11 @@ void Robot::RobotPeriodic() {
a_NoteHandler.setShooterAngleToDefault();


// if(a_NoteHandler.beamBroken()){
// a_LED.SetNoteOnBoard();
// } else {
// a_LED.SetMSGIdle();
// }
if(a_NoteHandler.beamBroken()){
a_LED.SetNoteOnBoard();
} else {
a_LED.SetMSGIdle();
}

a_NoteHandler.updateDashboard();

Expand Down

0 comments on commit 689e5ad

Please sign in to comment.