Skip to content

Commit

Permalink
add Pkg to targets project
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEnsemble committed Jan 2, 2022
1 parent 60f54fc commit 5eceb90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[targets]
test = ["Test", "Documenter", "Polynomials", "Markdown", "InteractiveUtils"]
test = ["Test", "Documenter", "Polynomials", "Markdown", "InteractiveUtils", "Pkg"]
11 changes: 11 additions & 0 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ function Base.show(io::IO, tf::TransferFunction)
return nothing
end

function Base.show(io::IO, g::ClosedLoopTransferFunction)
println(io, "closed-loop transfer function.
top
-------
1 + g_ol")
println(io, "\n top = ")
show(io, g.top)
println(io, "\n\n g_ol = ")
show(io, g.g_ol)
end

function Base.show(io::IO, pc::PController)
println(io, "P controller")
println(io, "\tcontroller gain Kc = ", pc.Kc)
Expand Down

0 comments on commit 5eceb90

Please sign in to comment.