Fix comment typo in getimpedance.
PiperOrigin-RevId: 777997980 Change-Id: I0fe87196360e6771db10f4d9b08d43448ea5f54e
This commit is contained in:
committed by
Copybara-Service
parent
5c1f1f9dba
commit
9eb0745968
@@ -1390,7 +1390,7 @@ static void getimpedance(const mjtNum* solimp, mjtNum pos, mjtNum margin,
|
||||
yP = solimp[4] * a*power(x, solimp[4]-1);
|
||||
}
|
||||
|
||||
// y(x) = 1-b*(1-x)^p is x>midpoint
|
||||
// y(x) = 1-b*(1-x)^p if x>midpoint
|
||||
else {
|
||||
mjtNum b = 1/power(1-solimp[3], solimp[4]-1);
|
||||
y = 1-b*power(1-x, solimp[4]);
|
||||
|
||||
Reference in New Issue
Block a user