Skip to content

setOffset() and setPosition() don't set heading correctly #1

@sfe-SparkFro

Description

@sfe-SparkFro

The root problem is that poseToRegs() wraps the register value from -pi to pi:

short rawH = (short) _angularUnit.toRadians(pose.h * hToRaw);

Should be (_angularUnit.toRadians(pose.h) * hToRaw)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions