Skip to content

Commit

Permalink
fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Jun 20, 2024
1 parent ff808f0 commit 46a1735
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### KiteControllers v0.2.5 - 2024-06-20
#### Changed
- fix #35, save the default log file in the output folder

### KiteControllers v0.2.4 - 2024-06-18
#### Changed
- add the field `corr_vec` to all `fpp_settings_xxx.yaml` files
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KiteControllers"
uuid = "b19fd437-5b3a-4cca-b199-c3ded0f20ded"
authors = ["Uwe Fechner <fechner@aenarete.eu> and contributors"]
version = "0.2.4"
version = "0.2.5"

[deps]
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
Expand All @@ -22,7 +22,7 @@ YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
ControlPlots = "0.0.12"
JLD2 = "0.4.46"
KiteModels = "0.5.15"
KiteUtils = "0.6.12"
KiteUtils = "0.6.14"
KiteViewers = "0.4.12"
NLsolve = "4.5"
NonlinearSolve = "3.10.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end

PROJECT=read_project()
GLMakie.activate!(title = PROJECT)
DEFAULT_LOG = "last_sim_log"
DEFAULT_LOG = "output/last_sim_log"

function test_observer(plot=true)
log = load_log("uncorrected")
Expand Down Expand Up @@ -283,7 +283,7 @@ function play(stopped=false)
if app.set.log_level > 0
println("Saving log... $(app.logger.index)")
end
save_log(app.logger, DEFAULT_LOG)
save_log(app.logger, basename(DEFAULT_LOG); path=dirname(DEFAULT_LOG))
end
if @isdefined __PRECOMPILE__
break
Expand Down
8 changes: 7 additions & 1 deletion examples/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ function plot_timing()
nothing
end

fulldir(name) = replace(dirname(name), "~" => homedir())
function fulldir(name)
if occursin("~", name)
return replace(dirname(name), "~" => homedir())
else
return joinpath(pwd(), dirname(name))
end
end

function plot_main()
log = load_log(basename(KiteViewers.plot_file[]); path=fulldir(KiteViewers.plot_file[]))
Expand Down

0 comments on commit 46a1735

Please sign in to comment.