Skip to content

Commit

Permalink
op/Boy: Fix rounding problem for motor 7.09
Browse files Browse the repository at this point in the history
Fix (another) problem for comparing motor version 7.09 with 7.09:
The comparison failed, because of floating point rounding issues.
Use 7.091 instead of 7.09, similar to test/pytest36/AxisMr.py
Changes to be committed:
    modified:   ../ethercatmcaxisExpert-ecmc.opi
    modified:   ../ethercatmcaxisExpert-tc-ptp.opi
    modified:   ../ethercatmcaxisExpert-tc.opi
    modified:   ethercatmcaxisExpert.mid
  • Loading branch information
tboegi committed Mar 18, 2024
1 parent 13858f1 commit d8aeea6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ethercatmcExApp/op/Boy/ethercatmcaxisExpert-ecmc.opi
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ $(pv_value)</tooltip>
<read_only>false</read_only>
<rules>
<rule name="ACCS-Visible" prop_id="visible" out_exp="false">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.09))">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.091))">
<value>false</value>
</exp>
<exp bool_exp="((pv0 &gt; 6.95) &amp;&amp; (pv0 &lt; 7.10))">
Expand Down
2 changes: 1 addition & 1 deletion ethercatmcExApp/op/Boy/ethercatmcaxisExpert-tc-ptp.opi
Original file line number Diff line number Diff line change
Expand Up @@ -3332,7 +3332,7 @@ $(pv_value)</tooltip>
<read_only>false</read_only>
<rules>
<rule name="ACCS-Visible" prop_id="visible" out_exp="false">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.09))">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.091))">
<value>false</value>
</exp>
<exp bool_exp="((pv0 &gt; 6.95) &amp;&amp; (pv0 &lt; 7.10))">
Expand Down
2 changes: 1 addition & 1 deletion ethercatmcExApp/op/Boy/ethercatmcaxisExpert-tc.opi
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ $(pv_value)</tooltip>
<read_only>false</read_only>
<rules>
<rule name="ACCS-Visible" prop_id="visible" out_exp="false">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.09))">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.091))">
<value>false</value>
</exp>
<exp bool_exp="((pv0 &gt; 6.95) &amp;&amp; (pv0 &lt; 7.10))">
Expand Down
2 changes: 1 addition & 1 deletion ethercatmcExApp/op/Boy/tools/ethercatmcaxisExpert.mid
Original file line number Diff line number Diff line change
Expand Up @@ -2969,7 +2969,7 @@ $(pv_value)</tooltip>
<read_only>false</read_only>
<rules>
<rule name="ACCS-Visible" prop_id="visible" out_exp="false">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.09))">
<exp bool_exp="((pv0 &lt; 6.96) || (pv0 &gt; 7.091))">
<value>false</value>
</exp>
<exp bool_exp="((pv0 &gt; 6.95) &amp;&amp; (pv0 &lt; 7.10))">
Expand Down

0 comments on commit d8aeea6

Please sign in to comment.