mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] Fix MOI calculation error in SingleJointedArmSim (#4968)
Previous calculation derivation mixed up length and distance to CG.
This commit is contained in:
@@ -14,14 +14,7 @@ import org.junit.jupiter.api.Test;
|
||||
class SingleJointedArmSimTest {
|
||||
SingleJointedArmSim m_sim =
|
||||
new SingleJointedArmSim(
|
||||
DCMotor.getVex775Pro(2),
|
||||
100,
|
||||
3.0,
|
||||
Units.inchesToMeters(19.0 / 2.0),
|
||||
-Math.PI,
|
||||
0.0,
|
||||
10.0 / 2.2,
|
||||
true);
|
||||
DCMotor.getVex775Pro(2), 300, 3.0, Units.inchesToMeters(30.0), -Math.PI, 0.0, true);
|
||||
|
||||
@Test
|
||||
void testArmDisabled() {
|
||||
|
||||
Reference in New Issue
Block a user