30 Commits

Author SHA1 Message Date
olindgre
f6b42534e3 Adding lsb, offset to curves and maps
If this is not wanted, add scaleMapsAndCurves: false to composition
config in project config (default true).

Change-Id: Iaca39b9371be07e81c0ace2ba63c9ea0c57d4a8f
2025-01-31 11:51:20 +01:00
Henrik Wahlqvist
6b5b321881 Copy all keys in parsed ZC files
* Also adding mode_switch_points key to runnables

Change-Id: I8819cc817e4bd272bf3f62671cfb619b5d3e5b9d
2025-01-30 15:18:04 +01:00
Lindgren
f939ff9242 Allow comments in enum definition file
This change allow comments around the enum member definitions in matlab
enum definition files. The comments is not transfered to the generated
source code.

Change-Id: I1770f1cdfc8e9cba83f58417c1d0b03a17ecb1d3
2025-01-29 09:20:41 +01:00
Henrik Wahlqvist
dce0d1910b Also init calibration variables in the calibration init function
Change-Id: I777590427fb4e15c7a61f45313f120c089c28315
2025-01-22 10:18:22 +01:00
Henrik Wahlqvist
abc94d70d2 Bug fix in rte_dummy.py
dt_NVM_LIST_X is not available when useRteNvmStructs is false so it
should use the structs from nvm_def.py instead.

Change-Id: I87555e9af9099a575d26fb2c01727698f51091d8
2025-01-17 15:36:05 +01:00
Zuul
1ceaf4832f Merge "Update towards breaking yaml generator changes" 2025-01-17 10:15:31 +00:00
Henrik Wahlqvist
76390d71f7 Update towards breaking yaml generator changes
Change-Id: I456b9f1bc4545600af78908886968c9b7c313309
2025-01-17 09:56:31 +01:00
Henrik Wahlqvist
2a7fb908c4 Fixing RTE Checkpoint ID feature
* Add possibility to generate the data type in RteDummy.
* Scheduling functions should include Rte_Type.h when
  generateRteCheckpintIds is true.

Change-Id: I1a3d8f6f5cfe8bc431553a9a4d32f8c57c22a77a
2025-01-16 16:07:24 +01:00
Henrik Wahlqvist
0a8a2d69a6 Add option for generating RTE dummy files
Change-Id: Ie90031808b8cf47f6542caa73014445c803a2f94
2025-01-16 10:57:37 +01:00
Henrik Wahlqvist
ef521427c8 Fix in ZC NVM generation
We need to use the struct definitions from the RTE.

Change-Id: I6e380ab5a153cd725e229fe03bffc8887105eed4
2025-01-16 10:57:32 +01:00
olindgre
e95b0f0394 Enable enums in interface for zone controller
* Option to map TL generated enums to rte counterparts using
  'mapEnumsToRteCounterpart' in project config. This allows using enums
  directly in the interface.
* Added option to 'includeAllEnums' in project config. This adds all
  enums found in enumDefDir to header files, allowing projects to
  add their use in interfaces before they are added to model code.

Change-Id: I0cac83e3be3514cbc15e02de6d5f7ca519c3cea6
2025-01-08 17:46:24 +01:00
Henrik Wahlqvist
cee323b493 Clean out remains of useSwcNameAsPrefix
Wasn't properly removed in b93719754e841df2c83d24363e2cf0f64e02e809

Change-Id: Id83922d2da84c80e772773ffd283dd9cee4b027c
2025-01-08 14:47:30 +01:00
Zuul
bf352ef7e1 Merge "Updates to be able to generate NVM RTE function calls" 2024-11-07 09:48:26 +00:00
Zuul
b78b6e6bda Merge "Adding NVM functionality to composition_yaml" 2024-11-07 09:48:25 +00:00
Henrik Wahlqvist
9e2c29fd4a Bug fix, order in calibration.py
Change-Id: Ic5144b7431c8f76248a47761863b046e03057078
2024-11-04 12:04:44 +01:00
Henrik Wahlqvist
e36e378e9b Updates to be able to generate NVM RTE function calls
Change-Id: If692ccdf96403b7132735b70bfd8be4a96458ff8
2024-10-30 12:49:06 +01:00
Henrik Wahlqvist
b55335a3a4 Adding NVM functionality to composition_yaml
This change does not include generating RTE calls,
it only updates the yaml2arxml input.

