fix: lua
This commit is contained in:
@@ -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