Skip to content

Random Gain #111

@rishabshah0

Description

@rishabshah0

In Mecanum.java there is a hardcoded doubling of the pathing vectors after all normalization and clamping logic has been performed. This is doubling what the PIDs say to correct for, and it causes a lot of clamping. This should either be in Constants as a gain value (and part of the tuning process) or should be removed.

  • It reduces the linear control range of the PID (e.g., a calculated power of 0.6 becomes 1.2 and clips to 1.0 immediately).
  • This makes small corrections unnecessarily jerky.
// Mecanum.java
truePathingVectors[0] = truePathingVectors[0].times(2.0);
truePathingVectors[1] = truePathingVectors[1].times(2.0);

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