mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 21:28:12 +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:
@ -29,7 +29,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"telemetry": {
|
"telemetry": {
|
||||||
"source": "generator"
|
"source": "generator",
|
||||||
|
"domains": [
|
||||||
|
{
|
||||||
|
"key": "time",
|
||||||
|
"name": "Time"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ranges": [
|
||||||
|
{
|
||||||
|
"key": "sin",
|
||||||
|
"name": "Sine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cos",
|
||||||
|
"name": "Cosine"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
|
@ -61,6 +61,7 @@ define(
|
|||||||
return LIMITS;
|
return LIMITS;
|
||||||
},
|
},
|
||||||
evaluate: function (datum, range) {
|
evaluate: function (datum, range) {
|
||||||
|
range = range || 'sin';
|
||||||
if (datum[range] > RED) {
|
if (datum[range] > RED) {
|
||||||
return LIMITS.rh;
|
return LIMITS.rh;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user