mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 06:52:24 +00:00
781a1a4be5
Add telemetry metadata to Sine Wave Generators to support utilizing telemetry in a 'datum' format, to match designed API for WTD-1223.
64 lines
2.0 KiB
JSON
64 lines
2.0 KiB
JSON
{
|
|
"name": "Sine Wave Generator",
|
|
"description": "Example of a component that produces dataa.",
|
|
"extensions": {
|
|
"components": [
|
|
{
|
|
"implementation": "SinewaveTelemetryProvider.js",
|
|
"type": "provider",
|
|
"provides": "telemetryService",
|
|
"depends": [ "$q", "$timeout" ]
|
|
}
|
|
],
|
|
"capabilities": [
|
|
{
|
|
"key": "limit",
|
|
"implementation": "SinewaveLimitCapability.js"
|
|
}
|
|
],
|
|
"types": [
|
|
{
|
|
"key": "generator",
|
|
"name": "Sine Wave Generator",
|
|
"glyph": "T",
|
|
"description": "A sine wave generator",
|
|
"features": "creation",
|
|
"model": {
|
|
"telemetry": {
|
|
"period": 10
|
|
}
|
|
},
|
|
"telemetry": {
|
|
"source": "generator",
|
|
"domains": [
|
|
{
|
|
"key": "time",
|
|
"name": "Time"
|
|
}
|
|
],
|
|
"ranges": [
|
|
{
|
|
"key": "sin",
|
|
"name": "Sine"
|
|
},
|
|
{
|
|
"key": "cos",
|
|
"name": "Cosine"
|
|
}
|
|
]
|
|
},
|
|
"properties": [
|
|
{
|
|
"name": "Period",
|
|
"control": "textfield",
|
|
"cssclass": "l-small l-numeric",
|
|
"key": "period",
|
|
"required": true,
|
|
"property": [ "telemetry", "period" ],
|
|
"pattern": "^\\d*(\\.\\d*)?$"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |