-
Notifications
You must be signed in to change notification settings - Fork 0
Elevator #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Elevator #8
Changes from 10 commits
d847065
7656244
fc567ca
e71b100
04b677b
c646a39
41c4c99
5e62e3f
2934d0d
aa41d34
3108fd5
cf6b832
5557c50
4920d34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| import org.techvalleyhigh.frc5881.deepspace.robot.Robot; | ||
|
|
||
| /** | ||
| * Changes the elevator height | ||
| * Changes the lifts mode accordingly to the expected game piece to be receiving | ||
| */ | ||
| public class ElevatorFlip extends Command { | ||
|
|
||
|
|
@@ -22,14 +22,12 @@ protected void initialize() { | |
|
|
||
| @Override | ||
| protected void execute() { | ||
| if(!Robot.elevator.isFired){ | ||
| Robot.elevator.elevatorFlip(); | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be put back -- sort of. (Not sure what You need to put a boolean in the command to track to see if the command has already looped once through execute, (Default it to false, if false call
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be pulled out, so this is ok... but what is |
||
| Robot.elevator.elevatorFlip(); | ||
| } | ||
|
|
||
| @Override | ||
| protected boolean isFinished() { | ||
| return Robot.elevator.isSetpointReached(); | ||
| return Robot.elevator.isElevatorSetpointReached(); | ||
| } | ||
|
|
||
| /** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need comments as to what they are for....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed