moat-lib-pid
% start main % start synopsis
An advanced PID controller in Python. It does not require a fixed feed rate, supports anti-windup, and contains an optional first-order filter for the derivative term.
% end synopsis
This module was vendorized from the advanced-pid module by Erkan Adali erkanadali91@gmail.com.
MoaT improvements include
- a
CPIDsubclass with a settable reference - saving internal state, for crash recovery and rebooting
- introspection
Usage
Usage is very simple:
from moat.lib.pid import PID
# Create PID controller
pid = PID(Kp=2.0, Ki=0.1, Kd=1.0, Tf=0.05)
# Control loop
reference = 1.0
while True:
# Get current measurement from system
timestamp, measurement = system.get_measurement()
# Calculate control signal by using PID controller
control = pid(reference - measurement, t=timestamp)
# Feed control signal to system
system.set_input(control)
The package's examples includes a toy mass-spring-damper system model for testing.
% end main
License
Licensed under the MIT License.
Metadata
Release files for moat-lib-pid 0.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moat_lib_pid-0.8.5.tar.gz | 9.4 kB | Without provenance | Details for moat_lib_pid-0.8.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moat_lib_pid-0.8.5-py3-none-any.whl | Python 3 | none | any | Details for moat_lib_pid-0.8.5-py3-none-any.whl |
Total release size: 16.9 kB
Release files / moat_lib_pid-0.8.5.tar.gz
| Download URL | moat_lib_pid-0.8.5.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37848826dbfe9a5fc7d885069c9bed3c0e2456ba8528992bb36a498e47fd56cf
|
|
BLAKE2b-256 checksum How to use checksums |
eb8d10bd7379b34653e3c6ec486bebbcbe5f3cbc8157f2d72cac7f5bf5e45279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / moat_lib_pid-0.8.5-py3-none-any.whl
| Download URL | moat_lib_pid-0.8.5-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20c84e3a2cb70330963fa4f4ebeb6b09ae5bcdd7fba6728caf45d815c707a422
|
|
BLAKE2b-256 checksum How to use checksums |
341a95035392cd684edf1c2028616ae71648e871a83244d4d06396bc1599f0c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for moat-lib-pid 0.8.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.