mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 23:12:23 +00:00
510d3bd333
* Notebook conflict auto retry 1.7.7 (#4230) * Use timeFormatter.parse to get the timestamp of imagery since the source could be something other than key (#4238) * If there is a pending create request for an id, queue a duplicate request. (#4243) * [Telemetry Tables] Handling Request Loading (#4245) * Fix file selection on pressing enter key (#4246) * starting loading as false, since that makes sense (#4247) * Hide independent time conductor mode if only 1 mode option is available. (#4250) * Fix bargraph color selection (#4253) * snapshot clicked while in edit mode should open in preview mode #4115 (#4257) * Fix missing object handling in several vues (#4259) * Flexible Layouts display Condition Sets as their editing/browsing interface (#4179) * Flexible Layouts display Condition Sets as their editing/browsing interface #4141 * [Telemetry Table] Progress bar tests (#4249) * Remove alert styling and hide pause button if in Fixed Time mode. (#4263) * [Table/Collection Fixes] Clearing correctly, no mutating options, no duplicate requests (#4261) * Condition sets only persist if actively editing (#4262) * Imagery views should follow time context (#4264) * Equal stacked plot y widths for all it's sub-plots (#4267) * Fix Bar Graph related CSS (#4270) * Bar graph review comment fixes (#4232) * Mct4196 - Fixes Conditional Styling not being applied when editing a Condition Widget (#4255) * Fix plot zoom when child of time strip (#4272) * Resume plot if no pan, zoom, or drag action is taken (#4138) (#4256) * [Telemetry Collection] No duplicate requests on load (#4274) * doing the easy thing first (#4278) * Bargraph time metadata should consider 'source' (#4289) * Show clicked image in large view (#4280) * added icon for inspector (#4275) * Bar graph style nullcheck (#4291) * Stacked plots need to align the Y axis (#4286) * Duplicate Request Fixes (#4295) * Add braintree sanitize url lib and sanitize form urls (#4296) * Mct4177 fix for telemetry endpoints with '.' in the key (#4308) * Remove additional request to load plots when mounted. (#4314) * Fix plots dup requests (#4324) * Merging 1.7.8 into master. Co-authored-by: Andrew Henry <akhenry@gmail.com> Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov> Co-authored-by: Nikhil <nikhil.k.mandlik@nasa.gov> Co-authored-by: Khalid Adil <khalidadil29@gmail.com> Co-authored-by: Charles Hacskaylo <charlesh88@gmail.com> Co-authored-by: Scott Bell <scott@traclabs.com> Co-authored-by: Michael Rogers <michael@mhrogers.com>
155 lines
5.4 KiB
JavaScript
155 lines
5.4 KiB
JavaScript
/*****************************************************************************
|
|
* Open MCT, Copyright (c) 2014-2021, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT is licensed under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*
|
|
* Open MCT includes source code licensed under additional open source
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
* this source code distribution or the Licensing information page available
|
|
* at runtime from the About dialog for additional information.
|
|
*****************************************************************************/
|
|
|
|
define([
|
|
"./GeneratorProvider",
|
|
"./SinewaveLimitProvider",
|
|
"./StateGeneratorProvider",
|
|
"./GeneratorMetadataProvider"
|
|
], function (
|
|
GeneratorProvider,
|
|
SinewaveLimitProvider,
|
|
StateGeneratorProvider,
|
|
GeneratorMetadataProvider
|
|
) {
|
|
|
|
return function (openmct) {
|
|
|
|
openmct.types.addType("example.state-generator", {
|
|
name: "State Generator",
|
|
description: "For development use. Generates test enumerated telemetry by cycling through a given set of states",
|
|
cssClass: "icon-generator-telemetry",
|
|
creatable: true,
|
|
form: [
|
|
{
|
|
name: "State Duration (seconds)",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "duration",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"duration"
|
|
]
|
|
}
|
|
],
|
|
initialize: function (object) {
|
|
object.telemetry = {
|
|
duration: 5
|
|
};
|
|
}
|
|
});
|
|
|
|
openmct.telemetry.addProvider(new StateGeneratorProvider());
|
|
|
|
openmct.types.addType("generator", {
|
|
name: "Sine Wave Generator",
|
|
description: "For development use. Generates example streaming telemetry data using a simple sine wave algorithm.",
|
|
cssClass: "icon-generator-telemetry",
|
|
creatable: true,
|
|
form: [
|
|
{
|
|
name: "Period",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "period",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"period"
|
|
]
|
|
},
|
|
{
|
|
name: "Amplitude",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "amplitude",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"amplitude"
|
|
]
|
|
},
|
|
{
|
|
name: "Offset",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "offset",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"offset"
|
|
]
|
|
},
|
|
{
|
|
name: "Data Rate (hz)",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "dataRateInHz",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"dataRateInHz"
|
|
]
|
|
},
|
|
{
|
|
name: "Phase (radians)",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "phase",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"phase"
|
|
]
|
|
},
|
|
{
|
|
name: "Randomness",
|
|
control: "numberfield",
|
|
cssClass: "l-input-sm l-numeric",
|
|
key: "randomness",
|
|
required: true,
|
|
property: [
|
|
"telemetry",
|
|
"randomness"
|
|
]
|
|
}
|
|
],
|
|
initialize: function (object) {
|
|
object.telemetry = {
|
|
period: 10,
|
|
amplitude: 1,
|
|
offset: 0,
|
|
dataRateInHz: 1,
|
|
phase: 0,
|
|
randomness: 0
|
|
};
|
|
}
|
|
});
|
|
|
|
openmct.telemetry.addProvider(new GeneratorProvider());
|
|
openmct.telemetry.addProvider(new GeneratorMetadataProvider());
|
|
openmct.telemetry.addProvider(new SinewaveLimitProvider());
|
|
};
|
|
|
|
});
|