Skip to content

make sure your config has a Pinpoint device with this #15

Description

@github-actions

see https://ftc\-docs\.firstinspires\.org/en/latest/hardware\_and\_software\_configuration/configuring/index\.html

// TODO: make sure your config has a Pinpoint device with this
// see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html

    private Pose2d txPinpointRobot = new Pose2d(0, 0, 0);

    public PinpointLocalizer(HardwareMap hardwareMap, Pose2d initialPose) {
        // TODO: make sure your config has a Pinpoint device with this
        //   see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html
        driver = hardwareMap.get(GoBildaPinpointDriver.class, "odo");

        driver.setEncoderResolution(PARAMS.res, DistanceUnit.MM);
        driver.setOffsets(PARAMS.xOffset, PARAMS.yOffset, DistanceUnit.MM);

        // TODO: reverse encoder directions
        initialParDirection = GoBildaPinpointDriver.EncoderDirection.FORWARD;
        initialPerpDirection = GoBildaPinpointDriver.EncoderDirection.FORWARD;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions