3 ms·
wrt (def pid-output (chan (pid-transducer 65 0.1 0.02 0.01))) Unless something has changed with core async I believe you need to provide a buffer if you a
by shaunxcode 12y ago
wrt
(def pid-output (chan (pid-transducer 65 0.1 0.02 0.01)))
Unless something has changed with core async I believe you need to provide a buffer if you are going to use a transducer.
From the current doc: "If a transducer is supplied a buffer must be specified."
- pi-rat 12y agoGood catch! Originally while developing and running this I had a buffer of 1000 on both temperatures and pid-output (to avoid deadlocks). I removed the buffers for clarity in the blog-post, but obviously should have left the transducer channel alone). Thanks!