powertrain-build 1.14.0__py3-none-any.whl → 1.14.1.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- powertrain_build/zone_controller/calibration.py +18 -3
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/METADATA +1 -1
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/RECORD +10 -10
- powertrain_build-1.14.1.dev2.dist-info/pbr.json +1 -0
- powertrain_build-1.14.0.dist-info/pbr.json +0 -1
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/WHEEL +0 -0
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/entry_points.txt +0 -0
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/AUTHORS +0 -0
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/LICENSE +0 -0
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/NOTICE +0 -0
- {powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@ class ZoneControllerCalibration(ProblemLogger):
|
|
|
15
15
|
calibration_function_step_template = '{swc_name}_ZcCalibrationStep'
|
|
16
16
|
trigger_read_rte_cdata_signal = {
|
|
17
17
|
'name_template': 'c{swc_name}_TriggerReadRteCData',
|
|
18
|
-
'data_type': '
|
|
18
|
+
'data_type': 'UInt8'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
def __init__(self, build_cfg, calib_data):
|
|
@@ -45,7 +45,22 @@ class ZoneControllerCalibration(ProblemLogger):
|
|
|
45
45
|
for signal_name, signal_data in self.calibration_variables.items():
|
|
46
46
|
rte_call = f'Rte_CData_{self.swc_name}_{signal_name}()'
|
|
47
47
|
if isinstance(signal_data["width"], list):
|
|
48
|
-
|
|
48
|
+
# MAPs get typedef:ed to structs and need special data type mapping
|
|
49
|
+
if signal_name.startswith("m") and signal_name[-2:] not in ["_r", "_c"]:
|
|
50
|
+
write_string_list.append(
|
|
51
|
+
f'{"":{indent}}const {signal_data["autosar_type"]} *{signal_name}_ptr = {rte_call};\n'
|
|
52
|
+
)
|
|
53
|
+
write_string_list.append(
|
|
54
|
+
f'{"":{indent}}memcpy('
|
|
55
|
+
f'{signal_name}, '
|
|
56
|
+
f'{signal_name}_ptr->{signal_data["autosar_type"]}, '
|
|
57
|
+
f'sizeof({signal_name})'
|
|
58
|
+
');\n'
|
|
59
|
+
)
|
|
60
|
+
else:
|
|
61
|
+
write_string_list.append(
|
|
62
|
+
f'{"":{indent}}memcpy({signal_name}, {rte_call}, sizeof({signal_name}));\n'
|
|
63
|
+
)
|
|
49
64
|
else:
|
|
50
65
|
write_string_list.append(f'{"":{indent}}{signal_name} = {rte_call};\n')
|
|
51
66
|
return write_string_list
|
|
@@ -123,7 +138,7 @@ class ZoneControllerCalibration(ProblemLogger):
|
|
|
123
138
|
lines_to_write.append('\n')
|
|
124
139
|
for signal_name, signal_data in self.calibration_variables.items():
|
|
125
140
|
if isinstance(signal_data["width"], list):
|
|
126
|
-
# MAPs get typedef:ed to structs and need special data type mapping
|
|
141
|
+
# MAPs get typedef:ed to structs and need special data type mapping
|
|
127
142
|
if signal_name.startswith("m") and signal_name[-2:] not in ["_r", "_c"]:
|
|
128
143
|
return_type = f'const {signal_data["autosar_type"]}*'
|
|
129
144
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: powertrain-build
|
|
3
|
-
Version: 1.14.
|
|
3
|
+
Version: 1.14.1.dev2
|
|
4
4
|
Summary: A Continuous Integration (CI) build system testing all configurations where a Simulink model is used.
|
|
5
5
|
Home-page: https://opendev.org/volvocars/powertrain-build
|
|
6
6
|
Download-URL: https://pypi.org/project/powertrain-build/
|
|
@@ -117,14 +117,14 @@ powertrain_build/matlab_scripts/helperFunctions/updateModels.m,sha256=3hD54qmo2V
|
|
|
117
117
|
powertrain_build/templates/Index_SigCheck_All.html,sha256=psLtxiw5UChCs35tYGwVkGujXHJNw3ibFaZc-JMMPdg,1602
|
|
118
118
|
powertrain_build/templates/Index_SigIf_All.html,sha256=7hwH6XSrrh5sDDJAnGdJTjzI7HwOeZFfve60Ke4Wa_Q,1433
|
|
119
119
|
powertrain_build/zone_controller/__init__.py,sha256=tzftZINv5NTXFxXz5H_ptDywSCr49cll2CVFtv4HyF8,113
|
|
120
|
-
powertrain_build/zone_controller/calibration.py,sha256=
|
|
120
|
+
powertrain_build/zone_controller/calibration.py,sha256=JR2DqZPwgGvOidXWRyhO9Rz17NKRBmtFL7IADqKdT-0,9116
|
|
121
121
|
powertrain_build/zone_controller/composition_yaml.py,sha256=0dCnmvFFh9GPjDgHqAQjKOl75DocqWwrueOOXql6rhY,41726
|
|
122
|
-
powertrain_build-1.14.
|
|
123
|
-
powertrain_build-1.14.
|
|
124
|
-
powertrain_build-1.14.
|
|
125
|
-
powertrain_build-1.14.
|
|
126
|
-
powertrain_build-1.14.
|
|
127
|
-
powertrain_build-1.14.
|
|
128
|
-
powertrain_build-1.14.
|
|
129
|
-
powertrain_build-1.14.
|
|
130
|
-
powertrain_build-1.14.
|
|
122
|
+
powertrain_build-1.14.1.dev2.dist-info/licenses/AUTHORS,sha256=tP9V0duq5X9hw2pos8WTLXN7kNHmVnhJqpmBFqIdHKI,276
|
|
123
|
+
powertrain_build-1.14.1.dev2.dist-info/licenses/LICENSE,sha256=0tJvKn_0AWjVNJ4hkDXhVQZLOdCNwR_2u0UcxVrToOg,10452
|
|
124
|
+
powertrain_build-1.14.1.dev2.dist-info/licenses/NOTICE,sha256=NIT_NaKZs4t_tVT4VO_AtJl3X39O8nL8L3pGXn9jK8M,465187
|
|
125
|
+
powertrain_build-1.14.1.dev2.dist-info/METADATA,sha256=7C01G-Ex0XZDvgzxnWBqrkQPJJGqnX-LGdfE65GAZJ8,5222
|
|
126
|
+
powertrain_build-1.14.1.dev2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
127
|
+
powertrain_build-1.14.1.dev2.dist-info/entry_points.txt,sha256=CdE3i43zDAllglVE3fwvKa7i0jvNqvipZJu0GTS5VOg,63
|
|
128
|
+
powertrain_build-1.14.1.dev2.dist-info/pbr.json,sha256=DYQflvn3zA3RirHeY6987KvTq7xFrt8m-8PfQW9-KuY,47
|
|
129
|
+
powertrain_build-1.14.1.dev2.dist-info/top_level.txt,sha256=wAaR8OQEH2mb8_gudmo4l_RoNXgWvnB845ckD1BsguA,17
|
|
130
|
+
powertrain_build-1.14.1.dev2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "70e7bdf", "is_release": false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "791f4c9", "is_release": true}
|
|
File without changes
|
{powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/AUTHORS
RENAMED
|
File without changes
|
{powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{powertrain_build-1.14.0.dist-info → powertrain_build-1.14.1.dev2.dist-info}/licenses/NOTICE
RENAMED
|
File without changes
|
|
File without changes
|