@@ -1134,7 +1134,8 @@ def get_signals(signal_array, frame, ea, multiplex_id, float_factory, bit_offset
1134
1134
isignal_ub = canmatrix .Signal (ub_name ,
1135
1135
start_bit = int (ub_start_bit .text , 0 ),
1136
1136
size = 1 ,
1137
- is_signed = False )
1137
+ is_signed = False ,
1138
+ unit = "Unitless" )
1138
1139
frame .add_signal (isignal_ub )
1139
1140
1140
1141
group_id = group_id + 1
@@ -1389,7 +1390,8 @@ def get_signals(signal_array, frame, ea, multiplex_id, float_factory, bit_offset
1389
1390
new_signal_ub = canmatrix .Signal (ub_name ,
1390
1391
start_bit = int (ub_start_bit .text , 0 ),
1391
1392
size = 1 ,
1392
- is_signed = False )
1393
+ is_signed = False ,
1394
+ unit = "Unitless" )
1393
1395
frame .add_signal (new_signal_ub )
1394
1396
1395
1397
@@ -1631,19 +1633,21 @@ def get_frame(frame_triggering, ea, multiplex_translation, float_factory, header
1631
1633
if freshness_tx_length is not None and int (freshness_tx_length , 0 ) > 0 :
1632
1634
freshness_name = f"{ ea .get_element_name (frame_elem )} _Freshness"
1633
1635
signal_freshness = canmatrix .Signal (freshness_name ,
1634
- start_bit = int (ipdu_length , 0 )* 8 + int (freshness_tx_length , 0 ) - 8 ,
1636
+ start_bit = int (ipdu_length , 0 ) * 8 + int (freshness_tx_length , 0 ) - 16 ,
1635
1637
size = int (freshness_tx_length , 0 ),
1636
1638
is_signed = False ,
1637
- is_little_endian = False )
1639
+ is_little_endian = False ,
1640
+ unit = "Unitless" )
1638
1641
new_frame .add_signal (signal_freshness )
1639
1642
1640
1643
if auth_tx_length is not None and int (auth_tx_length , 0 ) > 0 :
1641
1644
authinfo_name = f"{ ea .get_element_name (frame_elem )} _AuthInfo"
1642
1645
signal_authinfo = canmatrix .Signal (authinfo_name ,
1643
- start_bit = int (ipdu_length , 0 )* 8 + int (freshness_tx_length , 0 ) + int ( auth_tx_length , 0 ) - 8 ,
1646
+ start_bit = int (ipdu_length , 0 ) * 8 + int (freshness_tx_length , 0 ),
1644
1647
size = int (auth_tx_length , 0 ),
1645
1648
is_signed = False ,
1646
- is_little_endian = False )
1649
+ is_little_endian = False ,
1650
+ unit = "Unitless" )
1647
1651
new_frame .add_signal (signal_authinfo )
1648
1652
1649
1653
comment = ea .get_element_desc (frame_elem )
0 commit comments