Proportional
A basic proportional controller, changing one param in an attempt to shift another param towards a desired value.
Example usage (see Getting started for more details on using Pieces in general):
import puzzlepiece as pzp
from pzp_hardware.generic.control import proportional
app = pzp.QApp()
puzzle = pzp.Puzzle(debug=False)
puzzle.add_piece("dummy", proportional.Dummy, 0, 0)
puzzle.add_piece("proportional", proportional.Piece, 1, 0)
puzzle.show()
app.exec()