Structure for flow PID

Global variables, defines and function prototype.