mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
Merge branch 'empty-function-creation' of https://github.com/Team4388/2023WayOfTheRobot into empty-function-creation
This commit is contained in:
@@ -1,17 +1,23 @@
|
|||||||
public class claw {
|
package frc4388.robot.subsystems;
|
||||||
|
import edu.wpi.first.wpilibj.PWM;
|
||||||
|
|
||||||
|
public class Claw {
|
||||||
|
private PWM m_clawMotor;
|
||||||
|
private boolean m_open = false;
|
||||||
|
|
||||||
// Opens claw
|
// Opens claw
|
||||||
public void funtion openClaw() {
|
public Claw(PWM m_clawMotor) {
|
||||||
|
this.m_clawMotor = m_clawMotor;
|
||||||
|
setClaw(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClaw(boolean open) {
|
||||||
// Open claw
|
// Open claw
|
||||||
|
m_open = open;
|
||||||
|
m_clawMotor.setRaw(open ? 0 : 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Closes claw
|
public boolean isClawOpen() {
|
||||||
public void function closeClaw() {
|
return m_open;
|
||||||
//Close claw
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Rotate wrist
|
|
||||||
public int function rotClaw(int rot) {
|
|
||||||
//Rotate wrist to ROT
|
|
||||||
return newRot;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user