mirror of
https://github.com/nasa/openmct.git
synced 2025-04-07 11:26:49 +00:00
[Limits] Add metadata to SWGs
Add telemetry metadata to Sine Wave Generators to support utilizing telemetry in a 'datum' format, to match designed API for WTD-1223.
This commit is contained in:
parent
35b5b29d03
commit
781a1a4be5
@ -29,7 +29,23 @@
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"source": "generator"
|
||||
"source": "generator",
|
||||
"domains": [
|
||||
{
|
||||
"key": "time",
|
||||
"name": "Time"
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
{
|
||||
"key": "sin",
|
||||
"name": "Sine"
|
||||
},
|
||||
{
|
||||
"key": "cos",
|
||||
"name": "Cosine"
|
||||
}
|
||||
]
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
|
@ -61,6 +61,7 @@ define(
|
||||
return LIMITS;
|
||||
},
|
||||
evaluate: function (datum, range) {
|
||||
range = range || 'sin';
|
||||
if (datum[range] > RED) {
|
||||
return LIMITS.rh;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user