make panda and openpilot thresholds match

pull/24173/head
Shane Smiskol 3 years ago
parent 6214991d98
commit dfcbd20587
  1. 2
      panda
  2. 11
      tools/replay/can_replay.py

@ -1 +1 @@
Subproject commit f088af5664d99acfdaa2a006bd9ee520e4d61430 Subproject commit 26e0968ea09a8f807baa25e3c0811e334efdd58b

@ -3,6 +3,7 @@ import os
import time import time
import threading import threading
from tqdm import tqdm from tqdm import tqdm
from tools.lib.route import Route
os.environ['FILEREADER_CACHE'] = '1' os.environ['FILEREADER_CACHE'] = '1'
@ -87,13 +88,15 @@ if __name__ == "__main__":
print("\033[34m", f"cd {BASEDIR} && git clone https://github.com/commaai/panda_jungle", "\033[0m") print("\033[34m", f"cd {BASEDIR} && git clone https://github.com/commaai/panda_jungle", "\033[0m")
print("Loading log...") print("Loading log...")
ROUTE = "77611a1fac303767/2020-03-24--09-50-38" ROUTE = "cfb32f0fb91b173b|2022-04-06--14-54-45"
REPLAY_SEGS = list(range(10, 16)) # route has 82 segments available REPLAY_SEGS = list(range(21, 22)) # route has 82 segments available
CAN_MSGS = [] CAN_MSGS = []
for i in tqdm(REPLAY_SEGS): for i in tqdm(REPLAY_SEGS):
log_url = f"https://commadataci.blob.core.windows.net/openpilotci/{ROUTE}/{i}/rlog.bz2" r = Route(ROUTE)
# log_url = f"https://commadataci.blob.core.windows.net/openpilotci/{ROUTE}/{i}/rlog.bz2"
log_url = r.log_paths()[i]
lr = LogReader(log_url) lr = LogReader(log_url)
CAN_MSGS += [can_capnp_to_can_list(m.can) for m in lr if m.which() == 'can'] CAN_MSGS += [can_capnp_to_can_list(m.can) for m in lr if m.which() == 'can'][17*100:24*100]
# set both to cycle ignition # set both to cycle ignition

Loading…
Cancel
Save