Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When converting to Fibex keep the signal instance start position as in dbc file #832

Conversation

SabrineBH
Copy link
Contributor

When converting to fibex, keep signal start position as is in dbc file

Screenshot (25)

When converting to fibex, keep signal start position as is in dbc file
@SabrineBH SabrineBH changed the title Update fibex.py When converting tp Fibex keep the signal instance start position as in dbc file Jan 20, 2025
@SabrineBH SabrineBH changed the title When converting tp Fibex keep the signal instance start position as in dbc file When converting to Fibex keep the signal instance start position as in dbc file Jan 20, 2025
@SabrineBH
Copy link
Contributor Author

@ebroecker Can you please check this PR and merge it ?

@ebroecker
Copy link
Owner

Hi @SabrineBH

your PR makes a lot of tests fail, could you have another look on it?

@SabrineBH
Copy link
Contributor Author

Unit test updated

@ebroecker
Copy link
Owner

Hi @SabrineBH

I think this PR tries to fix the issue in the wrong place.

With not looking to deep in the fibex for now, I could imagine the issue could be fixed here:

create_sub_element_fx(signal_instance, "BIT-POSITION", str(signal.start_bit))

by changing from

str(signal.start_bit)

to

str(signal.get_startbit(bit_numbering=1)

Maybe you can double-check my approach as I am not totally sure how the fibex should look like...

@SabrineBH
Copy link
Contributor Author

@ebroecker suggestion took into consideration, can you please check the PR. Thanks a lot!

@ebroecker ebroecker merged commit 16bef39 into ebroecker:development Feb 12, 2025
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants