Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
6-BennyLi-9 committed Sep 11, 2024
1 parent 0529359 commit 126724b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.firstinspires.ftc.teamcode.Params;
import org.firstinspires.ftc.teamcode.Utils.Annotations.LocalizationPlugin;

@Deprecated
@LocalizationPlugin
public final class DeadWheelHeadingLocalizer implements HeadingLocalizerPlugin {
public Sensors sensors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.firstinspires.ftc.teamcode.DriveControls.Localizers.LocalizerDefinition.PositionLocalizerPlugin;
import org.firstinspires.ftc.teamcode.Hardwares.Classic;
import org.firstinspires.ftc.teamcode.Utils.Annotations.LocalizationPlugin;

@Deprecated
@LocalizationPlugin
public class DeadWheelLocalizer implements PositionLocalizerPlugin {
public DeadWheelVectorPositionLocalizer vectorLocalizer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.firstinspires.ftc.teamcode.Hardwares.Classic;
import org.firstinspires.ftc.teamcode.Hardwares.basic.Sensors;
import org.firstinspires.ftc.teamcode.Utils.Annotations.LocalizationPlugin;

@Deprecated
@LocalizationPlugin
public final class DeadWheelVectorPositionLocalizer implements VectorPositionLocalizerPlugin {
public Sensors sensors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.firstinspires.ftc.teamcode.Hardwares.Classic;
import org.firstinspires.ftc.teamcode.Hardwares.basic.Sensors;
import org.firstinspires.ftc.teamcode.Utils.Annotations.LocalizationPlugin;

@Deprecated
@LocalizationPlugin
public class ImuHeadingLocalizer implements HeadingLocalizerPlugin {
public double HeadingDeg;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.firstinspires.ftc.teamcode.Utils.Complex;

@LocalizationPlugin
@Deprecated
public class ImuLocalizer implements PositionLocalizerPlugin {
public Sensors sensors;
public Complex error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.firstinspires.ftc.teamcode.DriveControls.Localizers.LocalizerDefinition.VectorPositionLocalizerPlugin;
import org.firstinspires.ftc.teamcode.Hardwares.Classic;
import org.firstinspires.ftc.teamcode.Utils.Annotations.LocalizationPlugin;

@Deprecated
@LocalizationPlugin
public final class ImuVectorPositionLocalizer extends ImuLocalizer implements VectorPositionLocalizerPlugin {
public ImuVectorPositionLocalizer(Classic classic){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

import com.acmerobotics.roadrunner.Pose2d;

import org.firstinspires.ftc.teamcode.Utils.Annotations.UtilFunctions;

public interface Odometry {
/**
* @param relTheta 默认0°为X轴正方向
*/
@UtilFunctions
void ProcessDeltaRelPose(double relX,double relY,double relTheta);
@UtilFunctions
default void RegisterToDashBoard(){}
@UtilFunctions
Pose2d getCurrentPose();
}

0 comments on commit 126724b

Please sign in to comment.