How to tune PID controller on non-linear model (here: diving of a body) My task is to develop a controller (I decided to do a PID) in Python.