-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from CyberCoyotes/noteSubsystem-01-24
Note subsystem 01 24
- Loading branch information
Showing
2 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,39 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.NoteSensorSubsystem; | ||
|
||
/* A simple but often used command to get a loaded (true) or nonloaded (false) status of the time of flight sensor pointed at the 'note' */ | ||
public class GetNoteStatus extends Command { | ||
|
||
} | ||
/* */ | ||
|
||
private final NoteSensorSubsystem m_noteSensorSub; | ||
|
||
public GetNoteStatus(NoteSensorSubsystem noteSensorSub) { | ||
this.m_noteSensorSub = noteSensorSub; | ||
addRequirements(noteSensorSub); | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
// Code to run when the command is first initialized | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
// Code to run repeatedly while the command is scheduled to run | ||
m_noteSensorSub.isNoteLoaded(); | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
// Code to run when the command ends or is interrupted | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
// Return true when the command should end | ||
return false; | ||
} | ||
|
||
} // end of class GetNoteStatus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters