Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/64j0/pid-fsharp
The code shows the implementation of a PID controller in F#. It's a translation from https://github.com/simorxb/PID-C-Struct.
https://github.com/64j0/pid-fsharp
control-theory pid-controller
Last synced: 2 days ago
JSON representation
The code shows the implementation of a PID controller in F#. It's a translation from https://github.com/simorxb/PID-C-Struct.
- Host: GitHub
- URL: https://github.com/64j0/pid-fsharp
- Owner: 64J0
- Created: 2023-10-21T13:38:10.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-23T20:08:01.000Z (about 1 year ago)
- Last Synced: 2023-10-23T21:25:44.798Z (about 1 year ago)
- Topics: control-theory, pid-controller
- Language: F#
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PID in F#
A translation from [simorxb/PID-C-Struct](https://github.com/simorxb/PID-C-Struct) from C to F#.
* Notice that the txt result is different from `simorxb`'s since in his implementation, due to C specificities, the program loses precision after time `2.700000`. You can find more information regarding this C problem here: [link](https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/why-floating-point-numbers-may-lose-precision.md).
## Simulation results
!["PID controller command per time"](./assets/pid-command-per-time.png)
!["Setpoint and response comparison per time"](./assets/setpoint-and-response-per-time.png)