OTOSLocalizer fix
This commit is contained in:
@ -64,13 +64,12 @@ public class OTOSLocalizer extends Localizer {
|
|||||||
public OTOSLocalizer(HardwareMap map, Pose setStartPose) {
|
public OTOSLocalizer(HardwareMap map, Pose setStartPose) {
|
||||||
hardwareMap = map;
|
hardwareMap = map;
|
||||||
|
|
||||||
// TODO: replace this with your OTOS port
|
|
||||||
/*
|
/*
|
||||||
TODO: If you want to use the "SparkFunOTOSCorrected" version of OTOS, then replace the
|
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.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 = hardwareMap.get(SparkFunOTOS.class, "sensor_otos");
|
||||||
|
|
||||||
otos.setLinearUnit(DistanceUnit.INCH);
|
otos.setLinearUnit(DistanceUnit.INCH);
|
||||||
|
Reference in New Issue
Block a user