mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Make SimpleMotorFeedforward only support discrete feedforward (#6647)
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5f261a88af
commit
30c7632ab8
@@ -40,8 +40,7 @@ class Robot : public frc::TimedRobot {
|
||||
m_motor.SetSetpoint(
|
||||
ExampleSmartMotorController::PIDMode::kPosition,
|
||||
m_setpoint.position.value(),
|
||||
m_feedforward.Calculate(m_setpoint.velocity, next.velocity, kDt) /
|
||||
12_V);
|
||||
m_feedforward.Calculate(m_setpoint.velocity, next.velocity) / 12_V);
|
||||
|
||||
m_setpoint = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user