Module liba.pid_neuro

single neuron proportional integral derivative controller

Functions

new () constructor for single neuron PID controller
init (ctx) initialize for single neuron PID controller
kpid (ctx, k, kp, ki, kd) set proportional integral derivative constant for single neuron PID controller
wpid (ctx, wp, wi, wd) set proportional integral derivative weight for single neuron PID controller
run (ctx, set, fdb) calculate for single neuron PID controller
inc (ctx, set, fdb) calculate for single neuron PID controller
zero (ctx) zeroing for single neuron PID controller


Functions

new ()
constructor for single neuron PID controller

Returns:

    a.pid_neuro single neuron PID controller userdata
init (ctx)
initialize for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata

Returns:

    a.pid_neuro single neuron PID controller userdata
kpid (ctx, k, kp, ki, kd)
set proportional integral derivative constant for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata
  • k number proportional output coefficient
  • kp number proportional learning constant
  • ki number integral learning constant
  • kd number derivative learning constant

Returns:

    a.pid_neuro single neuron PID controller userdata
wpid (ctx, wp, wi, wd)
set proportional integral derivative weight for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata
  • wp number proportional weight
  • wi number integral weight
  • wd number derivative weight

Returns:

    a.pid_neuro single neuron PID controller userdata
run (ctx, set, fdb)
calculate for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata
  • set number setpoint value
  • fdb number feedback value

Returns:

    number setpoint value
inc (ctx, set, fdb)
calculate for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata
  • set number setpoint value
  • fdb number feedback value

Returns:

    number setpoint value
zero (ctx)
zeroing for single neuron PID controller

Parameters:

  • ctx a.pid_neuro single neuron PID controller userdata

Returns:

    a.pid_neuro single neuron PID controller userdata
generated by LDoc 1.5.0 Last updated 2024-05-11 16:29:31