Skip to content

Commit

Permalink
panda update 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hoomoose committed Aug 9, 2024
1 parent 80ec32e commit 4c16eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions board/safety/safety_hyundai_canfd.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "safety_hyundai_common.h"

const SteeringLimits HYUNDAI_CANFD_STEERING_LIMITS = {
.max_steer = 384,
.max_steer = 400,
.max_rt_delta = 112,
.max_rt_interval = 250000,
.max_rate_up = 4,
Expand Down Expand Up @@ -261,10 +261,10 @@ static bool hyundai_canfd_tx_hook(const CANPacket_t *to_send) {

if (controls_allowed) {
// *** global torque limit check ***
violation |= max_limit_check(desired_torque, 384, -384);
violation |= max_limit_check(desired_torque, 400, -400);

// ready to blend in limits
desired_torque_last = MAX(-384, MIN(desired_torque, 384));
desired_torque_last = MAX(-400, MIN(desired_torque, 400));
rt_torque_last = desired_torque;
ts_torque_check_last = ts;
}
Expand Down

0 comments on commit 4c16eac

Please sign in to comment.