Various algorithm for Systems & Control operations for Microsoft MakeCode editors.
In your MakeCode editor, click on the gearwheel menu and click "Extensions", search for "automation" and select this project.
A Proportional-Integral-Derivative control is a classic control structure in automation.
The user needs to define 3 gains (Kp
, Ki
, Kd
) to tune the controller.
See Reference: Feedback System, Karl Johan Astrom & Rickard M. Murry
let v = 0;
automation.pid1.setGains(1, 0.01, 0.001);
for (let i = 0; i < 10; ++i) {
v = automation.pid1.compute(0.1, 5);
}
An example of Behavior-based robotics control system.
let r = 0;
for (let i = 0; i < 10; ++i) {
r = automation.movingAverageFilter1.filter(Math.random());
}
- for PXT/maker
- for PXT/adafruit
- for PXT/codal
- for PXT/ev3
MIT
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.