Skip to content

Fix incorrect unit supplied to Rotation2d #34

Open
@ryanhubbs

Description

@ryanhubbs

m_desiredState.angle = new Rotation2d(m_turningEncoder.getPosition());

should be
m_desiredState.angle = Rotation2d.fromDegrees(m_turningEncoder.getPosition());

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