Class a.pid_fuzzy

fuzzy proportional integral derivative controller

Tables

a.pid_fuzzy fuzzy proportional integral derivative controller

Methods

a.pid_fuzzy:die () destructor for fuzzy PID controller
a.pid_fuzzy:new () constructor for fuzzy PID controller
a.pid_fuzzy:init () initialize for fuzzy PID controller
a.pid_fuzzy:set_opr (opr) set fuzzy relational operator for fuzzy PID controller
a.pid_fuzzy:set_nfuzz (num) set memory block for fuzzy PID controller
a.pid_fuzzy:set_rule (me, mec, mkp, mki, mkd) set rule base for fuzzy PID controller
a.pid_fuzzy:set_kpid (kp, ki, kd) set proportional integral derivative constant for fuzzy PID controller
a.pid_fuzzy:run (set, fdb) calculate for fuzzy PID controller
a.pid_fuzzy:pos (set, fdb) calculate for positional fuzzy PID controller
a.pid_fuzzy:inc (set, fdb) calculate for incremental fuzzy PID controller
a.pid_fuzzy:zero () zeroing for fuzzy PID controller


Tables

a.pid_fuzzy
fuzzy proportional integral derivative controller

Fields:

  • kp proportional constant
  • ki integral constant
  • kd derivative constant
  • summax maximum integral output
  • summin minimum integral output
  • sum controller integral output
  • outmax maximum final output
  • outmin minimum final output
  • out controller final output
  • fdb cache feedback
  • err cache error
  • nrule number of order in the square matrix
  • nfuzz maximum number triggered by the rule

Methods

a.pid_fuzzy:die ()
destructor for fuzzy PID controller
a.pid_fuzzy:new ()
constructor for fuzzy PID controller

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:init ()
initialize for fuzzy PID controller

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:set_opr (opr)
set fuzzy relational operator for fuzzy PID controller

Parameters:

  • opr int enumeration for fuzzy PID controller operator

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:set_nfuzz (num)
set memory block for fuzzy PID controller

Parameters:

  • num int maximum number triggered by the rule

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:set_rule (me, mec, mkp, mki, mkd)
set rule base for fuzzy PID controller

Parameters:

  • me table points to membership function parameter table, terminated by 0
  • mec table points to membership function parameter table, terminated by 0
  • mkp table points to Kp's rule base table which must be a square matrix
  • mki table points to Ki's rule base table which must be a square matrix
  • mkd table points to Kd's rule base table which must be a square matrix

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:set_kpid (kp, ki, kd)
set proportional integral derivative constant for fuzzy PID controller

Parameters:

  • kp number proportional constant
  • ki number integral constant
  • kd number derivative constant

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
a.pid_fuzzy:run (set, fdb)
calculate for fuzzy PID controller

Parameters:

  • set number setpoint value
  • fdb number feedback value

Returns:

    number setpoint value
a.pid_fuzzy:pos (set, fdb)
calculate for positional fuzzy PID controller

Parameters:

  • set number setpoint value
  • fdb number feedback value

Returns:

    number output value
a.pid_fuzzy:inc (set, fdb)
calculate for incremental fuzzy PID controller

Parameters:

  • set number setpoint value
  • fdb number feedback value

Returns:

    number output value
a.pid_fuzzy:zero ()
zeroing for fuzzy PID controller

Returns:

    a.pid_fuzzy fuzzy PID controller userdata
generated by LDoc 1.5.0 Last updated 2024-09-30 14:51:04