Skip to content

Commit

Permalink
Merge pull request #832 from SabrineBH/fbx_keep_the_signal_start_posi…
Browse files Browse the repository at this point in the history
…tion_as_in_dbc_file

When converting to Fibex keep the signal instance start position as in dbc file
  • Loading branch information
ebroecker authored Feb 12, 2025
2 parents af49526 + ebebbc2 commit 16bef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canmatrix/formats/fibex.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create_signal_instance(parent, signal, signal_id):
# type: (_Element, Signal, str) -> _Element
signal_instance = create_sub_element_fx(parent, "SIGNAL-INSTANCE")
signal_instance.set("ID", "PDUINST_" + signal_id)
create_sub_element_fx(signal_instance, "BIT-POSITION", str(signal.start_bit))
create_sub_element_fx(signal_instance, "BIT-POSITION", str(signal.get_startbit(bit_numbering=1)))
create_sub_element_fx(signal_instance, "IS-HIGH-LOW-BYTE-ORDER", "false" if signal.is_little_endian else "true")
return signal_instance

Expand Down

0 comments on commit 16bef39

Please sign in to comment.