Skip to content

Commit 4933db4

Browse files
committed
Add joint motors for revolute and prismatic joints
clippy fixes
1 parent 762e041 commit 4933db4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/dynamics/joints/tests.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ fn prismatic_motor_respects_limits() {
553553
);
554554
}
555555

556-
/// Tests that ForceBased motor model works for revolute joints.
556+
/// Tests that `ForceBased` motor model works for revolute joints.
557557
///
558558
/// This is the physically accurate motor model that takes mass into account.
559559
#[test]
@@ -638,9 +638,9 @@ fn revolute_motor_force_based() {
638638
}
639639
}
640640

641-
/// Tests that the default SpringDamper motor model works.
641+
/// Tests that the default `SpringDamper` motor model works.
642642
///
643-
/// SpringDamper is timestep-independent and uses frequency/damping_ratio.
643+
/// `SpringDamper` is timestep-independent and uses `frequency`/`damping_ratio`.
644644
#[test]
645645
fn revolute_motor_spring_damper() {
646646
let mut app = create_app();
@@ -753,7 +753,6 @@ fn revolute_motor_combined_position_velocity() {
753753
stiffness: 30.0,
754754
damping: 15.0,
755755
},
756-
..default()
757756
}),
758757
);
759758

@@ -828,7 +827,6 @@ fn prismatic_motor_combined_position_velocity() {
828827
stiffness: 20.0,
829828
damping: 10.0,
830829
},
831-
..default()
832830
}),
833831
);
834832

0 commit comments

Comments
 (0)