Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
autotuner-pi-controller
Advanced tools
`autotuner-pi-controller` is a Proportional-Integral (PI) controller that uses the Relay Feedback Test for auto-tuning. The Relay Feedback Test is used to estimate the ultimate gain (Ku) and ultimate period$
autotuner-pi-controller
is a Proportional-Integral (PI) controller that uses the Relay Feedback Test for auto-tuning. The Relay Feedback Test is used to estimate the ultimate gain (Ku) and ultimate period (Pu) of a process. These parameters are then used to calculate the PI gains.
Copy the autotuner-pi-controller/index.js
file to your project directory or install it using npm install autotuner-pi-controller
in your project directory
const RelayAutoTuningPIController = require('./path/to/autotuner-pi-controller/index.js');
// Create a new controller with initial parameters
const piController = new RelayAutoTuningPIController(1.0, 0.0, 1.0);
// Simulate a process and auto-tune the controller
const setpoint = 50;
let measuredValue = 40;
let controlOutput = piController.autoTune(setpoint, measuredValue);
// Use the controller to calculate the control output
controlOutput = piController.update(setpoint, measuredValue);
update(setpoint, measuredValue)
: Calculates the control output based on the setpoint and measured value.relayFeedbackTest(measuredValue)
: Implements the relay feedback test.calculateUltimateGainAndPeriod()
: Calculates the ultimate gain (Ku) and ultimate period (Pu) based on the recorded cycle times.setTuningParameters(Ku, Pu)
: Sets the PI gains based on the calculated Ku and Pu.autoTune(setpoint, measuredValue)
: Performs the relay feedback test, calculates Ku and Pu, sets the PI gains, and then calculates the control output.enterErrorState()
: Enters an error state and resets integral and cycle times when abnormal conditions are detected.exitErrorState()
: Exits the error state and attempts to recover normal operation.The controller includes error handling and recovery mechanisms. When abnormal conditions are detected (e.g., unusually large errors or invalid tuning parameters), the controller enters an error state. In this state, the controller stops normal operation and returns a safe control output. The controller can attempt to recover from an error state by calling the exitErrorState()
method.
Apache-2.0
Harshad Joshi @ Bufferstack.IO Analytics Technology LLP, Pune
FAQs
`autotuner-pi-controller` is a Proportional-Integral (PI) controller that uses the Relay Feedback Test for auto-tuning. The Relay Feedback Test is used to estimate the ultimate gain (Ku) and ultimate period$
The npm package autotuner-pi-controller receives a total of 0 weekly downloads. As such, autotuner-pi-controller popularity was classified as not popular.
We found that autotuner-pi-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.