add the notebook example to car port docs (#30920)

* add the notebook example

* fix link

* add image

* no lfs

* no lfs
pull/30922/head
Justin Newberry 1 year ago committed by GitHub
parent e86d74b347
commit 239b228ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/car_porting/README.md
  2. 2
      tools/car_porting/examples/subaru_steer_temp_fault.ipynb

@ -56,3 +56,11 @@ Traceback (most recent call last):
self.assertFalse(len(failed_checks), f"panda safety doesn't agree with openpilot: {failed_checks}") self.assertFalse(len(failed_checks), f"panda safety doesn't agree with openpilot: {failed_checks}")
AssertionError: 1 is not false : panda safety doesn't agree with openpilot: {'gasPressed': 116} AssertionError: 1 is not false : panda safety doesn't agree with openpilot: {'gasPressed': 116}
``` ```
### [tools/car_porting/examples/subaru_steer_temp_fault.ipynb](/tools/car_porting/examples/subaru_steer_temp_fault.ipynb)
An example of searching through a database of segments for a specific condition, and plotting the results.
![steer warning example](https://github.com/commaai/openpilot/assets/9648890/d60ad120-4b44-4974-ac79-adc660fb8fe2)
*a plot of the steer_warning vs steering angle, where we can see it is clearly caused by a large steering angle change*

@ -6,7 +6,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# An example of searching through the database of segments for a specific condition, and plotting the results.\n", "# An example of searching through a database of segments for a specific condition, and plotting the results.\n",
"\n", "\n",
"segments = [\n", "segments = [\n",
" \"c3d1ccb52f5f9d65|2023-07-22--01-23-20--6\",\n", " \"c3d1ccb52f5f9d65|2023-07-22--01-23-20--6\",\n",

Loading…
Cancel
Save