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()
class pzp_hardware.generic.control.proportional.Dummy(puzzle=None, custom_horizontal=None, param_defaults=None, *args, **kwargs)[source]

Bases: Piece

Test Piece with an input param and an output param that’s proportional to it.

class pzp_hardware.generic.control.proportional.Piece(puzzle=None, custom_horizontal=None, param_defaults=None, *args, **kwargs)[source]

Bases: Piece

Proportional control Piece.

../_images/pzp_hardware.generic.control.proportional.Piece.png