From ce3ae6c03b47a96e3419834dfe9685a7ff913ba0 Mon Sep 17 00:00:00 2001 From: Anyi Lin Date: Sun, 29 Sep 2024 00:08:57 -0400 Subject: [PATCH] OTOSLocalizer fix --- .../pedroPathing/localization/localizers/OTOSLocalizer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/localizers/OTOSLocalizer.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/localizers/OTOSLocalizer.java index cdacd52..6a0bb38 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/localizers/OTOSLocalizer.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/localizers/OTOSLocalizer.java @@ -64,13 +64,12 @@ public class OTOSLocalizer extends Localizer { public OTOSLocalizer(HardwareMap map, Pose setStartPose) { hardwareMap = map; - // TODO: replace this with your OTOS port /* TODO: If you want to use the "SparkFunOTOSCorrected" version of OTOS, then replace the 'SparkFunOTOS.class' below with 'SparkFunOTOSCorrected.class' and set the OTOS as a - "SparkFunOTOS Corrected" in your robot confg + "SparkFunOTOS Corrected" in your robot config */ - SparkFunOTOS + // TODO: replace this with your OTOS port otos = hardwareMap.get(SparkFunOTOS.class, "sensor_otos"); otos.setLinearUnit(DistanceUnit.INCH);