mirror of
https://github.com/nasa/openmct.git
synced 2025-04-23 10:23:43 +00:00
[Limits] Use datum for sinewave limits
Use forward-looking notion of a datum for sine wave generator limits, WTD-1223.
This commit is contained in:
parent
4544167b50
commit
ea3be6db49
@ -60,17 +60,17 @@ define(
|
||||
limits: function (range) {
|
||||
return LIMITS;
|
||||
},
|
||||
evaluate: function (value, range) {
|
||||
if (value > RED) {
|
||||
evaluate: function (datum, range) {
|
||||
if (datum[range] > RED) {
|
||||
return LIMITS.rh;
|
||||
}
|
||||
if (value < -RED) {
|
||||
if (datum[range] < -RED) {
|
||||
return LIMITS.rl;
|
||||
}
|
||||
if (value > YELLOW) {
|
||||
if (datum[range] > YELLOW) {
|
||||
return LIMITS.yh;
|
||||
}
|
||||
if (value < -YELLOW) {
|
||||
if (datum[range] < -YELLOW) {
|
||||
return LIMITS.yl;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user