Skip to content

[wpimath] All non-deprecated SimpleMotorFeedforward calculate methods require units #7280

Open
@jwbonner

Description

@jwbonner

I haven't been closely following all of the changes to SimpleMotorFeedforward, but it seems like the current set of calculate methods is a bit odd in Java. Here's are the current options:

  • calculate(velocity, acceleration) (non-units, deprecated)
  • calculate(velocity) (non-units, deprecated)
  • calculate(velocity) (units, non-deprecated)
  • calculate(currentVelocity, nextVelocity) (units, non-deprecated)

I understand the move from accepting acceleration values to two velocity values, but it looks like the parity between units and non-units methods was lost. It seems like there should be a calculate(currentVelocity, nextVelocity) method that doesn't use units and the calculate(velocity) method should wrap that new method and be un-deprecated (the same way that the the units version of calculate(velocity) wraps the units version of calculate(currentVelocity, nextVelocity)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions