Skip to content

Commit acbeb8e

Browse files
committed
Cleanup
1 parent 6a97735 commit acbeb8e

File tree

4 files changed

+0
-48
lines changed

4 files changed

+0
-48
lines changed

examples_3d/auto_parking_4p.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ SHOW_KITE = true
5757

5858
viewer::Viewer3D = Viewer3D(SHOW_KITE, "WinchON")
5959

60-
function bring_viewer_to_front()
61-
if Sys.isapple()
62-
sleep(0.2)
63-
try
64-
script = "tell application \"System Events\" to set frontmost of first process whose unix id is $(getpid()) to true"
65-
run(pipeline(`osascript -e $script`, stdout=devnull, stderr=devnull))
66-
catch
67-
end
68-
end
69-
nothing
70-
end
71-
7260
T::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
7361
AZIMUTH::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
7462
HEADING::Vector{Float64} = zeros(Int64(MAX_TIME/dt))

examples_3d/parking_4p.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ using KiteViewers
1818
using ControlPlots: plot, plot2d, plotx
1919
toc()
2020

21-
function bring_viewer_to_front()
22-
if Sys.isapple()
23-
sleep(0.2)
24-
try
25-
script = "tell application \"System Events\" to set frontmost of first process whose unix id is $(getpid()) to true"
26-
run(pipeline(`osascript -e $script`, stdout=devnull, stderr=devnull))
27-
catch
28-
end
29-
end
30-
nothing
31-
end
32-
3321
set::Settings = deepcopy(se())
3422

3523
# the following values can be changed to match your interest

examples_3d/parking_wind_dir.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,6 @@ UPWIND_DIR2 = -pi/2+deg2rad(90) # Zero is at north; clockwise positive
6363

6464
viewer::Viewer3D = Viewer3D(SHOW_KITE, "WinchON")
6565

66-
function bring_viewer_to_front()
67-
if Sys.isapple()
68-
sleep(0.2)
69-
try
70-
script = "tell application \"System Events\" to set frontmost of first process whose unix id is $(getpid()) to true"
71-
run(pipeline(`osascript -e $script`, stdout=devnull, stderr=devnull))
72-
catch
73-
end
74-
end
75-
nothing
76-
end
77-
7866
steps = 0
7967
T::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
8068
AZIMUTH::Vector{Float64} = zeros(Int64(MAX_TIME/dt))

examples_3d/show_kite.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ using Rotations, StaticArrays
1818
using KiteViewers
1919
toc()
2020

21-
function bring_viewer_to_front()
22-
if Sys.isapple()
23-
sleep(0.2)
24-
try
25-
script = "tell application \"System Events\" to set frontmost of first process whose unix id is $(getpid()) to true"
26-
run(pipeline(`osascript -e $script`, stdout=devnull, stderr=devnull))
27-
catch
28-
end
29-
end
30-
nothing
31-
end
32-
3321
# yaw = deg2rad(0) # noise pointing to the north
3422
yaw = deg2rad(180) # noise pointing to the south
3523
# yaw = deg2rad(-90) # noise pointing to the west

0 commit comments

Comments
 (0)