Expand description
Math Operations-style blocks that don’t need state: gain, sum, product, saturation.
These are pure functions of their inputs, not descriptor-DAE fragments — a dae-runtime
integration (a later milestone) would evaluate them inline while assembling the global
system rather than adding unknowns/rows for them, the same way a resistor’s Ohm’s-law
relationship needs no extra unknown.
Functions§
- complementary_
pwm_ with_ deadtime - Compares a carrier phase
theta([0, 1), e.g. a periodic ramp’s own(ramp + phase_offset).rem_euclid(1.0), as produced bycrate::Vco, or [crate::closed_loop::sawtooth_carrier]) againstduty, producing an active-high complementary pair(main, complement)with independently configurable dead time on each edge — the shared primitive every gate-driving modulator in this crate uses, so “how dead time is inserted” only has one implementation to get right. - gain
- product
- saturation
- sum