self.auto_high_beam=cp_cam.vl["DAS_6"]['AUTO_HIGH_BEAM_ON']# Auto High Beam isn't Located in this message on chrysler or jeep currently located in 729 message
# Auto High Beam isn't Located in this message on chrysler or jeep currently located in 729 message
red_panda_kit=BasePart("CAN FD panda kit",parts=[Device.red_panda,Accessory.harness_box,Cable.usb_a_2_a_cable,Cable.usbc_otg_cable,Cable.obd_c_cable_1_5ft])
red_panda_kit=BasePart("CAN FD panda kit",parts=[Device.red_panda,Accessory.harness_box,
"Experimental openpilot longitudinal control is available behind a toggle; the toggle is only available in non-release branches such as `devel` or `master-ci`. ",
"Experimental openpilot longitudinal control is available behind a toggle; "+
"the toggle is only available in non-release branches such as `devel` or `master-ci`. ",
Column.LONGITUDINAL,docs_only=True)
EXP_LONG_DSU=CarFootnote(
"By default, this car will use the stock Adaptive Cruise Control (ACC) for longitudinal control. If the Driver Support Unit (DSU) is disconnected, openpilot ACC will replace "+
"By default, this car will use the stock Adaptive Cruise Control (ACC) for longitudinal control. "+
"If the Driver Support Unit (DSU) is disconnected, openpilot ACC will replace "+
@ -132,7 +133,8 @@ class CarInterface(CarInterfaceBase):
elifcandidate==CAR.SANTA_CRUZ_1ST_GEN:
ret.mass=1870.+STD_CARGO_KG# weight from Limited trim - the only supported trim
ret.wheelbase=3.000
ret.steerRatio=14.2# steering ratio according to Hyundai News https://www.hyundainews.com/assets/documents/original/48035-2022SantaCruzProductGuideSpecsv2081521.pdf
# steering ratio according to Hyundai News https://www.hyundainews.com/assets/documents/original/48035-2022SantaCruzProductGuideSpecsv2081521.pdf
ret.steerRatio=14.2
# Kia
elifcandidate==CAR.KIA_SORENTO:
@ -211,7 +213,8 @@ class CarInterface(CarInterfaceBase):
CAR.SANTA_FE:HyundaiCarInfo("Hyundai Santa Fe 2019-20","All",car_parts=CarParts.common([CarHarness.hyundai_d])),
CAR.SANTA_FE_2022:HyundaiCarInfo("Hyundai Santa Fe 2021-23","All",video_link="https://youtu.be/VnHzSTygTS4",car_parts=CarParts.common([CarHarness.hyundai_l])),
CAR.SANTA_FE_2022:HyundaiCarInfo("Hyundai Santa Fe 2021-23","All",video_link="https://youtu.be/VnHzSTygTS4",
@ -1911,11 +1929,17 @@ CANFD_RADAR_SCC_CAR = {CAR.GENESIS_GV70_1ST_GEN, CAR.KIA_SORENTO_PHEV_4TH_GEN, C
# The camera does SCC on these cars, rather than the radar
CAMERA_SCC_CAR={CAR.KONA_EV_2022,}
HYBRID_CAR={CAR.IONIQ_PHEV,CAR.ELANTRA_HEV_2021,CAR.KIA_NIRO_PHEV,CAR.KIA_NIRO_HEV_2021,CAR.SONATA_HYBRID,CAR.KONA_HEV,CAR.IONIQ,CAR.IONIQ_HEV_2022,CAR.SANTA_FE_HEV_2022,CAR.SANTA_FE_PHEV_2022,CAR.IONIQ_PHEV_2019,CAR.TUCSON_HYBRID_4TH_GEN,CAR.KIA_SPORTAGE_HYBRID_5TH_GEN,CAR.KIA_SORENTO_PHEV_4TH_GEN,CAR.KIA_K5_HEV_2020,CAR.KIA_NIRO_HEV_2ND_GEN}# these cars use a different gas signal
print(f"{car_model:{max_car_model_len}} - up jerk: {round(_jerks['up_jerk'],2):5} m/s^3, down jerk: {round(_jerks['down_jerk'],2):5} m/s^3{violation_str}")
print(f"{car_model:{max_car_model_len}} - up jerk: {round(_jerks['up_jerk'],2):5}\
set_speed=hud_control.setSpeed*CV.MS_TO_KPH# FIXME: follow the recent displayed-speed updates, also use mph_kmh toggle to fix display rounding problem?
# FIXME: follow the recent displayed-speed updates, also use mph_kmh toggle to fix display rounding problem?
ACCELEROMETER_BIAS=slice(30,33)# bias of mems accelerometer
# TODO the offset is likely a translation of the sensor, not a rotation of the camera
WIDE_FROM_DEVICE_EULER=slice(33,36)# wide camera offset angles in radians (tici only)
# We currently do not use ACCELEROMETER_SCALE to avoid instability due to too many free variables (ACCELEROMETER_SCALE, ACCELEROMETER_BIAS, IMU_FROM_DEVICE_EULER).
# We currently do not use ACCELEROMETER_SCALE to avoid instability due to too many free variables
assertlen(canmsgs)!=0,"CAN messages are required for fingerprinting"
assertos.environ.get("SKIP_FW_QUERY",False)orhas_cached_cp,"CarParamsCache is required for fingerprinting. Make sure to keep carParams msgs in the logs."
parser.add_argument("--vanish",action="store_true",help="Remove translations with source text no longer found")
parser.add_argument("--plural-only",type=str,nargs="*",default=["main_en"],help="Translation codes to only create plural translations for (ie. the base language)")
print("%2d%4d%.3f%.3f roll %6.2f ms latency %6.2f ms + %6.2f ms + %6.2f ms = %6.2f ms"%(len(msgs),evta.idx.encodeId,evt.logMonoTime/1e9,evta.idx.timestampEof/1e6,frame_latency,process_latency,network_latency,pc_latency,process_latency+network_latency+pc_latency),len(evta.data),sock_name)
print("%2d%4d%.3f%.3f roll %6.2f ms latency %6.2f ms + %6.2f ms + %6.2f ms = %6.2f ms"
@ -68,7 +68,8 @@ class TestCarlaIntegration(unittest.TestCase):
no_car_events_issues_once=True
break
self.assertTrue(no_car_events_issues_once,f"Failed because no messages received, or CarEvents '{car_event_issues}' or processes not running '{not_running}'")
self.assertTrue(no_car_events_issues_once,
f"Failed because no messages received, or CarEvents '{car_event_issues}' or processes not running '{not_running}'")