wpilibsuite/allwpilib

Add function to get next position-velocity pair from ProfiledPIDController

Open

#5,236 opened on Mar 24, 2023

View on GitHub
 (7 comments) (0 reactions) (0 assignees)C++ (714 forks)auto 404
component: wpimatheffort: 1good first issuetype: fix

Repository metrics

Stars
 (1,281 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe. The feedforward calculate() overloads that take nextVelocity are more accurate for discrete systems. ProfiledPIDController doesn't provide a way to get it though.

Describe the solution you'd like Add a function that returns the next setpoint pair.

Contributor guide