commaai / commaai/openpilot

radard: calculate lead acceleration on cluster of tracks

Open
#33,934 4 comments 0 reactions 0 assignees View on GitHub
bug controls
Dominant language
Python
Stars
63.7k
Forks
11.4k
Avg merge
17h 53m
Merged PRs (30d)
171

Description

or initialize from the model (it's a prediction on two frames rather than three, so it cannot ever be too accurate currently).

Right now we track lead accel per reported radar track. Lead accel is very important for the planner during high lead accel/decel situations.

We are fortunate that Toyota's reported radar tracks are mostly self consistent, in that a position/lead in space doesn't switch very often between the messages. However, it does happen. Here we could have reached 1 m/s^2 20% faster if the lead accel did not oscillate/start from 0:

https://connect.comma.ai/a2bddce0b6747e10/0000030f--995be3b11f/153/182

![image](https://github.com/user-attachments/assets/c3af6748-524c-49e9-af77-5f3953819776)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.