mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 01:48:51 +00:00
[Plot] Fix wiring on plot updater
Fix usages of the plot updater, introduced to track real-time telemetry to remove the need to cache values elsewhere. This allows memory usage to be decreased for WTD-751.
This commit is contained in:
parent
57f20ba110
commit
5e2e0b4116
@ -21,7 +21,7 @@
|
||||
{
|
||||
"key": "PlotController",
|
||||
"implementation": "PlotController.js",
|
||||
"depends": [ "$scope", "telemetryFormatter" ]
|
||||
"depends": [ "$scope", "telemetryFormatter", "telemetrySubscriber" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -113,7 +113,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<span class="t-wait-spinner loading" ng-show="plot.isRequestPending">
|
||||
<span class="t-wait-spinner loading" ng-show="plot.isRequestPending()">
|
||||
</span>
|
||||
</div>
|
||||
<div ng-if="$last" class="gl-plot-axis-area gl-plot-x">
|
||||
|
@ -78,7 +78,10 @@ define(
|
||||
}
|
||||
|
||||
function updateValues() {
|
||||
modeOptions.getModeHandler().plotTelemetry(updater);
|
||||
if (updater) {
|
||||
updater.update();
|
||||
modeOptions.getModeHandler().plotTelemetry(updater);
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
@ -92,8 +95,10 @@ define(
|
||||
domainObject,
|
||||
updateValues
|
||||
);
|
||||
setupAxes(subscription.getMetadata());
|
||||
recreateUpdater();
|
||||
if (subscription) {
|
||||
setupAxes(subscription.getMetadata());
|
||||
recreateUpdater();
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$watch('domainObject', subscribe);
|
||||
|
@ -38,7 +38,7 @@ define(
|
||||
return {
|
||||
buffer: buf,
|
||||
color: PlotPalette.getFloatColor(i),
|
||||
points: buf.length / 2
|
||||
points: prepared.getLength(i)
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -35,7 +35,7 @@ define(
|
||||
subplot.getDrawingObject().lines = [{
|
||||
buffer: buffer,
|
||||
color: PlotPalette.getFloatColor(0),
|
||||
points: buffer.length / 2
|
||||
points: prepared.getLength(index)
|
||||
}];
|
||||
|
||||
subplot.update();
|
||||
|
Loading…
Reference in New Issue
Block a user