Skip to content
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

card parses radar points #33443

Merged
merged 33 commits into from
Sep 6, 2024
Merged

card parses radar points #33443

merged 33 commits into from
Sep 6, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Sep 3, 2024

opendbc PR: commaai/opendbc#1220

@sshane sshane added the refactor label Sep 3, 2024
old-commit-hash: 20334a8
@sshane sshane changed the title interfaces returns radarinterface card parses radar points Sep 4, 2024
@github-actions github-actions bot added the car vehicle-specific label Sep 4, 2024
old-commit-hash: 5aa2c84
@sshane
Copy link
Contributor Author

sshane commented Sep 6, 2024

Confirmed the diff in amount of radarState msgs is because we poll on modelV2 now, so this always matches that.

Confirmed the minor diffs in the segments is from being mismatched with the radar points and the kalman filter getting either duplicate messages or skipping a message.

Ford segment for example:

image
image

@sshane sshane marked this pull request as ready for review September 6, 2024 05:34
@sshane sshane merged commit 922348f into master Sep 6, 2024
16 of 17 checks passed
@sshane sshane deleted the card-radar branch September 6, 2024 05:40
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request Sep 6, 2024
* interfaces returns radarinterface

old-commit-hash: 9ad1f09

* bump

old-commit-hash: 20334a8

* get RI from opendbc

old-commit-hash: b5f6d0c

* stash so far

old-commit-hash: 5aa2c84

* new liveTracks message (radard expects and needs RadarData)

* this should just work?

* whoops

* fix that

* rm liveTracks from radard pm

* fix proceess replay

* lol fcw diff, something's not right

* actually there's fcw in original route. it's pretty close

* no tracks!

* fix test_leads

* CPU moved across procs

* fix not engageable from onroadEvents

* bump

* fixes

* bump to master

* radard publishes w/ modelV2 now, so it will always be sent. check valid which radard sets using liveTracks avg freq

* fix that (it works!)

* combine

join

* bump

* bump

* deprecate

* why

* fix incorrect args

* remove cumLagMs from process_replay

* update refs
@@ -222,6 +231,12 @@ def state_publish(self, CS: car.CarState):
cs_send.carState.cumLagMs = -self.rk.remaining * 1000.
self.pm.send('carState', cs_send)

if RD is not None:
tracks_msg = messaging.new_message('liveTracks')
tracks_msg.valid = CS.canValid and len(RD.errors) == 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the carState canValid relevant here? if the radar bus is good, then the tracks should be valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants