pidex v0.1.1 Pidex

Documentation for Pidex.

Link to this section Summary

Functions

Main PID(ex) controller update function. Each call to this will produce a new PID(ex) state struct which needs to be passed to the next call to update.

Link to this section Types

Link to this type

timestamp()

timestamp() :: integer() | float()

Link to this section Functions

Main PID(ex) controller update function. Each call to this will produce a new PID(ex) state struct which needs to be passed to the next call to update.

pid = %Pidex{kP: 1.2, kI: 1.0, kD: 0.001, max_point: 20.0} initial_state = %Pidex.State{ts: 0.00} {output, initial_state} =

{pid, state, 5.0, 1}
|> Pidex.update()
Link to this function

update(pid, state, process_value, ts)