Add new frequency graph

This commit is contained in:
Lewis Moten
2024-05-12 04:12:28 -04:00
parent 51a51d7e96
commit 015dd3eae3
8 changed files with 387 additions and 64 deletions

View File

@@ -28,12 +28,19 @@ class SignalPanel extends BasePanel {
this.addText('%');
this.closeField();
this.openField('Timeout');
this.addInputNumber('timeout', 30, {min: 30, max: 1000, eventName: 'timeoutChange'});
this.addText('ms');
this.closeField();
this.openField('Smoothing Time Constant');
this.addInputNumber('smoothing-time-constant', 0, {min: 0, max: 100, eventName: 'smothingTimeConstantChange', translation: 'percent'});
this.addText('%');
this.closeField();
};
getTimeoutMilliseconds = () => this.getNumberById('timeout');
setTimeoutMilliseconds = (milliseconds) => this.setValueById('timeout', milliseconds);
getWaveform = () => this.getValueById('wave-form');
setWaveform = (value) => this.setValueById('wave-form', value);