Class a.pid_neuro
single neuron proportional integral derivative controller
a.pid_neuro |
single neuron proportional integral derivative controller |
-
a.pid_neuro
-
single neuron proportional integral derivative controller
Fields:
- k
proportional output coefficient
- kp
proportional learning constant
- ki
integral learning constant
- kd
derivative learning constant
- wp
proportional weight
- wi
integral weight
- wd
derivative weight
- outmax
maximum final output
- outmin
minimum final output
- out
controller final output
- fdb
cache feedback
- err
cache error
- ec
error change
-
a.pid_neuro:new ()
-
constructor for single neuron PID controller
Returns:
a.pid_neuro
single neuron PID controller userdata
-
a.pid_neuro:init ()
-
initialize for single neuron PID controller
Returns:
a.pid_neuro
single neuron PID controller userdata
-
a.pid_neuro:set_kpid (k, kp, ki, kd)
-
set proportional integral derivative constant for single neuron PID controller
Parameters:
- 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
-
a.pid_neuro:set_wpid (wp, wi, wd)
-
set proportional integral derivative weight for single neuron PID controller
Parameters:
- wp
number
proportional weight
- wi
number
integral weight
- wd
number
derivative weight
Returns:
a.pid_neuro
single neuron PID controller userdata
-
a.pid_neuro:run (set, fdb)
-
calculate for single neuron PID controller
Parameters:
- set
number
setpoint value
- fdb
number
feedback value
Returns:
number
setpoint value
-
a.pid_neuro:inc (set, fdb)
-
calculate for incremental single neuron PID controller
Parameters:
- set
number
setpoint value
- fdb
number
feedback value
Returns:
number
output value
-
a.pid_neuro:zero ()
-
zeroing for single neuron PID controller
Returns:
a.pid_neuro
single neuron PID controller userdata