Jeroen 272b6cc8c3 Add Dutch translations (Nederlands) (#25327)
* Add Dutch translations (Nederlands)

* Dutch translation improvements

* Use Qt's plurals

* Improvements to translations

Thanks for the review Willem!

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Shortened a translation to fit screen

Shortened 'Show map on left side when in split screen view.' translation

* update translations

* Shortened 2 translations

* Fix test

* Changed 'CONTROLEREN' to 'CONTROLEER'

* Merge remote-tracking branch 'upstream/master' into dutch-translations (#3)

* Rename KIA_NIRO_HEV to KIA_NIRO_PHEV (#24216)

* Add car port: Kia Niro Plug-In Hybrid 2018

* Add additional FW version

* Low speed lockout 32 MPH

* Add test route

* min_steer_speed in CarInfo

* Remove min_steer_speed from CarInfo

* Add to CARS.md

* run generator

* update min enable speed and regen

* update ci routes

* these are the same car

* i think we only add a note if it's a new platform

* fix HEV -> PHEV

* Add test route

* dup fw

* haha we already support this car in #25187

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* GM pcmCruise: cancel more reliably (#25454)

* Cancel more reliably

* Apply suggestions from code review

* Try sending multiple

* Apply suggestions from code review

* Apply suggestions from code review

* Update selfdrive/car/gm/carcontroller.py

* lower rate a bit

* try this

* Update selfdrive/car/gm/carcontroller.py

* bump panda

* Car docs: add more videos (#25494)

* Add Civic video

* add mazda cx-9 2022 video link

* GM Bolt EUV: update supported packages (#25496)

* Update values.py

* Update selfdrive/car/gm/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* update docs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Hyundai: common CAN-FD gear signal (#25498)

* Hyundai: common CAN-FD gear signal

* bump opendbc

* GM: Chevy Silverado 2020-21 support (#25429)

* Silverado support

Co-authored-by: Jason Shuler <jshuler@gmail.com>

* Update docs

* Try 2 m/s/s

* Should be good torque values

* Add Silverado test route

* Add to releases

* Send counter

* can't send multiple or it faults

* Send at 33hz, no counter

* try 25hz, don't line up exactly with car's buttons

* never tried 10hz with same counter

* Update selfdrive/car/gm/gmcan.py

* Make same as pcmCruise branch

* update year and package (different packages needed per-trim)

* Update year in releases

* Revert to 21

* We can use this package name again

* wrong one!

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Show CAN error if message counters are invalid (#25497)

* counter check affects can valid

* Apply suggestions from code review

* bump to master

* Hyundai: Car Port for Tucson Hybrid 2022 (#25276)

* Hyundai: Car Port for Tucson Hybrid 2022

* Update RELEASES.md

* Init gear_msg at the top

* FW versions from script

* Button send attempt

* start with some cleanup

* Send button fixed bits

* Define all bytes and only send PAUSE/RESUME

* Use CRUISE_INFO to cancel cruise and resume

* 8-bit counter

* Cleanup ish

* 8 bit counter

* Send at 20ms

* Disengage bits

* Revert bump submodules

* Allow tx on 0x1a0

* Fix byte counts

* Send LFA and HDA icons based on engageability

* Send cruise buttons only on HDA2 cars for now

* Add comments

* Add FLAG_HYUNDAI_CANFD_HDA2 flag

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Bump submodules

* Bump panda

* Bump opendbc

* Allow tx with CRUISE_INACTIVE

* GEAR has 24 bytes only

* Generate car docs

* Fix CRUISE_INFO copy

* Remove unused class

* Add CAN-FD busses to unit test

* Bump opendbc

* Revert "Add CAN-FD busses to unit test"

This reverts commit 2f751640408a7f73a9100947cbd95ea13fbb8a48.

* Remove duplicate

* New tune based on data

* Panda safety cleanup

* Include bus 0 in rx checks

* Missed one

* bus 6 check

* Remove redundant check

* Add comments

* Bump opendbc

* Sync with DBC

* Hide LFA icon when disengaged

* Little endian

* fix comment

* more conditions in carcontroller

* update pedal signal

* update tuning

* cleanup carcontroller

* bump panda

* fix mismatch

* alt buttons

* little more cleanup

* update refs for EV6 new safety param

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* remove old boardd stuff

* Ford: add CADS radar interface (#24296)

* Ford: use FORD_CADS radar dbc

* Ford: CADS radar interface impl

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>

* fixup radar interface for FORD_CADS dbc

* CADS treat different scan indexes as separate points

* Ford: support both Fusion and CADS radars

* Ford: rename radars to DELPHI_ESR and DELPHI_MRR

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>

* 0.8.16 release notes

* test_models: no CAN invalid tolerance (#25501)

* don't use end of route segment

* no can invalid cnt tolerance

* start checking can valid immediately once available

* we check counter violations

* README.md: update grammar (#25488)

* first paragraph

* second section

* second section pt2

* third section

* fifth section

* fifth section pt2

* sixth section

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* setup: perform all pyenv setup in a single place (#23408)

* consolidate pyenv setup

* cleanup openpilot_env.sh

* undo openpilot_env.sh changes

* needed on mac

* add that back

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* v4l_encoder: free buf_out in destructor (#25044)

* test onroad: update dmonitoringd cpu usage

* CI: Actions cleanup + speedup (#25514)

* actions cache cleanup

* release build cleanup

* fetch dpeth

* sim: fix gps message (#25521)

fix gps timestamp field renamed

bug introduced in https://github.com/commaai/cereal/pull/341

* GMC: Sierra 2020-21 support (#25523)

* Add Sierra

* actually this package works

* add to releases

* credit

* GM: add Silverado 2021 High Country FP (#25499)

* Add FP from 61c6258cac78af08

* add to dict

* Update Silverado release note (#25526)

* Translations badges: concatenate into one badge (#25522)

* add badge

done correctly

works

Update translation_badge.svg
Update translation_badge.svg
Update translation_badge.svg
Update README.md
Update translation_badge.svg
Update translation_badge.svg
Update translation_badge.svg
Update badge

Update README.md
test this

try this

finalize

remove badges

fixup readme

add to test

fix

fix

rm

* clean up

* no formats

* Fix badge workflow

* user event flagging (#25517)

* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update translations

* Toyota: add missing engine and esp FW for Corolla Cross Hybrid (#25532)

add missing engine and esp FW for CorollaCross Hybrid

DongleId 147613502316e718

* HKG: Add FW for 2018 Kia Stinger (#25531)

* HKG: Add FW for 2008 Kia Stinger

* 2018 in disguise

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* test_models: pass carFw into car interface (#25535)

pass carFw into get_params

* Add Thai translations (#25189)

* Add Thai translations

* update to add plurals

remove

* Update translations

* Update Thai translation to match English source.

* Add to badges

* use shorter km/h

* Add test for correct format specifier for plural translations

* pass new test

* Update some sentences to make it clear.
Change short form of some words.

* Hide from the UI

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* update car candidate docs (#25536)

* update car candidate docs

* little more

* that's a nice wikipedia

* quotes

* Silence a PytestCollectionWarning (#25537)

Silence PytestCollectionWarning: cannot collect test class 'TestRoute' because it has a __new__ constructor (from: test_models.py)

* bump version to 0.8.17

* Toyota: log stockAeb on non-TSS2 cars (#25489)

* check PRE_COLLISION

* need to make sure this is right

* revert

* temp, stash

* fixes

* uncomment that

* it's not really cruise/pcm, but acc

remove improt

* revert

* Fix CI

* revert exception

* Revert "revert exception"

This reverts commit 7e2f39097651f17cf3d2ac9f442fab5071e1b9d0.

* this tested enableDsu, but we have other routes that do that

* use segment from db

* remove exception again

Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Jason Shuler <jshuler@gmail.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>
Co-authored-by: Joseph Wagner <68037585+wjoseph0@users.noreply.github.com>
Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Dean Lee <deanlee3@gmail.com>
Co-authored-by: AlexandreSato <66435071+AlexandreSato@users.noreply.github.com>
Co-authored-by: Rewat S <76684800+taperec@users.noreply.github.com>

* Update translations

* Update selfdrive/ui/translations/languages.json

Co-authored-by: Shane Smiskol <shane@smiskol.com>

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Jason Shuler <jshuler@gmail.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>
Co-authored-by: Joseph Wagner <68037585+wjoseph0@users.noreply.github.com>
Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Dean Lee <deanlee3@gmail.com>
Co-authored-by: AlexandreSato <66435071+AlexandreSato@users.noreply.github.com>
Co-authored-by: Rewat S <76684800+taperec@users.noreply.github.com>
2022-08-31 11:08:39 -07:00
2022-08-30 11:20:55 -07:00
2022-08-30 17:57:14 -07:00
2022-08-30 11:20:55 -07:00
2022-08-30 15:10:52 -07:00
2022-08-30 15:10:52 -07:00
2021-01-05 12:50:23 -08:00
2020-01-17 10:25:50 -08:00
2022-01-12 23:07:06 -08:00
2022-01-10 23:14:30 -08:00
2020-05-11 10:40:49 -07:00
2020-01-17 10:22:00 -08:00
2022-07-08 00:23:46 -07:00
2021-10-07 16:32:44 -07:00
2020-01-17 10:22:00 -08:00
2022-05-02 16:48:04 -07:00
2022-08-30 15:10:52 -07:00
2022-08-30 15:10:52 -07:00
2022-08-30 11:20:55 -07:00
2020-05-14 15:36:56 -07:00
2022-08-30 11:20:55 -07:00
2022-08-30 11:20:55 -07:00
2022-08-13 23:28:44 -07:00

Table of Contents


What is openpilot?

openpilot is an open source driver assistance system. Currently, openpilot performs the functions of Adaptive Cruise Control (ACC), Automated Lane Centering (ALC), Forward Collision Warning (FCW), and Lane Departure Warning (LDW) for a growing variety of supported car makes, models, and model years. In addition, while openpilot is engaged, a camera-based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about the vehicle integration and limitations.

Running on a dedicated device in a car

To use openpilot in a car, you need four things

  • A supported device to run this software: a comma three.
  • This software. The setup procedure of the comma three allows the user to enter a URL for custom software. The URL, openpilot.comma.ai will install the release version of openpilot. To install openpilot master, you can use installer.comma.ai/commaai/master, and replacing commaai with another GitHub username can install a fork.
  • One of the 200+ supported cars. We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run openpilot.
  • A car harness to connect to your car.

We have detailed instructions for how to mount the device in a car.

Running on PC

All openpilot services can run as usual on a PC without requiring special hardware or a car. You can also run openpilot on recorded or simulated data to develop or experiment with openpilot.

With openpilot's tools, you can plot logs, replay drives, and watch the full-res camera streams. See the tools README for more information.

You can also run openpilot in simulation with the CARLA simulator. This allows openpilot to drive around a virtual car on your Ubuntu machine. The whole setup should only take a few minutes but does require a decent GPU.

A PC running openpilot can also control your vehicle if it is connected to a webcam, a black panda, and a harness.

Community and Contributing

openpilot is developed by comma and by users like you. We welcome both pull requests and issues on GitHub. Bug fixes and new car ports are encouraged. Check out the contributing docs.

Documentation related to openpilot development can be found on docs.comma.ai. Information about running openpilot (e.g. FAQ, fingerprinting, troubleshooting, custom forks, community hardware) should go on the wiki.

You can add support for your car by following guides we have written for Brand and Model ports. Generally, a car with adaptive cruise control and lane keep assist is a good candidate. Join our Discord to discuss car ports: most car makes have a dedicated channel.

Want to get paid to work on openpilot? comma is hiring.

And follow us on Twitter.

User Data and comma Account

By default, openpilot uploads the driving data to our servers. You can also access your data through comma connect. We use your data to train better models and improve openpilot for everyone.

openpilot is open source software: the user is free to disable data collection if they wish to do so.

openpilot logs the road-facing cameras, CAN, GPS, IMU, magnetometer, thermal sensors, crashes, and operating system logs. The driver-facing camera is only logged if you explicitly opt-in in settings. The microphone is not recorded.

By using openpilot, you agree to our Privacy Policy. You understand that use of this software or its related services will generate certain types of user data, which may be logged and stored at the sole discretion of comma. By accepting this agreement, you grant an irrevocable, perpetual, worldwide right to comma for the use of this data.

Safety and Testing

  • openpilot observes ISO26262 guidelines, see SAFETY.md for more details.
  • openpilot has software-in-the-loop tests that run on every commit.
  • The code enforcing the safety model lives in panda and is written in C, see code rigor for more details.
  • panda has software-in-the-loop safety tests.
  • Internally, we have a hardware-in-the-loop Jenkins test suite that builds and unit tests the various processes.
  • panda has additional hardware-in-the-loop tests.
  • We run the latest openpilot in a testing closet containing 10 comma devices continuously replaying routes.

Directory Structure

.
├── cereal              # The messaging spec and libs used for all logs
├── common              # Library like functionality we've developed here
├── docs                # Documentation
├── opendbc             # Files showing how to interpret data from cars
├── panda               # Code used to communicate on CAN
├── third_party         # External libraries
├── pyextra             # Extra python packages
└── system              # Generic services
    ├── camerad         # Driver to capture images from the camera sensors
    ├── clocksd         # Broadcasts current time
    ├── hardware        # Hardware abstraction classes
    ├── logcatd         # systemd journal as a service
    └── proclogd        # Logs information from /proc
└── selfdrive           # Code needed to drive the car
    ├── assets          # Fonts, images, and sounds for UI
    ├── athena          # Allows communication with the app
    ├── boardd          # Daemon to talk to the board
    ├── car             # Car specific code to read states and control actuators
    ├── controls        # Planning and controls
    ├── debug           # Tools to help you debug and do car ports
    ├── locationd       # Precise localization and vehicle parameter estimation
    ├── loggerd         # Logger and uploader of car data
    ├── manager         # Daemon that starts/stops all other daemons as needed
    ├── modeld          # Driving and monitoring model runners
    ├── monitoring      # Daemon to determine driver attention
    ├── navd            # Turn-by-turn navigation
    ├── sensord         # IMU interface code
    ├── test            # Unit tests, system tests, and a car simulator
    └── ui              # The UI

Licensing

openpilot is released under the MIT license. Some parts of the software are released under other licenses as specified.

Any user of this software shall indemnify and hold harmless Comma.ai, Inc. and its directors, officers, employees, agents, stockholders, affiliates, subcontractors and customers from and against all allegations, claims, actions, suits, demands, damages, liabilities, obligations, losses, settlements, judgments, costs and expenses (including without limitation attorneys fees and costs) which arise out of, relate to or result from any use of this software by user.

THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED.


openpilot tests Total alerts Language grade: Python Language grade: C/C++ codecov

Languages
Python 66%
C 20.2%
C++ 4.5%
Cuda 3.6%
Metal 1.6%
Other 4%