For khang
This commit is contained in:
parent
0fc58a36e8
commit
2ccea78af4
|
@ -18,7 +18,7 @@ public class Arm {
|
|||
private Slides.Position pos = Slides.Position.DOWN;
|
||||
private PController armController;
|
||||
private double armControllerTarget;
|
||||
private double ARM_KP = 0.001;
|
||||
public static double ARM_KP = 0.01;
|
||||
|
||||
|
||||
public enum Position {
|
||||
|
|
|
@ -21,7 +21,7 @@ public class Intake {
|
|||
}
|
||||
|
||||
public Position previousPosition() {
|
||||
int backOne = (this.ordinal() - 1) % Position.values().length;
|
||||
int backOne =Math.max(0,(this.ordinal() - 1) % Position.values().length);
|
||||
return Position.values()[backOne];
|
||||
}
|
||||
}
|
||||
|
@ -77,6 +77,9 @@ public class Intake {
|
|||
if (pwr >= 0.01) {
|
||||
this.setpos(this.pos);
|
||||
}
|
||||
else {
|
||||
this.setpos(Position.UP);
|
||||
}
|
||||
}
|
||||
|
||||
public double getPower() {
|
||||
|
|
Loading…
Reference in New Issue