fix: lua
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "computercraft-mutil",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
|
||||
@@ -8,9 +8,10 @@ export class MultiPID {
|
||||
|
||||
public constructor(channels: number, params: PIDParameters) {
|
||||
this.channels = channels;
|
||||
this.pids = Array(channels)
|
||||
.fill(0)
|
||||
.map((_) => new PID(params));
|
||||
this.pids = [];
|
||||
for (var i = 0; i < channels; i++) {
|
||||
this.pids.push(new PID(params));
|
||||
}
|
||||
}
|
||||
|
||||
public setSetpoint(channel: number, setpoint: number) {
|
||||
|
||||
Reference in New Issue
Block a user