summaryrefslogtreecommitdiff
path: root/decoders/pwm/pd.py
AgeCommit message (Collapse)Author
2015-09-15jitter, pwm: Avoid Unicode string literalsDaniel Elstner
It seems the Python we ship along our Windows binaries does not support u"..." strings, even though it's been a language feature since Python 2. Remove the "u" prefix to avoid a syntax error. Also, consistently use format "%.1f" at all scales. This fixes bug #569.
2015-04-02pwm: add period annotationMatt Porter
2014-11-02pwm: Fix and reworkSebastien Bourdelin
Reworked in the algorithm: - Fixed the polarity setting - Taken in consideration the first transition - Using the 'None' state instead of -1 and 0 value - Simplify the algorithm and remove useless branches and variables - Avoid re-calculating the same thing more than once - Renamed a few variables for a better understanding - Duty cycle precision changed to floating value Otherwise: - Added a meta OUTPUT for the duty cycle average - Renamed the polarity option: 'polarity', 'active low/high' are well-understood terms. - Added comments Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
2014-10-17Add a PWM decoder.Uwe Hermann