OTOSLocalizer fix

This commit is contained in:
Anyi Lin
2024-09-29 00:08:57 -04:00
parent 6e82dc98df
commit ce3ae6c03b

View File

@ -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);