Skip to content

Commit

Permalink
Tweak algorithm-related XML example
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Sep 9, 2024
1 parent b745074 commit 4a44f71
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/yamcs/mdb/xtce.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
<Parameter name="Battery2_Temp" parameterTypeRef="float_t" />
<Parameter name="Magnetometer" parameterTypeRef="vec3_t" />
<Parameter name="Sunsensor" parameterTypeRef="float_t" />
<Parameter name="Sunsensor_Beta" parameterTypeRef="float_t" />
<Parameter name="Sunsensor_Beta" parameterTypeRef="float_t">
<ParameterProperties dataSource="derived" />
</Parameter>
<Parameter name="Gyro" parameterTypeRef="vec3_t" />
<Parameter name="Detector_Temp" parameterTypeRef="float_t" />
<Parameter name="Shadow" parameterTypeRef="bool_t" />
Expand Down Expand Up @@ -166,7 +168,6 @@
<ParameterRefEntry parameterRef="Battery2_Temp" />
<ParameterRefEntry parameterRef="Magnetometer" />
<ParameterRefEntry parameterRef="Sunsensor" />
<ParameterRefEntry parameterRef="Sunsensor_Beta" />
<ParameterRefEntry parameterRef="Gyro" />
<ParameterRefEntry parameterRef="Detector_Temp" />
<ParameterRefEntry parameterRef="Shadow" />
Expand Down Expand Up @@ -214,17 +215,15 @@
</ContainerSet>
<AlgorithmSet>
<CustomAlgorithm name="copySunsensor">
<AlgorithmText language="java-expression">
out0.setFloatValue(in.getEngValue().getFloatValue());
</AlgorithmText>
<AlgorithmText language="java-expression">out0.setFloatValue(in.getEngValue().getFloatValue());</AlgorithmText>
<InputSet>
<InputParameterInstanceRef parameterRef="/myproject/Sunsensor" inputName="in"/>
<InputParameterInstanceRef parameterRef="Sunsensor" inputName="in"/>
</InputSet>
<OutputSet>
<OutputParameterRef parameterRef="Sunsensor_Beta" outputName="out0"/>
</OutputSet>
<TriggerSet>
<OnParameterUpdateTrigger parameterRef="/myproject/Sunsensor"/>
<OnParameterUpdateTrigger parameterRef="Sunsensor"/>
</TriggerSet>
</CustomAlgorithm>
</AlgorithmSet>
Expand Down

0 comments on commit 4a44f71

Please sign in to comment.