- Join Our Discord
- About This Fork
- Main Features
- Branch Definitions
- How To Install
- Settings Menu
- Special Thanks
- Donate
Join The OPKR Server!
This fork is focused on Hyundai, Kia, and Genesis Vehicles and for all people who love Comma's Openpilot.
- Advanced UI with on-screen settings for most openpilot parameters.
- Live Tune via UI
- Change cruise mode pushing GAP Button at Cruise Standby status.(OpenpilotStock, Dist+Curv, Dist only, Curv only, OneWay mode, Speedlimit decelation mode only)
- MapBox support, thanks to Dragonpilot
- Showing IP Address/SSID name/cell carrier and signal strength
- Cruise Button Spamming to adjust car set speed without longitudinal control, using OP target speed to keep certain distance to lead car. Variable scc speed control for smooth deceleration (better than stock) when you approach the lead car, and smooth acceleration.
- SmartMDPS support for steering down to 0 mph.
- Auto Recognition of SCC bus on CAN 2 for long control.
- Variable color speed display, braking shades of red, acceleration shades of green, coasting (no brake, no gas) white.
- OSM integration for auto SCC speed adjust via button spamming and slow down on curve using custom UI settings.
- 2 Users presets.
- Auto lane mode selection (laneless or lanefull).
- Multi-lateral control
- No ssh knowledge required, as most paramater can be adjusted via UI.
- Always updated and current.
User-Friendly Control Mode(UFC)
- Full time lateral control
- Auto Resume while Driving
- Seperate Lat/StockLong - To be Developed
OPKR:
main branch, stable, not latest. This will be updated if test branch is done.OPKR_test:
test branches, not stable, latest, for testing new functions, codes, or the other things.
** old branches are in openpilot_bak repository.
OPKR's fork installer:
Type https://opkr.o-r.kr/fork/opkr on custom URL window. (OPKR_test branch is https://opkr.o-r.kr/fork/test)SSH:
cd /data; mv openpilot openpilot_bak; git clone https://github.com/openpilotkr/openpilot.git -b OPKR; reboot
** you can also use Shane's fork installer. (https://smiskol.com/fork)
-
Device
(Function Name: Description)- Driving Camera: You can preview/unview Openpilot Driving Camera.
-
Network
(Function Name: Description)- HotSpot on Boot: Turn on Hotspot when boot. (reboot required)
- Use Legacy SSH Key: Use old ssh key access(below 0.8.2). (no reboot required)
-
Toggles
(Function Name: Description)- Enable Lane selector Mode: Show a lane mode button on driving screen Laneline/LaneLess/AUTO. AUTO will automatically switch based on presents of lane marker. (no reboot required)
- Enable Driver Monitoring: On/Off driver monitoring for the EON without filterless IR camera or Someone cannot use front cam due to certain reasons.(reboot required)
- Enable Driving Log Record: Record driving logs to Local, not to online server. (reboot required)
- Enable Sending Log to Server: Enable log upload to online server. (reboot required)
- Use Comma Stock UI: this use original Comma's UI. Also this can be applied on driving screen in realtime (click MaxSpeed box at top-left corner). (no reboot required)
-
Software
(Function Name: Description)- Check for Updates: You can confirm new commits of your fork, press ok will update and reboot.(like git pull).
- Commit(Local/Remote): Commit name of local(EON) and Remote.(run once when boot in manager.py, search gitcommit.sh at the file, internet connection required)
- Git Pull On Boot: run 'git pull' command when boot.
- Load Preset/Save Preset: Load your Parameters or Save Your Parameters. located /data/preset1 or /data/preset2. This function can save/load your settings)
- Parameter Init: Remove your settings changes and restore initial values.
- Git Reset: Remove your local changes and inintalize to the original status of the branch.
- Cancel Git Pull: Move back to previous version of fork if last update is not desired.
- Panda Flashing: Run Panda flashing command manually. Basically this is not necessary on normal operation.
- Change Repo/Branch: You can install others fork/branch thru typing Git ID, Git Repository, Git Branch.
-
UI Menu
(Function Name: Description)- EON AutoShutdown: When car ignition is turned off, the device will be shutdown after the set time.
- EON ForceShutdown: The device will be shutdown by force at offroad status after set time.
- EON Volume Control(%): set device volume manually.
- EON Brightness Control(%): set device brightness automatically or manually.
- EON SCR Off Timer: The Brightness at SCR Off(%) will be in effect after set time when driving.
- Brightness at SCR Off(%): Work with (EON SCR Off Timer) setting, set screen brightness level %.
- EON Detach Alert Sound: Will play alert sound when your car ignition is turned off. (Can be used as a reminder to remove device from mount to protect from sun, theft, etc.)
- None
- Korean
- English
- Enable Battery Charging Control: battery charging control, min and max battery setting. (Not applicable for batteryless unit.)
- Use Auto Screen Record: At departure, screen recording starts automatically, when vehicle is stationary, screen recording stop.
- Number of Recorded Files: Max mp4 files that will be recorded before oldest file is overwritten. (to prevent device storage full)
- Recording Quality: Video quality of recordings
- Low
- Mid
- High
- U-High
- Delete All Recorded Files: from device /sdcard/videos
- Delete All Driving Logs: from device/sdcard/realdata
- Driver Monitoring Mode: Default/Unsleep (no reboot required)
- Default: This Comma's DM mode
- Unsleep: If you choose Unsleep, dm will be more sensitive than default.
**You can switch the Mode on driving screen in realtime (touch monitoring face at bottom-left corner)
**no background is Default Mode. Light green background is Unsleep Mode.
- E2E EYE Threshold: Experimental setting.
- Normal EYE Threshold: set the value below threshold of your face recognition.
- Blink Threshold: For Driver Monitoring. Set the value below the threshold of your eyes blink recognition. Driver Monitoring camera shows the values of your face recognition, eyes and the other things. Preview 'Driver Camera' and then check the recognition value of your eye blink to modify the value on menu.
- Navigation Select:
- iNavi (Korea)
- Mappy (Korea)
- Waze (Global)
- RUN Navigation on Boot: Run your selected iNavi, Mappy or Waze on boot. If it runs well, will go to background after few seconds.
- Display Date on Screen: shows the device date
- Display Time on Screen: shows the device time
- API Server: Choose driver log server
- OPKR
- Comma
- User's
- User's API: Set User driver log server url.
- Mapbox Style: Choose from three styles
- Mapbox
- Comma
- OPKR (locallized in Korea)
**if you want to use your own, Edit the file with yours(/data/params/d/MapboxStyleCustom).
**You can make your mapbox style at https://studio.mapbox.com/. (If you publish the style you can use it.)
- Top Text View: Show Date/Time/Roadname at top of drive screen.
- RPM Animation Show RPMs on UI with adjustable limit
- Show Stop Line
- Enable RTShield Process
- Offline OSM (Korea only)(64G storage only)
-
Driving Menu
(Function Name: Description)- Use Auto Resume at Stop: after standstill, op will auto resume when leadcar start moving.
- RES count at standstill: some model need to be adjusted so car move when lead car start moving.(reboot required)
- Change Cruise Gap at Stop: Cruise Gap changed to 1 step for departure faster, it gets back to orignal Gap after few second.
- Standstill Resume Alternative: Some model need this for Auto Resume at Stop.
- Use Cruise Button Spamming: SCC set speed is changed up and down automatically. turn on to use many functions related to auto speed control.
- Cruise Start Mode: Set your custom Cruise mode when boot. There are 6 modes. (OpenpilotStock/Dist+Curv/Dist/Curv/Oneway/CamSpeed)
- OpenpilotStock: Scc button will set scc speed, will work like stock button to set op.
- Dist+Curv: changed by distance to leadcar and curvature.
- Dist: distance only.
- Curv: curvature only.
- Oneway: change camera offset to approach the edge of a road.
- CamSpeed: is changing set speed only by value of speed sign (OSM, iNavi, Mappy).
- LaneChange Speed: minimum lane change speed
- LaneChange Delay: adjust delay time before lane change
- Nudge/Nudgeless/Set Seconds
- LaneChange Time(km/h: value): How quick should lane change be completed, faster, increase the value, decrease for slower.
- LeftCurv Offset: if you are not satisfy with Left Curve Section, this can move your car to left or right side.(no reboot required)
- RightCurv Offset: if you are not satisfy with Right Curve Section, this can move your car to left or right side.(no reboot required)
- Show BSM Status: Show when a car is in blindspot. need car BSM function.
- Steer Control Method Choose between normal and smooth.
- Max Steering Angle: Default is 90. If you want more, increase this. Some car will not accept value above 90.
- Str Angle Adjust: To keep car on a straight road, If the value of steering angle is not 0.0, adjust this to be 0.0
- Stop Steer Assist on Turn Signals: Openpilot doesn't steer your car when turn signal is active.
- Reset MaxSpeed Over CurrentSpeed: Sync scc speed with car current speed, the OP MaxSpeed synchronize to your car speed.
- Enable OSM: use OSM feature
- Enable OSM SpeedLimit: Use OSM SpeedLimit, active internet required. (reboot required).
- Use Stock SafetyCAM Speed: Some cars have the signal in CAN message. not for all HKG cars.
- SpeedLimit Offset (%, +- or C): Use to set scc speed above or below the OSM or Stock can reported speed. This can be % Speed amount + / -
- OSMCustomSpeedlimit([SL],[Target Speed]): (Set SpeedLimit Offset to C) set custom OSM speed offset SL & Target Speeds.
- SafetyCam SignType: You can select 2 options to show on the screen
- Circular: (EU) type of speedlimit sign.
- Retangular: (US) type of speedlimit sign.
- SafetyCamDist Adj(%): Change the target distance if you are in the decel situation of speed limit or safetycam.
- Curve Decel Option : Which curve decel you want to use, Vision / OSM.
- VisionCurvDecel([CV],[Target Speed]): set speed is changed by Curve Vector and Target Speed.
- OSMCurvDecel([TSL],[Target Speed]): If OSM has the value of curv, set your target speed.
- Use Auto Engagement: When OP is in disengagement status, Auto engagement is enabled when your car is moving. Cruise Standby status is needed at least.
- Auto Engage Speed(km/h): Auto Engagement is enabled at this speed.
- Use Auto RES while Driving: SCC speed automatically resume when brake is release or gas is applied.(reboot required)
- AutoRES Option: CruiseSet/MaxSpeedSet, MaxSpeedSet: Your OP MAX Speed set with RES Set speed. CruiseSet:only set to current set speed, not changed OP MAX Speed.
- AutoRES Condition: RelBrake/OnGas, RelBrake: SCC speed set again when you release from brake pedal. OnGas: SCC speed set again when you step gas pedal.
- AutoRES Allow(sec): If AutoRES does not occur before set time, then auto resume is cancelled.
- AutoRESDelay (sec): AutoRes will not reume until set time elapse, to prevent premature resume.
- Set LaneWidth: Adjust if road lane is narrow
- Speed LaneWidth: [Spd(m/s)], [Lanewidth] Adjust speed based on lane width.
- Routine Drive by Roadname: (WIP) will change drive characteristics based on road, eg if local or highway will handle curve differently.
- Driving Close to RoadEdge
- Avoid LKAS Fault
- Speed CameraOffset
-
Developer Menu
(Function Name: Description)- DEBUG UI 1: Show debug UI on screen. 2 lines bottom of screen.(no reboot required)
- DEBUG UI 2: Show debug UI on screen. other lines except 2 lines bottom.(no reboot required)
- DEBUG UI 3: Show debug UI on screen. more debug info.(no reboot required)
- Show TMUX Error: Turn this on, if you want to show tmux error on screen related to process such as controlsd, plannerd and so on.(reboot required)
- Show LongControl LOG: show long control log at DEBUG UI 1.(no reboot required)
- Use Smart Prebuilt: Your device can be booted quickly. The file, Prebuilt is removed when you do push 'CHECK' button on the Menu or type 'gi' command on command line, after then it will be created again when boot&compile is completed.(reboot required)
- Use FingerPrint 2.0: (reboot required)
- Support WhitePanda: Turn this on if you use WhitePanda. this is related to issue stopping processes when you turn device off.(reboot required)
- Set BatteryLess Eon: Screen doesn't show information of battery status.
- Turn Off Communication Issue Alarm: Turn this on if you do not want alert of communication error. Sometimes you could get an commuication issue alert while using navi app or your custom UI is busy or rarely due to locationd(regarding GPS) process. I could use OP with the alert before without any issues. This is quite old issue. Currently I'm not sure if the error is still exist.
- Set LDWS Vehicles
- Set DriveGear by Force: for cars don't have dbc info of gear(reboot required)
- Ignore of Steering Warning: Some cars have Steerwarning, so that not engaged.
- Ignore Can Error on ISG: for ISG cars. In order to ignore can error, if you want to prevent disengagement.
- Enable FCA11 Message: For some newer vechicle
- Steer Wind Down :
- MainSwitch Openpilot On/Off:
- StockLKAS Enable at disengagement:
- C2 with CommaPower:
- Use GoogleMap for Mapbox: Use google map when you search your destination at a web browser.
- Timezone setting: (reboot required)
- Enable Calibration by Force: developer for engagment test
- Open Android Settings
- SoftKey RUN/SET: softkey application
- RUN Mixplorer: file manager application
- CAR Force Recognition: If your car is not recognized, choose your car at this. (reboot required)
- Panda Value Edit: not recommended. enough at current status. (reboot required)
- MaxSteer
- RTDelta
- MaxRateUp
- MaxRateDown
-
Tuning Menu
(Function Name: Description)- CameraOffset: set your camera offset
- PathOffset: i'm not sure this. but i recommend if you move your camera offset, adjust this as the value.
- Use Live SteerRatio: Use Live Parameter value.
- LiveSR Adjsut(%): in some cases, live parameter is higher than original steeratio, i set this to minus value to not steer aggressively.
- SteerRatio: Your default SteerRatio
- SteerRatioMax: Max SteerRatio if you use Varaible SteerRatio not Live SR.
- SteerActuatorDelay: level how your car reacts to upcoming road curvature.
- SteerRateCost: How your car make steer strong to turn with the road curvature. you want make it strong lower the value. too much low values, it will make the steering little unstable.
- SteerLimitTimer: timer how long op hold the steer. and timer for alert.
- TireStiffnessFactor: lower value makes your steer more aggressive.
- SteerMaxDefault: SteerMax Default value
- SteerMaxMax: SteerMax Max value if you use variable SteerMax.
- SteerMaxV: multiply to the output scale. it effects steer saturation or others.
- Use variable SteerMax: use variable steermax by road curvature. it works above 30km/h.
- SteerDeltaUpDefault: how fast steer inside in certain timing scope.
- SteerDeltaUpMax: max value if you use variable steerdelta
- SteerDeltaDownDefault: how fast steer outside in certain timing scope.
- SteerDeltaDownMax: max value if you use variable steerdelta
- Use variable SteerDelta: use variable steerdelta by road curvature. it works above 30km/h.
- SteerThreshold: driver steering torque threshold
- LatControl: (reboot required)
- PID
- INDI
- LQR
- Torque
- Use LiveTune and Show UI: this will show button on the screen, you can up/down the values of tune. it will be applied in realtime. you can also touch top-right corner(comma wheel icon) to show tune panel on the screen.
- Tune Values: change and find appropriate values.
LONG CONTROL MENU
(RadarHareness required)- Use DynamicTR: TR changed by car speed.
- CruiseGap: set TR of other Cruise Gaps
- Use Radar Long Assist: when your car approaches to lead car, use combined value both OP gas/brake and Radar one.
- Adjust Stopping Distance: help stopping distance more close to lead car(not recommended)
- Enable E2E Long: Use Comma E2E long, sometimes it is not comfortable. think it's earlier to release.
Special Thanks:
ku7, xx979xx, tk211x, xps-genesis, atom(respect you), hoya, moksatang, mamul, neokii, oricialworks, dragonpilot, shane, kegman, dnv26, move-fast, D.Fyffe, Swish865 and everyone helping me or contributing for HKGs.
If you enjoy any features of this fork and would like to show your support, feel free to donate to @multiKYD on PayPal.
Thank you!
=================
- What is openpilot?
- Running in a car
- Running on PC
- Community and Contributing
- User Data and comma Account
- Safety and Testing
- Directory Structure
- Licensing
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.
To use openpilot in a car, you need four things
- This software. It's free and available right here.
- One of the 150+ 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 supported device to run this software. This can be a comma two, comma three, or if you like to experiment, a Ubuntu computer with webcams.
- A way to connect to your car. With a comma two or three, you need only a car harness. With an EON Gold or PC, you also need a black panda.
We have detailed instructions for how to install the device in a car.
All of openpilot's services can run as normal on a PC, even without special hardware or a car. To develop or experiment with openpilot you can run openpilot on recorded or simulated data.
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.
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.
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.
- 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.
.
├── 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
└── 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
├── camerad # Driver to capture images from the camera sensors
├── car # Car specific code to read states and control actuators
├── common # Shared C/C++ code for the daemons
├── controls # Planning and controls
├── debug # Tools to help you debug and do car ports
├── locationd # Precise localization and vehicle parameter estimation
├── logcatd # Android logcat as a service
├── loggerd # Logger and uploader of car data
├── modeld # Driving and monitoring model runners
├── proclogd # Logs information from proc
├── sensord # IMU interface code
├── test # Unit tests, system tests, and a car simulator
└── ui # The UI
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.