Subaru: extra logging request for camera (#31783)

* 7f - service not supported in active session

* update refs

* rm short

* Apply suggestions from code review

* bus 0
old-commit-hash: 66adf8781eb09631687ca4809e92136cbbdc7f56
This commit is contained in:
Shane Smiskol
2024-03-08 17:00:07 -08:00
committed by GitHub
parent ec2d235c69
commit ae84cb4fc5
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -245,6 +245,13 @@ FW_QUERY_CONFIG = FwQueryConfig(
whitelist_ecus=[Ecu.fwdCamera],
bus=0,
),
Request(
[StdQueries.DEFAULT_DIAGNOSTIC_REQUEST, StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST],
[StdQueries.DEFAULT_DIAGNOSTIC_RESPONSE, StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE],
whitelist_ecus=[Ecu.fwdCamera],
bus=0,
logging=True,
),
Request(
[StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST],
[StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE],
+2 -2
View File
@@ -263,7 +263,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
print(f'get_vin {name} case, query time={self.total_time / self.N} seconds')
def test_fw_query_timing(self):
total_ref_time = {1: 8.4, 2: 9.3}
total_ref_time = {1: 8.5, 2: 9.4}
brand_ref_times = {
1: {
'gm': 1.0,
@@ -274,7 +274,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
'hyundai': 1.05,
'mazda': 0.1,
'nissan': 0.8,
'subaru': 0.45,
'subaru': 0.55,
'tesla': 0.3,
'toyota': 1.6,
'volkswagen': 0.65,