Change-Id: I67f32d3c31dccf0b290c6e5c934d71e27b1b439d
2024-10-30 10:54:50 +01:00
Axel Andersson
816553f1bc Added powertrain-build entrypoint
The entrypoint will make it easier to install powertrain-build to an
isolated venv without having to call python -m powertrain_build.

Change-Id: I3850c97d17707f9bc03640bd1d997508637d97ba
2024-10-30 10:33:42 +01:00
Henrik Wahlqvist
b93719754e Join the use of useSwcAsPrefix and get_scheduler_prefix
Change-Id: I3c020d64f13b8fb4b298087b7b80195114552526
2024-10-29 13:33:20 +01:00
Henrik Wahlqvist
fc03669666 Add option for supplying custom step function name
Note that this only applies to the runnable in the generated yaml file.

Change-Id: I11eea48b41801d3a0dfc479b6cc489108659bb55
2024-10-22 11:24:06 +00:00
olindgre
7888ebe2b7 Aggregate project settings for ARXML specifications in ProjectCfg
Change-Id: Ia54f7ae0164aeb62361b0839b79b178779616402
2024-10-22 12:51:01 +02:00
Henrik Wahlqvist
4e53b9818a Add option for supplying custom init function name
Note that this only applies to the runnable in the generated yaml file.

Change-Id: I4f6ac188bcfdeddddb390b9627b7cbddcd6456ad
2024-10-04 10:29:02 +02:00
Henrik Wahlqvist
c1e138cb47 Add option for softwareComponentBase
This setting changes the ASIL classification of the software component
by adding the swcbase key to the yaml file.
ZC projects only.

Change-Id: Ic94dbb3cb4ca617f4637066d50ee0817e1e923cc
2024-09-24 16:06:47 +02:00
Henrik Wahlqvist
a280614c1f Make composition_yaml read diagnostics key instead
Diagnostics -> diagnostics (initial lower case d)

Change-Id: Idfc421dad060fa5b874031e5efb4230dc2b99cfa
2024-09-18 12:32:00 +02:00
Henrik Wahlqvist
fda739bc13 Refactor usage of ecu_supplier
Removed most of the decisions based on ecu_supplier and made it more
granular using individual configuration.
Current project types will keep their config by adding templates in the
BaseConfig.json file.
Some usecases were kept for legacy reasons.

Change-Id: I3d6199713006489baff0bf73751596770fd1f968
2024-09-17 08:25:46 +00:00
olindgre
2ece01e1d7 Make powertrain-build not overlap with pybuild in site-packages
Change-Id: I7b59f3f04f0f787d35db0b9389f295bf1ad24f56
2024-09-17 10:25:04 +02:00
Henrik Wahlqvist
e9289cf14a Fixes for ZC diagnostics
* yaml2arxml needs all entries from the diagnostics yaml file.
* DIDs > 1 bytes need to be converted to arrays

Change-Id: I2087c1733131d3b46d028bd49d4c0bb7dc16fbbd
2024-08-27 11:29:21 +00:00
Henrik Wahlqvist
a7b1979768 Add feature for ZC DIDs and DTCs
Change-Id: I170192eb10727b8c569920f925ccfc1a7f82ca08
2024-07-02 16:35:10 +02:00
Henrik Wahlqvist
65c1d746a7 Copy from Volvo Cars local project
We don't transfer git history since it may contain proprietary data that
we cannot have in an open sources version.

Change-Id: I9586124c1720db69a76b9390e208e9f0ba3b86d4
2024-05-29 08:03:54 +02:00
Alberto Gonzalez
05acd5e750 Add tox jobs
This change adds tox jobs that lint and test python code.
Together with the job definition and configuration, this
change adds some dummy directories and tests that should
be replaced once the actual code for this repo is migrated.

Change-Id: Iaa201562faf2dbee0647b3366d6d0c5ece0561d0
2024-04-29 10:25:58 +02:00