Skip to content

Commit

Permalink
VW MQB: Add missing fields in Getriebe_11
Browse files Browse the repository at this point in the history
Test case is reenabled and now passes
  • Loading branch information
JaCzekanski committed Sep 11, 2024
1 parent a2082df commit 7183393
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions opendbc/can/tests/test_checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def test_mqb_crc_LH_EPS_03(self, subtests):
b'\xe2\x3f\x05\x00\x05\x0a\x00\x30',
])

@pytest.mark.skip(reason="Missing field definitions in .dbc for Getriebe_11")
def test_mqb_crc_Getriebe_11(self, subtests):
self.verify_mqb_crc(subtests, "Getriebe_11", 0xAD, [
b'\xf8\xe0\xbf\xff\x5f\x20\x20\x20',
Expand All @@ -150,7 +149,7 @@ def test_mqb_crc_Getriebe_11(self, subtests):
b'\xbd\xed\xbf\xff\xaa\x20\x20\x10',
b'\x67\xee\xbf\xff\xaa\x20\x20\x10',
b'\x36\xef\xbf\xff\xaa\x20\x20\x10',
], counter_field='COUNTERXX')
])

@pytest.mark.skip(reason="Missing field definitions in .dbc for ESP_21")
def test_mqb_crc_ESP_21(self, subtests):
Expand Down
8 changes: 5 additions & 3 deletions opendbc/dbc/vw_mqb_2010.dbc
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,15 @@ BO_ 296 Getriebe_06: 3 Getriebe_DQ_Hybrid_MQB

BO_ 173 Getriebe_11: 8 Getriebe_DQ_Hybrid_MQB
SG_ CHECKSUM : 0|8@1+ (1,0) [0|255] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ COUNTERXX : 8|4@1+ (1,0) [0|15] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ COUNTER : 8|4@1+ (1,0) [0|15] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_MMom_Soll_02 : 12|10@1+ (1,-509) [-509|509] "Unit_NewtoMeter" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_MMom_Vorhalt_02 : 22|10@1+ (1,-509) [-509|509] "Unit_NewtoMeter" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Uefkt : 32|10@1+ (0.1,0) [0|102.2] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Fahrstufe : 42|5@1+ (1,0) [0|31] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Schaltvorgang : 47|1@1+ (1,0) [0|1] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Status_Kupplung : 54|2@1+ (1,0) [0|3] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Schaltablauf : 47|2@1+ (1,0) [0|3] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Uefkt_unplausibel : 49|1@1+ (1,0) [0|1] "" Gateway_MQB
SG_ GE_MMom_Status_02 : 50|3@1+ (1,0) [0|7] "" Gateway_MQB
SG_ GE_Status_Kraftschluss : 53|3@1+ (1,0) [0|7] "" Gateway_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_MMom_Status : 56|2@1+ (1,0) [0|3] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Freig_MMom_Vorhalt : 58|1@1+ (1,0) [0|1] "" Gateway_MQB,Motor_Diesel_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
SG_ GE_Verbot_Ausblendung : 59|1@1+ (1,0) [0|1] "" Gateway_MQB,Motor_Hybrid_MQB,Motor_Otto_MQB
Expand Down

0 comments on commit 7183393

Please sign in to comment.