.. Copyright (C) ALbert Mietus, SoftwareBeterMaken.nl; 2017. Part of MESS ********************************** dPID: A Python ‘homework’ exercise ********************************** .. post:: 2017/10/22 :tags: Python, TDD :category: practice :location: :language: en :practice-time: 1 hour This is an optional exercise for the python-3 workshops: program a **d**\iscrete **PID**-controller. A basic :class:`class definition ` is given; which has to be tested and implemented. By starting with the *test-part*, which is advisable anyhow (the TDD approach), the exercise starts simple. A few :ref:`test-examples ` are also given. This file can be used as *'template'* to write your own tests. dPID articles ************* .. toctree:: :maxdepth: 3 class exercise code pytest-intro .. seealso:: Links * https://pytest.readthedocs.io/ * https://en.wikipedia.org/wiki/PID_controller * https://en.wikipedia.org/wiki/Test-driven_development