We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Revolute
1 parent faf5163 commit 1393610Copy full SHA for 1393610
1 file changed
src/Mechanical/PlanarMechanics/joints.jl
@@ -27,13 +27,6 @@ A revolute joint
27
@named fixed = Rotational.Fixed()
28
systems = [frame_a, frame_b, fixed]
29
30
- if use_flange
31
- @named flange_a = Rotational.Flange(; phi, tau)
32
- push!(systems, flange_a)
33
- @named support = Rotational.Support()
34
- push!(systems, support)
35
- end
36
-
37
vars = @variables begin
38
phi(t) = phi
39
ω(t) = ω
@@ -57,6 +50,10 @@ A revolute joint
57
50
]
58
51
59
52
if use_flange
53
+ @named flange_a = Rotational.Flange(; phi, tau)
54
+ push!(systems, flange_a)
55
+ @named support = Rotational.Support()
56
+ push!(systems, support)
60
push!(eqs, connect(fixed.flange, support))
61
else
62
# actutation torque
0 commit comments