Skip to content

Driving Velocity Feed Forward is Too High #41

Description

@beardedone55

The following change introduced a bug that makes the driving velocity feed forward 12 times higher than it should be: b5b9d36

With this change, the actual speed can be up to 12 times higher than the commanded speed. As a result, the smallest input will cause the robot to drive at full speed, and it is impossible to control.

The code is in Configs.java. It used to look like this:

double drivingVelocityFeedForward = 1 / ModuleConstants.kDriveWheelFreeSpeedRps;

but now it does this:

  double nominalVoltage = 12.0;
  double drivingVelocityFeedForward = nominalVoltage / ModuleConstants.kDriveWheelFreeSpeedRps;

When we change it back to the way it was, the robot behaves as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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