openpilot v0.8.11 release

This commit is contained in:
Vehicle Researcher
2021-11-19 15:24:51 -08:00
parent 93e8dbb8b5
commit bf338bf5e9
328 changed files with 9243 additions and 3954 deletions
+4 -3
View File
@@ -5,7 +5,7 @@
import time
from cereal import car
from cereal import car, log
import cereal.messaging as messaging
from selfdrive.car.honda.interface import CarInterface
from selfdrive.controls.lib.events import ET, EVENTS, Events
@@ -17,8 +17,8 @@ def cycle_alerts(duration=2000, is_metric=False):
alerts = list(EVENTS.keys())
print(alerts)
#alerts = [EventName.preDriverDistracted, EventName.promptDriverDistracted, EventName.driverDistracted]
alerts = [EventName.preLaneChangeLeft, EventName.preLaneChangeRight]
alerts = [EventName.preDriverDistracted, EventName.promptDriverDistracted, EventName.driverDistracted]
#alerts = [EventName.preLaneChangeLeft, EventName.preLaneChangeRight]
CP = CarInterface.get_params("HONDA CIVIC 2016")
sm = messaging.SubMaster(['deviceState', 'pandaStates', 'roadCameraState', 'modelV2', 'liveCalibration',
@@ -63,6 +63,7 @@ def cycle_alerts(duration=2000, is_metric=False):
dat = messaging.new_message('pandaStates', 1)
dat.pandaStates[0].ignitionLine = True
dat.pandaStates[0].pandaType = log.PandaState.PandaType.uno
pm.send('pandaStates', dat)
time.sleep(0.01)
+2 -2
View File
@@ -3,7 +3,7 @@ import argparse
import json
import cereal.messaging as messaging
from tools.lib.logreader import LogReader
from tools.lib.robust_logreader import RobustLogReader as LogReader
from tools.lib.route import Route
LEVELS = {
@@ -56,7 +56,7 @@ if __name__ == "__main__":
logs = None
if len(args.route):
r = Route(args.route[0])
logs = [q if r is None else r for (q, r) in zip(r.qlog_paths(), r.log_paths())]
logs = r.log_paths()
if len(args.route) == 2 and logs:
n = int(args.route[1])
+10 -4
View File
@@ -1,11 +1,11 @@
#!/usr/bin/env python3
"""Some Hyundai radars can be reconfigured to output (debug) radar points on bus 1.
Reconfiguration is done over UDS by reading/writing to 0x0142 using the Read/Write Data By Identifier
endpoints (0x22 & 0x2E). This script checks your radar firmware version against a list of known
endpoints (0x22 & 0x2E). This script checks your radar firmware version against a list of known
firmware versions. If you want to try on a new radar make sure to note the default config value
in case it's different from the other radars and you need to revert the changes.
After changing the config the car should not show any faults when openpilot is not running.
After changing the config the car should not show any faults when openpilot is not running.
These config changes are persistent accross car reboots. You need to run this script again
to go back to the default values.
@@ -32,7 +32,7 @@ SUPPORTED_FW_VERSIONS = {
b"DNhe SCC FHCUP 1.00 1.02 99110-L5000 \x01#\x15# ": {
"default_config": b"\x00\x00\x00\x01\x00\x00",
"tracks_enabled": b"\x00\x00\x00\x01\x00\x01",
},
},
# 2020 PALISADE
b"LX2_ SCC FHCUP 1.00 1.04 99110-S8100\x19\x05\x02\x16V ": {
"default_config": b"\x00\x00\x00\x01\x00\x00",
@@ -40,9 +40,15 @@ SUPPORTED_FW_VERSIONS = {
},
# 2020 SANTA FE
b"TM__ SCC F-CUP 1.00 1.03 99110-S2000\x19\x050\x13' ": {
"default_config": b"\x00\x00\x00\x01\x00\x00",
"tracks_enabled": b"\x00\x00\x00\x01\x00\x01",
},
# 2020 GENESIS G70
b'IK__ SCC F-CUP 1.00 1.02 96400-G9100\x18\x07\x06\x17\x12 ': {
"default config": b"\x00\x00\x00\x01\x00\x00",
"tracks_enabled": b"\x00\x00\x00\x01\x00\x01",
}
},
}
if __name__ == "__main__":
+2 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import time
import cereal.messaging as messaging
from cereal import messaging, log
from selfdrive.manager.process_config import managed_processes
if __name__ == "__main__":
@@ -17,6 +17,7 @@ if __name__ == "__main__":
msgs['pandaStates'] = messaging.new_message('pandaStates', 1)
msgs['pandaStates'].pandaStates[0].ignitionLine = True
msgs['pandaStates'].pandaStates[0].pandaType = log.PandaState.PandaType.uno
try:
while True: