Skip to content

Commit a4fba77

Browse files
import rotational components properly
1 parent 6e2244f commit a4fba77

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

src/Mechanical/PlanarMechanics/PlanarMechanics.jl

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,11 @@ module PlanarMechanics
77
using ModelingToolkit, Symbolics, IfElse
88
using ...Blocks: RealInput, RealOutput
99
import ...@symcheck
10+
import ModelingToolkitStandardLibrary.Mechanical.Rotational
1011

1112
@parameters t
1213
D = Differential(t)
1314

14-
module Rotational
15-
# TODO: figure out how to use Rotational directly
16-
using ModelingToolkit
17-
export Flange, Support
18-
include("../Rotational/utils.jl")
19-
20-
"""
21-
Fixed(;name, phi0 = 0.0)
22-
23-
Flange fixed in housing at a given angle.
24-
25-
# Connectors:
26-
27-
- `flange` [Flange](@ref)
28-
29-
# Parameters:
30-
31-
- `phi0`: [`rad`] Fixed offset angle of housing
32-
"""
33-
@mtkmodel Fixed begin
34-
@components begin
35-
flange = Flange()
36-
end
37-
@parameters begin
38-
phi0 = 0.0, [description = "Fixed offset angle of flange"]
39-
end
40-
@equations begin
41-
flange.phi ~ phi0
42-
end
43-
end
44-
end
45-
4615
export Frame, PartialTwoFrames
4716
include("utils.jl")
4817

0 commit comments

Comments
 (0)