Skip to content

Radians normalize issue #1464

Open
Open
@edibucura

Description

@edibucura

There is a known bug going around the FTC scene at the moment related to the normalization of radians in the SDK.
This was noticed because the Gobilda Pinpoint driver uses the built-in Pose2D to save the pose of the robot. When ESD happens the bytes that are being read might suffer from interference, sometimes making the heading close to infinite.
At the moment the angle normalize function uses a while loop which substracts 2PI continuously. When a very big number is fed into that function the opmode is stuck in that loop for some seconds.
org.firstinspires.ftc.robotcore.external.navigation.AngleUnit.normalizeRadians is the function with the issue

Metadata

Metadata

Assignees

No one assigned

    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