WinchControllers

Documentation for the package WinchControllers.

This package is part of Julia Kite Power Tools, which consists of the following packages:

Julia Kite Power Tools

Goals of this package

The goal of this package is to provide controllers for winches that consist of a motor/generator connected to a drum (with or without gearbox). On the drum is a tether that is connected to a load or a kite. Currently operation in air is assumed, but the package could also be extended for winches connected to under-water cables. While the main use case of the author are airborne wind energy systems, I am open to add features needed for other use cases.

Implemented features:

  • lower force control (assure that there is always a minimal cable tension)
  • upper force control (keep the maximal force limited)
  • reel-out speed control proportional to the square root of the force (other relationships can easily be added), either piecewise between the force limits or as a pure kv * sqrt(force) law (WCSettings.mode = "reelout")
  • control of asynchronous motors/ generators
  • speed control
  • auto-tuning of the controller
  • disk based stability analysis of linearized system including the force controllers
  • torque controlled winches, holding either a length (WinchPosController) or a force (WinchForceController); the length controller has an optional acceleration feed-forward (WCSettings.winch_acc_ff)
  • soft force limiting for REELOUT mode, a continuous alternative to the upper/lower force controllers ([`calcvrosoft](@ref), settingsforcelimitandsoftlfc): a smoothly saturated inverse of the tension curve, a reel-in line belowflow`, an optional low-pass filter of the measured force and an optional soft clamp at the maximal reel-out speed

Planned features

  • improved, simplified system model using a quasi-steady tether model and an aerodynamic model including kite mass and the cross-wind factor

Installation

Install Julia 1.12 or later, if you haven't already. Before installing this software it is suggested to create a new project, for example like this:

mkdir test
cd test
julia --project="."

Then add WinchControllers from Julia's package manager, by typing:

using Pkg
pkg"add WinchControllers"

at the Julia prompt. You can run the unit tests with the command:

pkg"test WinchControllers"

To add the examples and install the packages needed by the examples, run:

using WinchControllers
WinchControllers.install_examples()
exit()

Installation using git

If you want to modify, tune and understand the controllers, it is better to check out this project from git:

git clone https://github.com/OpenSourceAWE/WinchControllers.jl.git
cd WinchControllers.jl
git checkout v0.6.5
bin/install

For the checkout command, use the tag of the latest version. The installation script asks which Julia version to use (1.12 or 1.13), installs the matching default manifest, instantiates and precompiles the main, examples, test and docs projects and runs the tests. bin/install --help lists its options, for example --update to update all packages instead of using the default manifest. bin/update_default_manifests updates the default manifests for Julia 1.12 and 1.13; it stops at the first version whose installation or tests fail.

Running the examples

To run the examples, launch Julia with:

bin/run_julia

and then, in the Julia REPL, type:

menu()

Alternatively, launch Julia with julia --project and type include("examples/menu.jl"). You should now see a terminal menu with some examples. Select one using the <CURSOR UP> and <CURSOR DOWN> keys, and press <ENTER> to run the selected example.

Provides

WinchController - Usage

The WinchController combines the three controllers, mentioned above. It can be operated in two modes of operation:

  • speed control
  • power production

In speed control mode it requires a set speed as input. Upper and lower force limits are respected. In power production mode it does not require any input but the measured tether force. Output is the set speed of the asynchronous motor.

In power production mode, WCSettings.mode selects how the reel-out speed is calculated from the force:

  • "piecewise" (default): a signed square-root law between the force limits f_low and f_high, with the maximal reel-out speed vf_max; below f_low it commands reel-in.
  • "reelout": the REELOUT law `vset = kv * sqrt(force), which never commands reel-in; belowflowthe lower force controller takes over. Soft force limiting (WCSettings.forcelimit = "soft"`) requires this mode.

For a usage example look at the script test_winchcontroller.jl, for the REELOUT mode at [testreelout.jl](https://github.com/OpenSourceAWE/WinchControllers.jl/blob/main/examples/testreelout.jl). The winch curve with soft force limiting is plotted by [plotwinchcurve.jl](https://github.com/OpenSourceAWE/WinchControllers.jl/blob/main/examples/plotwinch_curve.jl).

See also

Author: Uwe Fechner (uwe.fechner.msc@gmail.com)