diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/DeadWheelSubassemblyLocalizer.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/DeadWheelSubassemblyLocalizer.java index 74bad51..3d5879b 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/DeadWheelSubassemblyLocalizer.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/DeadWheelSubassemblyLocalizer.java @@ -7,7 +7,9 @@ import org.firstinspires.ftc.teamcode.DriveControls.Localizers.plugins.DeadWheelHeadingLocalizer; import org.firstinspires.ftc.teamcode.DriveControls.Localizers.plugins.DeadWheelVectorPositionLocalizer; import org.firstinspires.ftc.teamcode.Hardwares.Classic; +import org.firstinspires.ftc.teamcode.utils.Annotation.LocalizationPlugin; +@LocalizationPlugin public class DeadWheelSubassemblyLocalizer extends SubassemblyLocalizer implements Localizer { public DeadWheelSubassemblyLocalizer(Classic classic) { super(new DeadWheelVectorPositionLocalizer(classic), new DeadWheelHeadingLocalizer(classic)); diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/IMUSubassemblyLocalizer.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/IMUSubassemblyLocalizer.java index 58ce56c..20a8195 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/IMUSubassemblyLocalizer.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/IMUSubassemblyLocalizer.java @@ -6,7 +6,9 @@ import org.firstinspires.ftc.teamcode.DriveControls.Localizers.definition.Localizer; import org.firstinspires.ftc.teamcode.DriveControls.Localizers.definition.SubassemblyLocalizer; import org.firstinspires.ftc.teamcode.Hardwares.Classic; +import org.firstinspires.ftc.teamcode.utils.Annotation.LocalizationPlugin; +@LocalizationPlugin public class IMUSubassemblyLocalizer extends SubassemblyLocalizer implements Localizer { public IMUSubassemblyLocalizer(Classic classic) { super(new ImuLocalizer(classic)); diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/SimpleSubassemblyLocalizer.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/SimpleSubassemblyLocalizer.java index 4d68e3d..64c78ef 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/SimpleSubassemblyLocalizer.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveControls/Localizers/SimpleSubassemblyLocalizer.java @@ -7,7 +7,9 @@ import org.firstinspires.ftc.teamcode.DriveControls.Localizers.plugins.DeadWheelHeadingLocalizer; import org.firstinspires.ftc.teamcode.DriveControls.Localizers.plugins.ImuVectorPositionLocalizer; import org.firstinspires.ftc.teamcode.Hardwares.Classic; +import org.firstinspires.ftc.teamcode.utils.Annotation.LocalizationPlugin; +@LocalizationPlugin public class SimpleSubassemblyLocalizer extends SubassemblyLocalizer implements Localizer { public SimpleSubassemblyLocalizer(Classic classic) { super(new ImuVectorPositionLocalizer(classic),new DeadWheelHeadingLocalizer(classic)); diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Annotation/LocalizationPlugin.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Annotation/LocalizationPlugin.java new file mode 100644 index 0000000..a9f7edc --- /dev/null +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Annotation/LocalizationPlugin.java @@ -0,0 +1,14 @@ +package org.firstinspires.ftc.teamcode.utils.Annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Documented +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +//@SuppressWarnings(value={"unused"}) +public @interface LocalizationPlugin { +}