这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sshane
Copy link
Contributor

@sshane sshane commented May 30, 2025

This PR is to add a generic max frequency param that is checked for any message that specifies it, such as lat/long actuation messages. It will replace the rt logic:

// *** torque real time rate limit check ***
violation |= rt_rate_limit_check(desired_torque, rt_torque_last, limits.max_rt_delta);
// every RT_INTERVAL set the new limits
uint32_t ts_elapsed = get_ts_elapsed(ts, ts_torque_check_last);
if (ts_elapsed > MAX_TORQUE_RT_INTERVAL) {
rt_torque_last = desired_torque;
ts_torque_check_last = ts;
}

@sshane sshane added enhancement car safety vehicle-specific safety code labels May 30, 2025
@sshane sshane added this to the safety 1.0 milestone May 30, 2025
@sshane
Copy link
Contributor Author

sshane commented May 30, 2025

See #2332 (comment)

@sshane sshane closed this May 30, 2025
@sshane sshane deleted the safety-tx-freq branch May 30, 2025 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car safety vehicle-specific safety code enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants