mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 19:27:07 +00:00
making sure ALL telemetry for a given indicator is fresh (#3734)
This commit is contained in:
parent
e70a636073
commit
905e397d3f
@ -273,7 +273,7 @@ export default {
|
||||
isFresh = true;
|
||||
for (let key of this.spacecraftPositionKeys) {
|
||||
if (this.relatedTelemetry[key] && latest[key] && focused[key]) {
|
||||
isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
} else {
|
||||
isFresh = false;
|
||||
}
|
||||
@ -291,7 +291,7 @@ export default {
|
||||
isFresh = true;
|
||||
for (let key of this.spacecraftOrientationKeys) {
|
||||
if (this.relatedTelemetry[key] && latest[key] && focused[key]) {
|
||||
isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
} else {
|
||||
isFresh = false;
|
||||
}
|
||||
@ -312,7 +312,7 @@ export default {
|
||||
if (this.isSpacecraftPositionFresh && this.isSpacecraftOrientationFresh) {
|
||||
for (let key of this.cameraKeys) {
|
||||
if (this.relatedTelemetry[key] && latest[key] && focused[key]) {
|
||||
isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key]));
|
||||
} else {
|
||||
isFresh = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user