Skip to content

Commit

Permalink
VW MQB: Add missing fields in Motor_20
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Sep 11, 2024
1 parent 2315cee commit 53198b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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 @@ -149,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')
])

def test_mqb_crc_ESP_21(self, subtests):
self.verify_mqb_crc(subtests, "ESP_21", 0xFD, [
Expand Down Expand Up @@ -231,7 +231,6 @@ def test_mqb_crc_TSK_06(self, subtests):
b'\x0b\x0f\x00\x02\x00\x08\xff\x21',
])

@pytest.mark.skip(reason="Missing field definitions in .dbc for Motor_20")
def test_mqb_crc_Motor_20(self, subtests):
self.verify_mqb_crc(subtests, "Motor_20", 0x121, [
b'\xb9\x00\x00\xc0\x39\x46\x7e\xfe',
Expand Down
4 changes: 4 additions & 0 deletions opendbc/dbc/vw_mqb_2010.dbc
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,11 @@ BO_ 289 Motor_20: 8 Motor_Diesel_MQB
SG_ MO_rel_Saugrohrdruck_gem_err : 36|1@1+ (1,0) [0|1] "" Gateway_MQB
SG_ MO_Moment_im_Leerlauf : 37|1@1+ (1,0) [0|1] "" Gateway_MQB,Getriebe_DQ_Hybrid_MQB,Getriebe_DQ_MQB
SG_ MO_Schubabschaltung : 38|1@1+ (1,0) [0|1] "" Gateway_MQB
SG_ MO_StartStopp_StoppVorbereitung : 39|1@1+ (1,0) [0|1] "" Gateway_MQB,Getriebe_AL550,Getriebe_DQ
SG_ MO_Solldrehz_Leerlauf : 40|8@1+ (10,0) [0|2540] "Unit_MinutInver" Gateway_MQB,Getriebe_DQ_Hybrid_MQB,Getriebe_DQ_MQB
SG_ MO_Entkopplung_Sollschlupf : 48|7@1+ (20,0) [0|2480] "Unit_MinutInver" Gateway_MQB
SG_ MO_temporaere_Fahrerabwesenheit : 55|1@1+ (1,0) [0|1] "" Gateway_MQB,Getriebe_AL550
SG_ TSK_a_Soll_gradientenbegrenzt : 57|7@1+ (0.1,-7.2) [-7.2|5.4] "Unit_MeterPerSeconSquar" Gateway_MQB

BO_ 967 Motor_26: 8 Motor_Diesel_MQB
SG_ MO_HYB_Status_HV_Ladung : 8|3@1+ (1,0) [0|7] "" Gateway_MQB
Expand Down

0 comments on commit 53198b6

Please sign in to comment.