Fix height adjust with intake
This commit is contained in:
parent
b308fcd59a
commit
0fc58a36e8
|
@ -74,6 +74,9 @@ public class Intake {
|
||||||
|
|
||||||
public void setDcMotor(double pwr) {
|
public void setDcMotor(double pwr) {
|
||||||
dcMotor.setPower(pwr);
|
dcMotor.setPower(pwr);
|
||||||
|
if (pwr >= 0.01) {
|
||||||
|
this.setpos(this.pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getPower() {
|
public double getPower() {
|
||||||
|
|
Loading…
Reference in New Issue