Skip to content

Commit a7c7e6a

Browse files
authored
Merge pull request #959 from JuliaControl/lessdeps
remove some dependencies
2 parents a5c92ef + ed4e3ae commit a7c7e6a

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ P = K/(s*((J*s + b)*(L*s + R) + K^2))
7373
#Continuous-time transfer function model
7474

7575
# Create an array of closed loop systems for different values of Kp
76-
CLs = TransferFunction[kp*P/(1 + kp*P) for kp = [1, 5, 15]];
76+
CLs = [kp*P/(1 + kp*P) for kp [1, 5, 15]];
7777

7878
# Plot the step response of the controllers
7979
# Any keyword arguments supported in Plots.jl can be supplied

lib/ControlSystemsBase/Project.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ version = "1.13.2"
77
[deps]
88
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
99
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
10-
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
11-
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
1210
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1311
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1412
MatrixEquations = "99c1a7ee-ab34-5fd5-8076-27c950a045f4"
@@ -18,7 +16,6 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1816
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1917
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2018
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
21-
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2219
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
2320
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
2421

@@ -34,8 +31,6 @@ Aqua = "0.5"
3431
DSP = "0.6.1, 0.7, 0.8"
3532
ForwardDiff = "0.10"
3633
ImplicitDifferentiation = "0.4.2"
37-
IterTools = "1.0"
38-
LaTeXStrings = "1.0"
3934
LinearAlgebra = "<0.0.1, 1"
4035
MacroTools = "0.5"
4136
MatrixEquations = "1, 2.1"
@@ -45,7 +40,6 @@ PrecompileTools = "1"
4540
Printf = "<0.0.1, 1"
4641
Random = "<0.0.1, 1"
4742
RecipesBase = "1"
48-
SparseArrays = "<0.0.1, 1"
4943
StaticArraysCore = "1"
5044
UUIDs = "<0.0.1, 1"
5145
julia = "1.6"
@@ -58,8 +52,9 @@ FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
5852
GR = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"
5953
ImplicitDifferentiation = "57b37032-215b-411a-8a7c-41a003a55207"
6054
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
55+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
6156
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
6257
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6358

6459
[targets]
65-
test = ["Test", "Aqua", "ComponentArrays", "Documenter", "FiniteDifferences", "ImplicitDifferentiation", "GR", "Plots", "StaticArrays"]
60+
test = ["Test", "Aqua", "ComponentArrays", "Documenter", "FiniteDifferences", "ImplicitDifferentiation", "GR", "Plots", "SparseArrays", "StaticArrays"]

lib/ControlSystemsBase/src/ControlSystemsBase.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ export LTISystem,
126126
add_output
127127

128128

129-
# QUESTION: are these used? LaTeXStrings, Requires, IterTools
130-
using RecipesBase, LaTeXStrings, LinearAlgebra
129+
using RecipesBase, LinearAlgebra
131130
import Polynomials
132131
import Polynomials: Polynomial, coeffs
133132
import Base: +, -, *, /, (==), (!=), isapprox, convert, promote_op

lib/ControlSystemsBase/src/pid_design.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function pidplots(P::LTISystem, args...;
251251
kp = kps[i]
252252
ki = kis[i]
253253
kd = kds[i]
254-
label = latexstring("k_p = $(round(kp, digits=3)), k_i = $(round(ki, digits=3)), k_d = $(round(kd, digits=3))")
254+
label = "\$k_p = $(round(kp, digits=3)), k_i = $(round(ki, digits=3)), k_d = $(round(kd, digits=3))\$"
255255

256256
C = pid(kp,ki,kd,form=form)
257257
T = robust_minreal(feedback(P*C, 1))
@@ -384,7 +384,7 @@ function stabregionPID(P, ω = _default_freq_vector(P,Val{:bode}()); kd=0, form=
384384
K = convert_pidparams_from_parallel.(kp, ki, kd, form)
385385
kp, ki = getindex.(K, 1), getindex.(K, 2)
386386
fig = if doplot
387-
RecipesBase.plot(kp,ki,linewidth = 1.5, xlabel=L"k_p", ylabel=L"k_i", title="Stability region of P, k_d = $(round(kd, digits=4))")
387+
RecipesBase.plot(kp,ki,linewidth = 1.5, xlabel="\$k_p\$", ylabel="\$k_i\$", title="Stability region of P, k_d = $(round(kd, digits=4))")
388388
else
389389
nothing
390390
end
@@ -401,7 +401,7 @@ function stabregionPID(P::Function, ω = exp10.(range(-3, stop=1, length=50)); k
401401
K = convert_pidparams_from_parallel.(kp, ki, kd, form)
402402
kp, ki = getindex.(K, 1), getindex.(K, 2)
403403
fig = if doplot
404-
RecipesBase.plot(kp,ki,linewidth = 1.5, xlabel=L"k_p", ylabel=L"k_i", title="Stability region of P, k_d = $(round(kd, digits=4))")
404+
RecipesBase.plot(kp,ki,linewidth = 1.5, xlabel="\$k_p\$", ylabel="\$k_i\$", title="Stability region of P, k_d = $(round(kd, digits=4))")
405405
else
406406
nothing
407407
end

lib/ControlSystemsBase/src/plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ end
9090
# minor = minor[ind]
9191
# minorText = minorText[ind]
9292
# if length(minor) > minor_text_limit
93-
# minorText = [" " for t in minorText]#fill!(minorText, L" ")
93+
# minorText = [" " for t in minorText]#fill!(minorText, " ")
9494
# end
9595
# perm = sortperm([major; minor])
9696
# return [major; minor][perm], [majorText; minorText][perm]

0 commit comments

Comments
 (0)