Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
processes
LabProcesses.jl
Commits
eac09291
Commit
eac09291
authored
Jan 19, 2018
by
Fredrik Bagge Carlson
Browse files
Update ballandbeam.jl
parent
97f22980
Pipeline
#670
failed with stage
in 5 minutes and 43 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/interface_implementations/ballandbeam.jl
View file @
eac09291
...
...
@@ -99,8 +99,8 @@ function control(p::AbstractBeamOrBallAndBeam, u::AbstractArray)
send
(
p
.
control
,
u
[
1
])
end
control
(
p
::
AbstractBeamOrBallAndBeam
,
u
::
Number
)
=
send
(
p
.
control
,
u
)
control
(
p
::
BeamSimulator
,
u
)
=
p
.
s
(
u
)
control
(
p
::
BallAndBeamSimulator
,
u
)
=
error
(
"Not yet implemented"
)
control
(
p
::
BeamSimulator
,
u
::
Number
)
=
p
.
s
(
u
)
control
(
p
::
BallAndBeamSimulator
,
u
::
Number
)
=
error
(
"Not yet implemented"
)
measure
(
p
::
Beam
)
=
read
(
p
.
measure
)
measure
(
p
::
BallAndBeam
)
=
[
read
(
p
.
measure1
),
read
(
p
.
measure2
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment