Skip to content

Commit 506a4c4

Browse files
committed
add note about parentscope
1 parent 05cdc9d commit 506a4c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/examples/suspension.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ The connection between the wheels and the ground form two kinematic loops togeth
297297
x0 = 0.0,
298298
z0 = 0.0,
299299
der_angles = [0, 0, 0],
300-
iscut = true, # NOTE: Only used since while we have an "upright joint"
300+
iscut = true,
301+
# Note the ParentScope qualifier, without this, the parameters are treated as belonging to the wheel.wheel_joint component instead of the ExcitedWheelAssembly
301302
surface = (x,z)->ParentScope(ParentScope(amplitude))*(sin(2pi*ParentScope(ParentScope(freq))*t)), # Excitation from a time-varying surface profile
302303
)
303304

0 commit comments

Comments
 (0)