Skip to content

Commit 9eb0745

Browse files
thowellcopybara-github
authored andcommitted
Fix comment typo in getimpedance.
PiperOrigin-RevId: 777997980 Change-Id: I0fe87196360e6771db10f4d9b08d43448ea5f54e
1 parent 5c1f1f9 commit 9eb0745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/engine_core_constraint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ static void getimpedance(const mjtNum* solimp, mjtNum pos, mjtNum margin,
13901390
yP = solimp[4] * a*power(x, solimp[4]-1);
13911391
}
13921392

1393-
// y(x) = 1-b*(1-x)^p is x>midpoint
1393+
// y(x) = 1-b*(1-x)^p if x>midpoint
13941394
else {
13951395
mjtNum b = 1/power(1-solimp[3], solimp[4]-1);
13961396
y = 1-b*power(1-x, solimp[4]);

0 commit comments

Comments
 (0)