Skip to content

Commit 5e03c1f

Browse files
committed
Document Mixer_3CH
1 parent 07b98e3 commit 5e03c1f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,15 @@ function calc_output(m2::Mixer_2CH, input_a, input_b)
129129
input_b * m2.factor_b + input_a * (1.0 - m2.factor_b)
130130
end
131131

132-
# Mixer_3CH
133-
# Mix three analog inputs. Implements the simulink block diagram, shown in
134-
# docs/mixer_3ch.png
132+
"""
133+
mutable struct Mixer_3CH
134+
135+
Mix two analog inputs. Implements the simulink block diagram, shown in `docs/mixer_3ch.png`.
136+
137+
# Fields
138+
139+
$(TYPEDFIELDS)
140+
"""
135141
@with_kw mutable struct Mixer_3CH @deftype Float64
136142
dt
137143
t_blend = 1.0

0 commit comments

Comments
 (0)