KiteSimulators
Meta-package, providing "Julia Kite Power Tools", consisting of the following packages:
Installation
If you do not have Julia installed yet, please read Installation.
It is suggested that you create your own folder for your kite simulators.
mkdir kitesims
cd kitesims
julia --project="."
On the Julia prompt install the package:
using Pkg
pkg"add https://github.com/aenarete/KiteSimulators.jl"
using KiteSimulators
cp_bin()
exit()
The commands above create the following directory structure:
├── bin
│ ├── create_sys_image
│ ├── create_sys_image.bat
│ ├── run_julia
│ └── run_julia.bat
├── data
│ ├── settings.yaml
│ └── system.yaml
├── docs
│ ├── Installation.md
│ └── kite_power_tools.png
├── Manifest.toml
├── Project.toml
├── README.md
└── test
├── create_sys_image.jl
├── test_for_precompile.jl
└── update_packages.jl
It is suggested that you now create a Julia image that contains a compiled version off all the packages.
On the command line, enter for Linux
cd bin
./create_sys_image
and for Windows:
cd bin
create_sys_image
This will take 6 to 20 minutes but is only required once.
You can now execute Julia on Linux with the commands:
cd ..
./bin/run_julia
and on Windows:
cd ..
bin\run_julia
Copy and run an example
From the Julia prompt execute:
using KiteSimulators
cp_examples()
If you have a Joystick connected, you can run the simulator with joystick control
./bin/run_julia or bin\run_julia
using KiteSimulators
include("examples\\joystick.jl)
To view and modify the example, you can use the command:
@edit examples/joystick.jl # Linux
@edit examples\\joystick.jl # Windows
The x axis of the Joystick controls steering, y-axis depowering and z-axis the reel-in and reel-out of the winch. With button one you can start the simulation, with button two you can stop it.
See also
- Research Fechner for the scientic background of this code
- The packages KiteModels and WinchModels and KitePodModels and AtmosphericModels
- the package KiteUtils and KiteControllers