mirror of https://github.com/commaai/panda.git
backslash is redundant between brackets
This commit is contained in:
parent
8039638482
commit
eba113cb67
|
@ -126,7 +126,7 @@ def test_latency(p):
|
|||
average_comp_kbps = sum(comp_kbps_list)/num_messages
|
||||
average_saturation_pct = sum(saturation_pcts)/num_messages
|
||||
|
||||
print("two pandas bus {}, {} message average at speed {:4d}, latency is {:5.3f}ms, comp speed is {:7.2f}, percent {:6.2f}"\
|
||||
print("two pandas bus {}, {} message average at speed {:4d}, latency is {:5.3f}ms, comp speed is {:7.2f}, percent {:6.2f}"
|
||||
.format(bus, num_messages, speed, average_latency, average_comp_kbps, average_saturation_pct))
|
||||
|
||||
# Start heartbeat
|
||||
|
|
|
@ -37,7 +37,7 @@ class TestChryslerSafety(common.PandaSafetyTest, common.TorqueSteeringSafetyTest
|
|||
return self.packer.make_can_msg_panda("WHEEL_BUTTONS", 0, values)
|
||||
|
||||
def _pcm_status_msg(self, active):
|
||||
values = {"ACC_STATUS_2": 0x7 if active else 0, \
|
||||
values = {"ACC_STATUS_2": 0x7 if active else 0,
|
||||
"COUNTER": self.cnt_cruise % 16}
|
||||
self.__class__.cnt_cruise += 1
|
||||
return self.packer.make_can_msg_panda("ACC_2", 0, values)
|
||||
|
@ -52,7 +52,7 @@ class TestChryslerSafety(common.PandaSafetyTest, common.TorqueSteeringSafetyTest
|
|||
return self.packer.make_can_msg_panda("ACCEL_GAS_134", 0, values)
|
||||
|
||||
def _brake_msg(self, brake):
|
||||
values = {"BRAKE_PRESSED_2": 5 if brake else 0, \
|
||||
values = {"BRAKE_PRESSED_2": 5 if brake else 0,
|
||||
"COUNTER": self.cnt_brake % 16}
|
||||
self.__class__.cnt_brake += 1
|
||||
return self.packer.make_can_msg_panda("BRAKE_2", 0, values)
|
||||
|
|
|
@ -66,8 +66,8 @@ class TestNissanSafety(common.PandaSafetyTest):
|
|||
|
||||
def _acc_button_cmd(self, cancel=0, propilot=0, flw_dist=0, _set=0, res=0):
|
||||
no_button = not any([cancel, propilot, flw_dist, _set, res])
|
||||
values = {"CANCEL_BUTTON": cancel, "PROPILOT_BUTTON": propilot, \
|
||||
"FOLLOW_DISTANCE_BUTTON": flw_dist, "SET_BUTTON": _set, \
|
||||
values = {"CANCEL_BUTTON": cancel, "PROPILOT_BUTTON": propilot,
|
||||
"FOLLOW_DISTANCE_BUTTON": flw_dist, "SET_BUTTON": _set,
|
||||
"RES_BUTTON": res, "NO_BUTTON_PRESSED": no_button}
|
||||
return self.packer.make_can_msg_panda("CRUISE_THROTTLE", 2, values)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ MIN_ACCEL = -3.0
|
|||
ISO_MAX_ACCEL = 2.0
|
||||
ISO_MIN_ACCEL = -3.5
|
||||
|
||||
class TestToyotaSafety(common.PandaSafetyTest, common.InterceptorSafetyTest, \
|
||||
class TestToyotaSafety(common.PandaSafetyTest, common.InterceptorSafetyTest,
|
||||
common.TorqueSteeringSafetyTest):
|
||||
|
||||
TX_MSGS = [[0x283, 0], [0x2E6, 0], [0x2E7, 0], [0x33E, 0], [0x344, 0], [0x365, 0], [0x366, 0], [0x4CB, 0], # DSU bus 0
|
||||
|
|
Loading…
Reference in New Issue