mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Clean up arm and elevator feedforward APIs (#7595)
This commit is contained in:
@@ -110,8 +110,7 @@ public class Elevator implements AutoCloseable {
|
||||
|
||||
// With the setpoint value we run PID control like normal
|
||||
double pidOutput = m_pidController.calculate(m_encoder.getDistance(), m_setpoint.position);
|
||||
double feedforwardOutput =
|
||||
m_feedforward.calculateWithVelocities(m_setpoint.velocity, next.velocity);
|
||||
double feedforwardOutput = m_feedforward.calculate(m_setpoint.velocity, next.velocity);
|
||||
|
||||
m_motor.setVoltage(pidOutput + feedforwardOutput);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user