-
Key: XTCE13-112
-
Status: closed
-
Source: NASA ( Mr. James Kevin Rice)
-
Summary:
This seems an old issue. Slope is optional and intercept is optional. But intercept defaults to 0. Slope has no default. The generated classes then return a Double and double. Seems like slope=1 by default would be a good thing.
Btw there's a related issue of having this return doubles when they are only being used in non-float number evaluation.
-
Reported: XTCE 1.2 — Thu, 9 Jul 2020 20:39 GMT
-
Disposition: Resolved — XTCE 1.3
-
Disposition Summary:
Fix the LinearAdjustment element to have an effective default of "no change"
By setting a default of slope=1 and intercept=0, the element will always default to no change, making it a little cleaner.
The previous definition for LinearAdjustmentType is:
<complexType name="LinearAdjustmentType">
<annotation>
<documentation xml:lang="en">A slope and intercept may be applied to scale or shift the value of the parameter in the dynamic value</documentation>
</annotation>
<attribute name="slope" type="double"/>
<attribute name="intercept" type="double" default="0"/>
</complexType>Modify this complexType element to add the new default value and also to update the annotation.
<complexType name="LinearAdjustmentType">
<annotation>
<documentation xml:lang="en">A slope and intercept may be applied to scale or shift the value of the parameter in the dynamic value. The default of slope=1 and intercept=0 results in no change to the value.</documentation>
</annotation>
<attribute name="slope" type="double" default="1"/>
<attribute name="intercept" type="double" default="0"/>
</complexType> -
Updated: Tue, 1 Jul 2025 15:05 GMT
XTCE13 — LinearAdjust -- slope should default to 1
- Key: XTCE13-112
- OMG Task Force: XML Telemetric & Command Exchange Format 1.3 (XTCE) RTF