-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Ioniq5 pe with sync #70
base: master-new
Are you sure you want to change the base?
Conversation
# Conflicts: # docs/CARS.md # opendbc/car/hyundai/interface.py
# Conflicts: # opendbc/car/hyundai/values.py # opendbc/dbc/hyundai_canfd.dbc
# Conflicts: # opendbc/car/hyundai/carcontroller.py
# Conflicts: # opendbc/dbc/hyundai_canfd.dbc
This reverts commit 8f163d2.
Reviewer's Guide by SourceryThis pull request introduces steering angle control support for Hyundai CAN-FD platform, specifically for vehicles like the Ioniq 5 PE and Kia EV9. It includes changes to safety limits, car controller logic, and car state estimation to accommodate angle-based control. Additionally, the Ioniq 5 PE is added to the list of supported cars, and wheel speed calculation is refactored for CAN-FD cars. Sequence diagram for steering control with anglesequenceDiagram
participant CarController
participant CarState
participant hyundaicanfd
CarController->>CarState: CS.out.steeringAngleDeg
CarController->>CarController: apply_std_steer_angle_limits(actuators.steeringAngleDeg, ...)
alt driver torque override
CarController->>CarState: CS.out.steeringTorque
CarController->>CarController: lkas_max_torque update
end
CarController->>hyundaicanfd: create_steering_messages(apply_angle, lkas_max_torque)
hyundaicanfd-->>CarController: CAN messages
Updated class diagram for CarControllerParamsclassDiagram
class CarControllerParams {
float ACCEL_MIN
float ACCEL_MAX
AngleRateLimit ANGLE_RATE_LIMIT_UP
AngleRateLimit ANGLE_RATE_LIMIT_DOWN
int ANGLE_MAX_TORQUE
int ANGLE_DRIVER_TORQUE_ALLOWANCE
int ANGLE_MIN_TORQUE
int STEER_ANGLE_MAX
int STEER_DELTA_UP
int STEER_DELTA_DOWN
float STEER_MAX
float STEER_DRIVER_TORQUE_ALLOWANCE
float STEER_DRIVER_TORQUE_OVERRIDE
float STEER_DRIVER_TORQUE_FACTOR
}
class AngleRateLimit {
float[] speed_bp
float[] angle_v
}
CarControllerParams -- AngleRateLimit : has
Updated class diagram for HyundaiFlagsclassDiagram
class HyundaiFlags {
CANFD_LKA_STEERING
CANFD_LKA_STEERING_ALT
FCEV_GAS
ALT_LIMITS_2
CANFD_ANGLE_STEERING
FLAG_HYUNDAI_ESCC
FLAG_HYUNDAI_LONG_MAIN_CRUISE_TOGGLEABLE
CAMERA_SCC
RADAR_SCC
EV
HYBRID
gasoline
DISABLE_CAN_CHECKS
SEND_LFA_MESSAGES
CANFD_CAMERA_SCC
}
Updated class diagram for HyundaiSafetyFlagsclassDiagram
class HyundaiSafetyFlags {
CANFD_LKA_STEERING
CANFD_LKA_STEERING_ALT
FCEV_GAS
ALT_LIMITS_2
CANFD_ANGLE_STEERING
FLAG_HYUNDAI_ESCC
FLAG_HYUNDAI_LONG_MAIN_CRUISE_TOGGLEABLE
CAMERA_SCC
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
624b2de
to
d8808f9
Compare
9606b59
to
63366f6
Compare
7017688
to
72918ec
Compare
26084df
to
f0c006f
Compare
744568f
to
ddfbf8e
Compare
4135a69
to
288f954
Compare
# Conflicts: # opendbc/car/hyundai/carcontroller.py # opendbc/safety/safety/safety_hyundai_canfd.h
* Update fingerprints.py Added EUR and KOR fwdcamera * Update opendbc/car/hyundai/fingerprints.py --------- Co-authored-by: Jason Wen <[email protected]>
…c-2-redo # Conflicts: # opendbc/car/hyundai/carcontroller.py # opendbc/car/hyundai/hyundaicanfd.py
This update introduces compatibility for the 2025+ Hyundai Ioniq 5 PE with HDA II, including fingerprints, platform configuration, and blinkers handling. Additionally, steering torque logic has been refined with adaptive adjustments for user intervention, improving control. Obsolete Kia EV9 configurations were removed for better maintainability.
Replaced KIA_EV9 entry with HYUNDAI_IONIQ_5_PE in the torque override configuration. Adjusted the values to align with the updated specifications for this model.
Revised the angle_rate_up_lookup and angle_rate_down_lookup tables to include more detailed points. This enhances the granularity and accuracy of angle rate calculations for safer and smoother operation.
Reduced the number of lookup table points for steering angle rate up and down in Hyundai CAN FD safety. This change simplifies the implementation while preserving the intended functionality and behavior."
Added a new test route for the Hyundai Ioniq 5 PE with LKA steering, HDA2, and LFA2. Also removed the test route for the Kia EV9 as it is no longer needed. These changes ensure the test routes remain relevant and up-to-date.
a940844
to
14c662e
Compare
Simplified the lookup tables for angle rates and adjusted values for smoother steering transitions. These changes aim to optimize control behavior and improve system performance.
Requires #68
Summary by Sourcery
Adds support for angle-based steering control for Hyundai CAN-FD vehicles, specifically the Ioniq 5 PE and Kia EV9. This includes new safety checks, parameter adjustments, and message creation logic to handle angle-based commands instead of torque-based commands. Also updates the car fingerprint to include the Ioniq 5 PE.
New Features:
Tests: