openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

Locationd yaw rate error -> paramsd angleOffset error -> drifts into right lane

Open yeaen opened this issue 5 years ago • 4 comments

Describe the bug

Openpilot drifted into the right lane a few times on one of my routes.

How to reproduce or log data

Drive at night using the leftmost lane.

Device/Version information (please complete the following information):

  • Device: comma two
  • Dongle ID: f28c43ff6a3dea6f
  • Route: f28c43ff6a3dea6f|2021-10-02--19-48-56
  • Timestamp: 19:49:06, 19:49:25
  • Version: I already updated my device, so I'm not sure what the commit hash was. It was Shane's fork 0.8.9 though.
  • Car make/model: Toyota Corolla Hatchback 2020

Additional context

Maybe not important, but when openpilot was enabled at 19:49:56, it was driving right on the lane's right edge which felt uncomfortable, but at least it didn't drift into the next lane.

yeaen avatar Oct 03 '21 18:10 yeaen

Can you make sure the raw logs are uploaded? Turn on your device, go to https://useradmin.comma.ai/?onebox=f28c43ff6a3dea6f%7C2021-10-02--19-48-56 and click on "upload all files".

pd0wm avatar Oct 04 '21 08:10 pd0wm

The files are uploading should be uploading right now.

yeaen avatar Oct 04 '21 14:10 yeaen

The localizer was a little off in the beginning of the route causing some issues with the angle Offset estimation, it predicted an anfleOffset of -.7degrees, whereas the true values was around -.2. That combined with some model confusion likely caused this.

@nuwandavek This is another locationd biased yaw rate causing angle offset failure at start of drive. Can you figure out what is causing these and come up with a solution? This could mean not using locationd in params in certain conditions or ignoring GPS if it's bad.

Mostly though can we get some metrics on how often the gyro is biased like this?

haraschax avatar Oct 06 '21 17:10 haraschax

@nuwandavek can we close? #22622 has been merged

adeebshihadeh avatar Oct 25 '21 05:10 adeebshihadeh