Fixed issues, ready to test

This commit is contained in:
Eric Ratliff
2026-02-06 10:09:08 -06:00
parent 32323e7abc
commit 8d26c4ea1f
2 changed files with 10 additions and 7 deletions

View File

@@ -52,7 +52,10 @@ tasks.register<Copy>("deployToSDK") {
val sdkDir = "/home/eric/.weevil/ftc-sdk"
from("src/main/java") {
include("robot/**/*.java")
include("org/firstinspires/ftc/teamcode/**/*.java")
exclude("**/mock/MockCRServo.java")
exclude("**/mock/MockDCMotor.java")
exclude("**/mock/MockPotentiometer.java")
}
into(layout.projectDirectory.dir("$sdkDir/TeamCode/src/main/java"))

View File

@@ -7,11 +7,11 @@ import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.AnalogInput;
import org.firstinspires.ftc.teamcode.subsystems.chute.Chute;
import org.firstinspires.ftc.teamcode.subsystems.chute.FtcCRServo;
import org.firstinspires.ftc.teamcode.subsystems.chute.FtcDCMotor;
import org.firstinspires.ftc.teamcode.subsystems.chute.FtcPotentiometer;
import org.firstinspires.ftc.teamcode.hardware.FtcCRServo;
import org.firstinspires.ftc.teamcode.hardware.FtcDCMotor;
import org.firstinspires.ftc.teamcode.hardware.FtcPotentiometer;
import org.firstinspires.ftc.teamcode.subsystems.chute.ChuteController;
import org.firstinspires.ftc.teamcode.subsystems.chute.MockMotor;
import org.firstinspires.ftc.teamcode.mock.MockMotor;
/**
* Example OpMode demonstrating chute control with real hardware.
@@ -48,10 +48,10 @@ public class ChuteOpMode extends LinearOpMode {
// Create motor adapter — either DcMotor or CRServo
MockMotor motor;
if (USE_SERVO) {
CRServo chuteServo = hardwareMap.get(CRServo.class, "chute_servo");
FtcCRServo chuteServo = hardwareMap.get(CRServo.class, "chute_servo");
motor = new FtcCRServo(chuteServo);
} else {
DcMotor chuteMotor = hardwareMap.get(DcMotor.class, "chute_motor");
FtcDCMotor chuteMotor = hardwareMap.get(DcMotor.class, "chute_motor");
motor = new FtcDCMotor(chuteMotor);
}