Skip to content

Commit 90f15c2

Browse files
committed
Some progress
1 parent 369dff2 commit 90f15c2

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

docs/src/components.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ calc_output(ud::UnitDelay, input)
1818
on_timer(ud::UnitDelay)
1919
```
2020

21+
## RateLimiter
22+
```@docs
23+
RateLimiter
24+
RateLimiter(dt, limit=1.0, x0=0.0)
25+
```
26+
2127
## CalcVSetIn
2228
```@docs
2329
set_vset_pc(cvi::CalcVSetIn, v_set_pc, force)

docs/src/types.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ CurrentModule = WinchControllers
66

77
## Control components
88
```@docs
9-
RateLimiter
109
Mixer_2CH
1110
Mixer_3CH
1211
```

src/components.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,17 @@ $(TYPEDFIELDS)
177177
last_output = 0
178178
end
179179

180+
"""
181+
RateLimiter(dt, limit=1.0, x0=0.0)
182+
183+
## Parameters
184+
- dt: the time-step [s]
185+
- limit: the rate limit, default: 1.0 [1/s]
186+
- x0: the initial output, default: 0.0
187+
188+
## Returns
189+
- a struct of type RateLimiter
190+
"""
180191
function RateLimiter(dt, limit=1.0, x0=0.0)
181192
RateLimiter(dt, limit, x0, x0)
182193
end

src/wc_components.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ function CalcVSetIn(wcs::WCSettings)
2424
CalcVSetIn(wcs=wcs)
2525
end
2626

27-
"""
27+
"""
28+
calc_vro(wcs::WCSettings, force)
2829
2930
Calculate the optimal reel-out speed for a given force.
31+
32+
## Parameters
33+
- wcs::WCSettings: the settings struct
34+
- force: the tether force at the winch
35+
36+
## Returns
37+
- the optimal reel-out speed
3038
"""
3139
function calc_vro(wcs::WCSettings, force)
3240
if wcs.test

src/wc_settings.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
"""
2+
mutable struct WCSettings
3+
24
Settings of the WinchController
5+
6+
# Fields
7+
8+
$(TYPEDFIELDS)
39
"""
410
@with_kw mutable struct WCSettings @deftype Float64
511
"timestep of the winch controller"

0 commit comments

Comments
 (0)