mirror of
https://github.com/nasa/openmct.git
synced 2025-05-12 05:23:13 +00:00
fix output and add accumulation label
This commit is contained in:
parent
4de03542f8
commit
3b78d4d2bf
@ -62,7 +62,7 @@ export default class CompsManager extends EventEmitter {
|
|||||||
testValue: 0,
|
testValue: 0,
|
||||||
timeMetaData,
|
timeMetaData,
|
||||||
accumulateValues: false,
|
accumulateValues: false,
|
||||||
sampleSize: null
|
sampleSize: 10
|
||||||
});
|
});
|
||||||
this.emit('parameterAdded', this.#domainObject);
|
this.emit('parameterAdded', this.#domainObject);
|
||||||
}
|
}
|
||||||
|
@ -113,6 +113,9 @@
|
|||||||
aria-label="Toggle Parameter Accumulation"
|
aria-label="Toggle Parameter Accumulation"
|
||||||
></span>
|
></span>
|
||||||
</label>
|
</label>
|
||||||
|
<div v-if="!isEditing && parameter.accumulateValues">
|
||||||
|
- accumulating values with sample size {{ parameter.sampleSize }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<span v-if="isEditing && parameter.accumulateValues" class="c-test-datum__string"
|
<span v-if="isEditing && parameter.accumulateValues" class="c-test-datum__string"
|
||||||
>Sample Size</span
|
>Sample Size</span
|
||||||
@ -207,8 +210,7 @@ const props = defineProps({
|
|||||||
|
|
||||||
onBeforeMount(async () => {
|
onBeforeMount(async () => {
|
||||||
const telemetryOptions = {
|
const telemetryOptions = {
|
||||||
size: 1,
|
strategy: 'minmax'
|
||||||
strategy: 'latest'
|
|
||||||
};
|
};
|
||||||
outputTelemetryCollection = openmct.telemetry.requestCollection(domainObject, telemetryOptions);
|
outputTelemetryCollection = openmct.telemetry.requestCollection(domainObject, telemetryOptions);
|
||||||
outputTelemetryCollection.on('add', telemetryProcessor);
|
outputTelemetryCollection.on('add', telemetryProcessor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user