fuzzypid.py 918 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import _fuzzypid
  2. PB: int = _fuzzypid.PB
  3. PM: int = _fuzzypid.PM
  4. PS: int = _fuzzypid.PS
  5. ZO: int = _fuzzypid.ZO
  6. NS: int = _fuzzypid.NS
  7. NM: int = _fuzzypid.NM
  8. NB: int = _fuzzypid.NB
  9. class RuleBase(_fuzzypid.RuleBase):
  10. ...
  11. class MembershipFunction(_fuzzypid.MembershipFunction):
  12. ...
  13. class FuzzyPIDParams(_fuzzypid.FuzzyPIDParams):
  14. ...
  15. class PIDDirect(_fuzzypid.PIDDirect):
  16. ...
  17. class FuzzyPIDController(_fuzzypid.FuzzyPIDController):
  18. def __init__(self,
  19. rule_base: RuleBase,
  20. mf_params: MembershipFunction,
  21. pid_params: FuzzyPIDParams,
  22. delta_k: float = 2,
  23. mf_type: int = 4,
  24. fo_type: int = 1,
  25. df_type: int = 0,
  26. direct: list = None):
  27. super().__init__(rule_base, mf_params, pid_params,
  28. delta_k, mf_type, fo_type, df_type, direct)