Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Put isFinished of CGDeplSwitch command into Command? #27

Open
LTSENG01 opened this issue Mar 8, 2018 · 0 comments
Open

Put isFinished of CGDeplSwitch command into Command? #27

LTSENG01 opened this issue Mar 8, 2018 · 0 comments
Assignees

Comments

@LTSENG01
Copy link
Contributor

LTSENG01 commented Mar 8, 2018

addSequential(new Command() {
@Override
protected boolean isFinished() {
double max = Elevator.Position.SWITCH.getTarget() + 600;
double min = Elevator.Position.SWITCH.getTarget() - 600;
double current = Elevator.getEncoderPosition();
return current > min && current < max;
}
});

@LTSENG01 LTSENG01 self-assigned this Mar 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant