aenarete / kitesimulators.jl Goto Github PK
View Code? Open in Web Editor NEWSimulators for kite power systems
License: MIT License
Simulators for kite power systems
License: MIT License
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
After following the installation instructions for Windows 11 successfully, I executed the joystick example as instructed:
include("examples\\joystick.jl")
And I got the following error message:
ERROR: LoadError: ArgumentError: Package Timers not found in current path:
- Run 'import Pkg; Pkg.add("Timers")' to install the Timers package.
After installing the Timers package as suggested by the error message everything works as expected.
I would suggest adding Timers as a prerequisite for this package so it is added during the initial installation.
Thank you.
The parameters of the model can already be configured in a .yaml file, but the controller settings are still hardcoded. This needs to be changed.
Building on MacOS with Julia 1.7.2 gives me
bin % ./create_sys_image
Updating packages...
[ Info: Loading packages ...
[ Info: Creating sysimage ...
[ Info: PackageCompiler: Executing /Users/tallakt/kitesims/test/test_for_precompile.jl => /var/folders/0g/0zjw8w1n76b0sqzn5vd8tb3r0000gn/T/jl_packagecompiler_mSRrHy/jl_WO0WIa
[ Info: Makie/Makie is caching fonts, this may take a while. Needed only on first run!
signal (11): Segmentation fault: 11
in expression starting at /Users/tallakt/kitesims/test/test_for_precompile.jl:1
calc_wind_factor at /Users/tallakt/.julia/packages/AtmosphericModels/JaPSH/src/AtmosphericModels.jl:0 [inlined]
calc_wind_factor at /Users/tallakt/.julia/packages/AtmosphericModels/JaPSH/src/AtmosphericModels.jl:102 [inlined]
inner_loop! at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:328 [inlined]
loop! at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:364
residual! at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:415
unknown function (ip: 0x10509c3fb)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
test_initial_condition! at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:525
fj_finitediff! at /Users/tallakt/.julia/packages/NLSolversBase/cfJrN/src/objective_types/oncedifferentiable.jl:138
unknown function (ip: 0x10508e22b)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
value_jacobian!! at /Users/tallakt/.julia/packages/NLSolversBase/cfJrN/src/interface.jl:124
value_jacobian!! at /Users/tallakt/.julia/packages/NLSolversBase/cfJrN/src/interface.jl:122 [inlined]
trust_region_ at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/solvers/trust_region.jl:119
trust_region at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/solvers/trust_region.jl:235 [inlined]
trust_region at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/solvers/trust_region.jl:235 [inlined]
#nlsolve#25 at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/nlsolve/nlsolve.jl:26
nlsolve##kw at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/nlsolve/nlsolve.jl:18 [inlined]
#nlsolve#30 at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/nlsolve/nlsolve.jl:52
nlsolve##kw at /Users/tallakt/.julia/packages/NLsolve/gJL1I/src/nlsolve/nlsolve.jl:46
unknown function (ip: 0x105089b83)
#find_steady_state!#17 at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:548
find_steady_state!##kw at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KPS4.jl:517 [inlined]
#init_sim!#39 at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KiteModels.jl:368
init_sim!##kw at /Users/tallakt/.julia/packages/KiteModels/fAylU/src/KiteModels.jl:366
unknown function (ip: 0x10506308b)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
eval at ./boot.jl:373 [inlined]
include_string at ./loading.jl:1196
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_include at ./loading.jl:1253
include at ./Base.jl:418
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
exec_options at ./client.jl:292
_start at ./client.jl:495
jfptr__start_41470 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
Allocations: 282549928 (Pool: 282497173; Big: 52755); GC: 211
ERROR: LoadError: failed process: Process(setenv(`/Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia --color=yes --startup-file=no --sysimage=/Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib --compile=all --trace-compile=/var/folders/0g/0zjw8w1n76b0sqzn5vd8tb3r0000gn/T/jl_packagecompiler_mSRrHy/jl_WO0WIa test/test_for_precompile.jl`,["XPC_FLAGS=0x0", "COMMAND_MODE=unix2003", "PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/kitty.app/Contents/MacOS:/Users/tallakt/.mix/escripts", "PWD=/Users/tallakt/kitesims", "XPC_SERVICE_NAME=0", "HOMEBREW_PREFIX=/opt/homebrew", "SHELL=/bin/zsh", "KITTY_PID=584", "__CF_USER_TEXT_ENCODING=0x1F5:0x0:0xC", "ERL_AFLAGS=-kernel shell_history enabled" … "HOMEBREW_REPOSITORY=/opt/homebrew", "USER=tallakt", "KITTY_WINDOW_ID=3", "SECURITYSESSIONID=186b1", "INFLUX_PASSWORD=CWH80MpG5SiX", "TERM=xterm-kitty", "INFLUX_GENERATOR_API_KEY=P7oDE84YZdf6egHWZF-HIJr0XVNCR-bXI_ArCxYJ6SOKByIEr3sFfsFXriKihHNdFfR_FGwiALggHGY44Kl6Lw==", "HOME=/Users/tallakt", "OPENBLAS_MAIN_FREE=1", "COLORTERM=truecolor"]), ProcessExited(139)) [139]
Stacktrace:
[1] pipeline_error
@ ./process.jl:531 [inlined]
[2] run(::Cmd; wait::Bool)
@ Base ./process.jl:446
[3] run
@ ./process.jl:444 [inlined]
[4] run_precompilation_script(project::String, sysimg::String, precompile_file::String, precompile_dir::String)
@ PackageCompiler ~/.julia/packages/PackageCompiler/YNnEB/src/PackageCompiler.jl:239
[5] create_sysimg_object_file(object_file::String, packages::Vector{String}, packages_sysimg::Set{Base.PkgId}; project::String, base_sysimage::String, precompile_execution_file::Vector{String}, precompile_statements_file::Vector{String}, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, extra_precompiles::String, incremental::Bool)
@ PackageCompiler ~/.julia/packages/PackageCompiler/YNnEB/src/PackageCompiler.jl:261
[6] create_sysimage(packages::Vector{Symbol}; sysimage_path::String, project::String, precompile_execution_file::String, precompile_statements_file::Vector{String}, incremental::Bool, filter_stdlibs::Bool, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, include_transitive_dependencies::Bool, base_sysimage::Nothing, julia_init_c_file::Nothing, version::Nothing, soname::Nothing, compat_level::String, extra_precompiles::String)
@ PackageCompiler ~/.julia/packages/PackageCompiler/YNnEB/src/PackageCompiler.jl:510
[7] top-level scope
@ ~/kitesims/test/create_sys_image.jl:10
[8] include(fname::String)
@ Base.MainInclude ./client.jl:451
[9] top-level scope
@ none:1
in expression starting at /Users/tallakt/kitesims/test/create_sys_image.jl:10
Currently the winch (groundstation) controllers are part of the package KiteControllers which makes it difficult to use them stand-alone. Move the code in a separate Julia package.
Is there any possibility to simulate a kite that has 3 wires going from the ground to the kite, so using three ground-based motors, instead of using a control pod in the air? If so, how could one implement this?
Creating a system image without having bash installed should work.
Provide one or more examples how to use the automatic flight path and winch controllers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.