Skip to content

Commit 5e914ab

Browse files
Fix gravity direction
1 parent 21b97b7 commit 5e914ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mechanical/PlanarMechanics/components.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Body component with mass and inertia
4141
- `m`: [kg] mass of the body
4242
- `j`: [kg.m²] inertia of the body with respect to the origin of `frame` along the z-axis of `frame`
4343
- `r`: [m, m] (optional) Translational position x,y-position
44-
- `gy`: [m/s²] (optional) gravity field acting on the mass in the y-direction, positive value acts in the positive direction defaults to 9.81
44+
- `gy`: [m/s²] (optional) gravity field acting on the mass in the y-direction, positive value acts in the positive direction defaults to -9.807
4545
4646
# States:
4747
@@ -59,7 +59,7 @@ Body component with mass and inertia
5959
6060
- `frame`: 2-dim. Coordinate system
6161
"""
62-
@component function Body(; name, m, j, r = nothing, gy = 9.81)
62+
@component function Body(; name, m, j, r = nothing, gy = -9.807)
6363
@named frame = Frame()
6464
pars = @parameters begin
6565
m = m

0 commit comments

Comments
 (0)