mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[Tables] Default UTC time system if available and none others defined
This commit is contained in:
parent
6cd99efbb9
commit
ef8efbd53d
@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
define([
|
define([
|
||||||
"./src/UTCTimeSystem",
|
"./src/UTCTimeSystem",
|
||||||
'legacyRegistry'
|
'legacyRegistry',
|
||||||
|
'openmct'
|
||||||
], function (
|
], function (
|
||||||
UTCTimeSystem,
|
UTCTimeSystem,
|
||||||
legacyRegistry
|
legacyRegistry
|
||||||
@ -34,7 +35,23 @@ define([
|
|||||||
"implementation": UTCTimeSystem,
|
"implementation": UTCTimeSystem,
|
||||||
"depends": ["$timeout"]
|
"depends": ["$timeout"]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"runs": [
|
||||||
|
{
|
||||||
|
"implementation": function (openmct, $timeout) {
|
||||||
|
// Temporary shim to initialize the time conductor to
|
||||||
|
// something
|
||||||
|
if (!openmct.conductor.timeSystem()) {
|
||||||
|
var utcTimeSystem = new UTCTimeSystem($timeout);
|
||||||
|
|
||||||
|
openmct.conductor.timeSystem(utcTimeSystem, utcTimeSystem.defaults().bounds);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"depends": ["openmct", "$timeout"],
|
||||||
|
"priority": "fallback"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -84,7 +84,7 @@ define(
|
|||||||
};
|
};
|
||||||
|
|
||||||
TelemetryCollection.prototype.inBounds = function (element) {
|
TelemetryCollection.prototype.inBounds = function (element) {
|
||||||
var noBoundsDefined = !this.lastBounds || (!this.lastBounds.start && !this.lastBounds.end);
|
var noBoundsDefined = !this.lastBounds || (this.lastBounds.start === undefined && this.lastBounds.end === undefined);
|
||||||
var withinBounds =
|
var withinBounds =
|
||||||
_.get(element, this.sortField) >= this.lastBounds.start &&
|
_.get(element, this.sortField) >= this.lastBounds.start &&
|
||||||
_.get(element, this.sortField) <= this.lastBounds.end;
|
_.get(element, this.sortField) <= this.lastBounds.end;
|
||||||
@ -114,7 +114,7 @@ define(
|
|||||||
array = this.highBuffer;
|
array = this.highBuffer;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
array = this.highBuffer;
|
array = this.telemetry;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If out of bounds low, disregard data
|
// If out of bounds low, disregard data
|
||||||
|
@ -391,7 +391,7 @@ define(
|
|||||||
getDomainObjects()
|
getDomainObjects()
|
||||||
.then(filterForTelemetry)
|
.then(filterForTelemetry)
|
||||||
.then(this.loadColumns)
|
.then(this.loadColumns)
|
||||||
//.then(this.subscribeToNewData)
|
.then(this.subscribeToNewData)
|
||||||
.then(this.getHistoricalData)
|
.then(this.getHistoricalData)
|
||||||
.catch(error)
|
.catch(error)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user