Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 434360b

Browse files
committed
quick lift fixes
set default lift max height reset lift enc in autoInit
1 parent 833cdda commit 434360b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public void disabledPeriodic() {
206206
@Override
207207
public void autonomousInit() {
208208
dt.resetAHRS();
209+
lift.resetEnc();
209210
AutoUtils.state = new State(0, 0, 0);
210211
Scheduler.getInstance().add(new ShiftLowGear());
211212
Scheduler.getInstance().add(new CloseIntake());

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/Lift.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ public Lift() {
2727
super("Lift", Robot.getConst("LiftkP", 0.1), Robot.getConst("LiftkI", 0), Robot.getConst("LiftkD", 0),
2828
Robot.getConst("LiftkF", 0.1));
2929

30-
/**
31-
* @TODO figure out Lift Max Height
32-
*/
33-
setInputRange(0, Robot.getConst("Lift Max Height", 0));
30+
setInputRange(0, Robot.getConst("Lift Max Height", 24));
3431
setOutputRange(-1, 1);
3532

3633
NUM_STAGES = (int) Robot.getConst("Lift stages", 1);

0 commit comments

Comments
 (0)