Commit 6690b5d
committed
harden: reject non-physical (degree-valued) cone and uptilt angles
WindIO stores angles in radians (SI): the IEA references carry cone_angle
0.0698 (4 deg), uptilt 0.1047 (6 deg) and root twist 0.2094 (12 deg), and
the auto-RNA reads them directly, which the IEA-22 deck cross-check
confirms to <0.5 % on CM. A hand-authored file that leaves an angle in
degrees (cone_angle: 4 meaning 4 deg) would otherwise be evaluated at
4 rad = 229 deg and silently corrupt the coned lever and axial offset.
Guard cone_angle and uptilt against a physical +/-45 deg bound so that
mistake fails loudly with a message naming the radians convention.1 parent bf23bbe commit 6690b5d
2 files changed
Lines changed: 47 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
735 | 756 | | |
736 | 757 | | |
737 | 758 | | |
| |||
1055 | 1076 | | |
1056 | 1077 | | |
1057 | 1078 | | |
1058 | | - | |
| 1079 | + | |
1059 | 1080 | | |
1060 | 1081 | | |
1061 | 1082 | | |
| |||
1082 | 1103 | | |
1083 | 1104 | | |
1084 | 1105 | | |
1085 | | - | |
| 1106 | + | |
1086 | 1107 | | |
1087 | 1108 | | |
1088 | 1109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
203 | 227 | | |
204 | 228 | | |
205 | 229 | | |
| |||
0 commit comments