mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Fix acceleration getter for DCMotorSim (#7449)
This commit is contained in:
committed by
GitHub
parent
0941251375
commit
b91864a5ec
@@ -52,7 +52,7 @@ units::radians_per_second_t DCMotorSim::GetAngularVelocity() const {
|
||||
|
||||
units::radians_per_second_squared_t DCMotorSim::GetAngularAcceleration() const {
|
||||
return units::radians_per_second_squared_t{
|
||||
(m_plant.A() * m_x + m_plant.B() * m_u)(0, 0)};
|
||||
(m_plant.A() * m_x + m_plant.B() * m_u)(1, 0)};
|
||||
}
|
||||
|
||||
units::newton_meter_t DCMotorSim::GetTorque() const {
|
||||
|
||||
Reference in New Issue
Block a user