Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Mar 29, 2024
1 parent 482d2e2 commit fbb92f9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/test_mixer3.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# activate the test environment if needed
using Pkg
if ! ("Plots" keys(Pkg.project().dependencies))
if ! ("ControlPlots" keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
end

using KiteControllers, Plots
using KiteControllers, ControlPlots
"""
Test the three channel mixer, using two sinus signals of different frequencies
and a random noise signal.
Expand Down Expand Up @@ -47,8 +47,12 @@ for i in 1:SAMPLES
out[i] = calc_output(mix3, SIN1[i], SIN2[i], NOISE[i])
on_timer(mix3)
end
plot(TIME, out, label="output", width=2, linecolor=:blue3, xtickfontsize=12, ytickfontsize=12,
legendfontsize=12, size=(640,480))
plot!(TIME, factor_b, width=2, label="factor_b")
plot!(TIME, factor_c, width=2, label="factor_c")
plt.plot(TIME, out, label="output")
plt.plot(TIME, factor_b, label="factor_b")
plt.plot(TIME, factor_c, label="factor_c")
plt.grid(true)
plt.legend()
plt.pause(0.01)
plt.show(block=false)

# savefig("mixer3.png")

0 comments on commit fbb92f9

Please sign in to comment.