Claw, Gantry, and Lift

This commit is contained in:
Thomas 2023-11-28 17:39:07 -06:00
parent 79a8892b70
commit cd9bf1f3f0
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
package org.firstinspires.ftc.teamcode.hardware;
import static org.firstinspires.ftc.teamcode.hardware.RobotConfig.DRONE_ROTATION_UP;
import static org.firstinspires.ftc.teamcode.hardware.RobotConfig.DRONE_ROTATION_UP_NAME;
import com.qualcomm.robotcore.hardware.HardwareMap;
@ -8,14 +7,14 @@ import com.qualcomm.robotcore.hardware.Servo;
public class Drone {
private Servo droneUpServo;
private Servo droneLaunchServo;
public Drone(HardwareMap hardwareMap) {
this.droneUpServo = hardwareMap.get(Servo.class, DRONE_ROTATION_UP_NAME);
this.droneLaunchServo = hardwareMap.get(Servo.class, DRONE_ROTATION_UP_NAME);
}
public void raise() {
this.droneUpServo.setPosition(0.2);
this.droneLaunchServo.setPosition(0.2);
}
}