Change KCL stdlib floating-point results to not be platform dependent (#7499)

* Add libm dependency

* Change to use libm for trig functions

* Remove redactions for floating point

* Update output

* Use clippy to prevent stdlib math sneaking back in

---------

Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
This commit is contained in:
Jonathan Tran
2025-06-16 21:34:50 -04:00
committed by GitHub
parent 1a4a030671
commit 7486d25cf1
433 changed files with 24677 additions and 24672 deletions

View File

@ -59,7 +59,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": 38.1,
"x": 38.099999999999994,
"y": 0.0,
"z": 0.0
}
@ -115,8 +115,8 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": -2.435,
"y": 27.834,
"x": -2.435131452369571,
"y": 27.83367986468337,
"z": 0.0
},
"relative": true
@ -132,8 +132,8 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "tangential_arc_to",
"to": {
"x": -5.185,
"y": 4.678,
"x": -5.184868547630427,
"y": 4.678320135316629,
"z": 0.0
},
"angle_snap_increment": null
@ -150,7 +150,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "line",
"end": {
"x": 0.0,
"y": 34.544,
"y": 34.544000000000004,
"z": 0.0
},
"relative": false
@ -217,8 +217,8 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": 0.449,
"y": 0.449,
"x": 0.4490128060534577,
"y": 0.44901280605345767,
"z": 0.0
},
"relative": true
@ -251,8 +251,8 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": -0.449,
"y": 0.449,
"x": -0.44901280605345767,
"y": 0.4490128060534577,
"z": 0.0
},
"relative": true
@ -319,8 +319,8 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": 7.938,
"y": -10.659,
"x": 7.9375,
"y": -10.658974387893085,
"z": 0.0
},
"relative": false
@ -336,7 +336,7 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": 7.938,
"x": 7.9375,
"y": -6.35,
"z": 0.0
},
@ -353,7 +353,7 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": 15.24,
"x": 15.239999999999998,
"y": -6.35,
"z": 0.0
},
@ -370,7 +370,7 @@ description: Artifact commands telemetry-antenna.kcl
"segment": {
"type": "line",
"end": {
"x": 15.24,
"x": 15.239999999999998,
"y": 0.0,
"z": 0.0
},
@ -463,7 +463,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": 34.239,
"x": 34.2392,
"y": 0.0,
"z": 0.0
}
@ -608,8 +608,8 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": 18.364,
"y": 27.496,
"x": 18.364199999999997,
"y": 27.49630645,
"z": 0.0
}
}
@ -631,7 +631,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "arc",
"center": {
"x": 15.875,
"y": 27.496
"y": 27.49630645
},
"radius": 2.4892,
"start": {
@ -753,8 +753,8 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": -13.386,
"y": 27.496,
"x": -13.3858,
"y": 27.49630645,
"z": 0.0
}
}
@ -776,7 +776,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "arc",
"center": {
"x": -15.875,
"y": 27.496
"y": 27.49630645
},
"radius": 2.4892,
"start": {
@ -898,7 +898,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": -29.261,
"x": -29.260799999999996,
"y": 0.0,
"z": 0.0
}
@ -1043,8 +1043,8 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": -13.386,
"y": -27.496,
"x": -13.3858,
"y": -27.49630645,
"z": 0.0
}
}
@ -1066,7 +1066,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "arc",
"center": {
"x": -15.875,
"y": -27.496
"y": -27.49630645
},
"radius": 2.4892,
"start": {
@ -1188,8 +1188,8 @@ description: Artifact commands telemetry-antenna.kcl
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": 18.364,
"y": -27.496,
"x": 18.364199999999997,
"y": -27.49630645,
"z": 0.0
}
}
@ -1211,7 +1211,7 @@ description: Artifact commands telemetry-antenna.kcl
"type": "arc",
"center": {
"x": 15.875,
"y": -27.496
"y": -27.49630645
},
"radius": 2.4892,
"start": {

View File

@ -1944,7 +1944,7 @@ description: Operations executed telemetry-antenna.kcl
"name": "PI",
"value": {
"type": "Number",
"value": 3.142,
"value": 3.141592653589793,
"ty": {
"type": "Unknown"
}
@ -1960,7 +1960,7 @@ description: Operations executed telemetry-antenna.kcl
"name": "E",
"value": {
"type": "Number",
"value": 2.718,
"value": 2.718281828459045,
"ty": {
"type": "Known",
"type": "Count"
@ -1977,7 +1977,7 @@ description: Operations executed telemetry-antenna.kcl
"name": "TAU",
"value": {
"type": "Number",
"value": 6.283,
"value": 6.283185307179586,
"ty": {
"type": "Known",
"type": "Count"

View File

@ -71,7 +71,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"value": "seg03"
},
"to": [
0.325,
0.32499999999999996,
0.08
],
"type": "ToPoint",
@ -85,7 +85,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.325,
0.32499999999999996,
0.08
],
"tag": {
@ -96,8 +96,8 @@ description: Variables in memory after executing telemetry-antenna.kcl
"value": "seg01"
},
"to": [
0.229,
1.176
0.22912868297757588,
1.1758141679009202
],
"type": "ToPoint",
"units": {
@ -111,12 +111,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"ccw": true,
"center": [
0.028,
1.158
0.028099146257114883,
1.1582263624040114
],
"from": [
0.229,
1.176
0.22912868297757588,
1.1758141679009202
],
"tag": null,
"to": [
@ -221,8 +221,8 @@ description: Variables in memory after executing telemetry-antenna.kcl
],
"tag": null,
"to": [
0.268,
-0.712
0.2676776695296637,
-0.7123223304703363
],
"type": "ToPoint",
"units": {
@ -235,13 +235,13 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.268,
-0.712
0.2676776695296637,
-0.7123223304703363
],
"tag": null,
"to": [
0.268,
-0.587
0.2676776695296637,
-0.5873223304703363
],
"type": "ToPoint",
"units": {
@ -254,13 +254,13 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.268,
-0.587
0.2676776695296637,
-0.5873223304703363
],
"tag": null,
"to": [
0.25,
-0.57
-0.5696446609406727
],
"type": "ToPoint",
"units": {
@ -274,12 +274,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.25,
-0.57
-0.5696446609406727
],
"tag": null,
"to": [
0.25,
-0.445
-0.4446446609406727
],
"type": "ToPoint",
"units": {
@ -293,12 +293,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.25,
-0.445
-0.4446446609406727
],
"tag": null,
"to": [
0.275,
-0.445
-0.4446446609406727
],
"type": "ToPoint",
"units": {
@ -312,12 +312,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.275,
-0.445
-0.4446446609406727
],
"tag": null,
"to": [
0.275,
-0.42
-0.41964466094067265
],
"type": "ToPoint",
"units": {
@ -331,12 +331,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.275,
-0.42
-0.41964466094067265
],
"tag": null,
"to": [
0.313,
-0.42
0.3125,
-0.41964466094067265
],
"type": "ToPoint",
"units": {
@ -349,12 +349,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.313,
-0.42
0.3125,
-0.41964466094067265
],
"tag": null,
"to": [
0.313,
0.3125,
-0.25
],
"type": "ToPoint",
@ -368,7 +368,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.313,
0.3125,
-0.25
],
"tag": null,
@ -681,7 +681,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"value": "seg03"
},
"to": [
0.325,
0.32499999999999996,
0.08
],
"type": "ToPoint",
@ -695,7 +695,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.325,
0.32499999999999996,
0.08
],
"tag": {
@ -706,8 +706,8 @@ description: Variables in memory after executing telemetry-antenna.kcl
"value": "seg01"
},
"to": [
0.229,
1.176
0.22912868297757588,
1.1758141679009202
],
"type": "ToPoint",
"units": {
@ -721,12 +721,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"ccw": true,
"center": [
0.028,
1.158
0.028099146257114883,
1.1582263624040114
],
"from": [
0.229,
1.176
0.22912868297757588,
1.1758141679009202
],
"tag": null,
"to": [
@ -831,8 +831,8 @@ description: Variables in memory after executing telemetry-antenna.kcl
],
"tag": null,
"to": [
0.268,
-0.712
0.2676776695296637,
-0.7123223304703363
],
"type": "ToPoint",
"units": {
@ -845,13 +845,13 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.268,
-0.712
0.2676776695296637,
-0.7123223304703363
],
"tag": null,
"to": [
0.268,
-0.587
0.2676776695296637,
-0.5873223304703363
],
"type": "ToPoint",
"units": {
@ -864,13 +864,13 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.268,
-0.587
0.2676776695296637,
-0.5873223304703363
],
"tag": null,
"to": [
0.25,
-0.57
-0.5696446609406727
],
"type": "ToPoint",
"units": {
@ -884,12 +884,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.25,
-0.57
-0.5696446609406727
],
"tag": null,
"to": [
0.25,
-0.445
-0.4446446609406727
],
"type": "ToPoint",
"units": {
@ -903,12 +903,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.25,
-0.445
-0.4446446609406727
],
"tag": null,
"to": [
0.275,
-0.445
-0.4446446609406727
],
"type": "ToPoint",
"units": {
@ -922,12 +922,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.275,
-0.445
-0.4446446609406727
],
"tag": null,
"to": [
0.275,
-0.42
-0.41964466094067265
],
"type": "ToPoint",
"units": {
@ -941,12 +941,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
},
"from": [
0.275,
-0.42
-0.41964466094067265
],
"tag": null,
"to": [
0.313,
-0.42
0.3125,
-0.41964466094067265
],
"type": "ToPoint",
"units": {
@ -959,12 +959,12 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.313,
-0.42
0.3125,
-0.41964466094067265
],
"tag": null,
"to": [
0.313,
0.3125,
-0.25
],
"type": "ToPoint",
@ -978,7 +978,7 @@ description: Variables in memory after executing telemetry-antenna.kcl
"sourceRange": []
},
"from": [
0.313,
0.3125,
-0.25
],
"tag": null,