- Join our Discord
- What is sunnypilot?
- Running in a car
- Read Before Installing
- Prohibited Safety Modifications
- Installation
- Highlight Features
- Driving Enhancements
- Branch Definitions
- Recommended Branches
- How-To's
- Pull Requests
- Special Thanks
- User Data
- Licensing
- Donate
Join the official sunnypilot Discord server to stay up to date with all the latest features and be a part of shaping the future of sunnypilot!
sunnypilot is a fork of comma.ai's openpilot, an open source driver assistance system. sunnypilot offers the user a unique driving experience for over 250+ supported car makes and models with modified behaviors of driving assist engagements. sunnypilot complies with comma.ai's safety rules as accurately as possible.
To use sunnypilot in a car, you need the following:
- A supported device to run this software
- a comma three, or
- a comma two (only with older versions below 0.8.13)
- This software
- One of the 250+ supported cars. We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, Ford and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run sunnypilot.
- A car harness to connect to your car
Detailed instructions for how to mount the device in a car.
It is recommended to read this entire page before proceeding. This will ensure that you fully understand each added feature on sunnypilot, and you are selecting the right branch for your car to have the best driving experience.
This is a fork of comma.ai's openpilot. By installing this software, you accept all responsibility for anything that might occur while you use it. All contributors to sunnypilot are not liable. βUse at your own risk.β
All official sunnypilot branches strictly adhere to comma.ai's safety policy. Any changes that go against this policy will result in your fork and your device being banned from both comma.ai and sunnypilot channels.
The following changes are a VIOLATION of this policy and ARE NOT included in any sunnypilot branches:
- Driver Monitoring:
- β "Nerfing" or reducing monitoring parameters.
- Panda safety:
- β No preventing disengaging of LONGITUDINAL CONTROL (acceleration/brake) on brake pedal press.
- β No auto re-engaging of LONGITUDINAL CONTROL (acceleration/brake) on brake pedal release.
- β No disengaging on ACC MAIN in OFF state.
URL (Easy)
Please refer to Recommended Branches to find your preferred/supported branch. This guide will assume you want to install the latest release-c3
branch.
-
sunnypilot not installed or you installed a version before 0.8.17?
- Factory reset/uninstall the previous software if you have another software/fork installed.
- After factory reset/uninstall and upon reboot, select
Custom Software
when given the option. - Input the installation URL per Recommended Branches. Example:
bit.ly/sp-release-c3
1 (note:https://
is not requirement on the comma three) - Complete the rest of the installation following the onscreen instructions.
-
sunnypilot already installed and you installed a version after 0.8.17?
- On the comma three, go to
Settings
βΆοΈ Software
. - At the
Download
option, pressCHECK
. This will fetch the list of latest branches from sunnypilot. - At the
Target Branch
option, pressSELECT
to open the Target Branch selector. - Scroll to select the desired branch per Recommended Branches. Example:
release-c3
- On the comma three, go to
Requires further assistance with software installation? Join the sunnypilot Discord server and message us in the #installation-help
channel.
- Factory reset/uninstall the previous software if you have another software/fork installed.
- After factory reset/uninstall and upon reboot, select
Custom Software
when given the option. - Input the installation URL per Recommended Branches. Example:
https://smiskol.com/fork/sunnyhaibin/0.8.12-4-prod
- Complete the rest of the installation following the onscreen instructions.
Requires further assistance with software installation? Join the sunnypilot Discord server and message us in the #installation-help
channel.
SSH (More Versatile)
Prerequisites: How to SSH
If you are looking to install sunnypilot via SSH, run the following command in an SSH terminal after connecting to your device:
-
cd /data; rm -rf ./openpilot; git clone -b release-c3 --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
-
cd /data; rm -rf ./openpilot; git clone -b 0.8.12-prod-personal-hkg --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
After running the command to install the desired branch, your comma device should reboot.
- Modified Assistive Driving Safety (MADS) - Automatic Lane Centering (ALC) / Lane Keep Assist System (LKAS) and Adaptive Cruise Control (ACC) / Smart Cruise Control (SCC) can be engaged independently of each other
- Dynamic Lane Profile (DLP) - Dynamically switch lane profile (between Laneful and Laneless) based on lane recognition confidence
- Enhanced Speed Control - Automatically adjust cruise control speed using vision model, OpenStreetMap (OSM) data, and/or Speed Limit control (SLC) without user interaction
- Vision-based Turn Speed Control (V-TSC) - lower speed when going around corners using vision model
- Map-Data-based Turn Speed Control (M-TSC) - lower speed when going around corners using OSM data2
- Speed Limit Control (SLC) - Set speed limit based on map data or car interface (if applicable)
- HKG only: Highway Driving Assist (HDA) status integration - Use cars native speed sign detection to set desired speed (on applicable HKG cars only)
- Gap Adjust Cruise (GAC) - Allow
GAP
/INTERVAL
/DISTANCE
button on the steering wheel or on-screen button to adjust the follow distance from the lead car. See table below for options- Quiet Drive π€« - Toggle to mute all notification sounds (excluding driver safety warnings)
- Auto Lane Change Timer - Set a timer to delay the auto lane change operation when the blinker is used. No nudge on the steering wheel is required to auto lane change if a timer is set
- Force Car Recognition (FCR) - Use a selector to force your car to be recognized by sunnypilot
- Fix sunnypilot No Offroad - Enforce sunnypilot to go offroad and turns off after shutting down the car. This feature fixes non-official devices running sunnypilot without comma power
- Enable ACC+MADS with RES+/SET- - Engage both ACC and MADS with a single press of RES+ or SET- button
- Offline OSM Maps - OSM database can now be downloaded locally for offline use3. This enables offline SLC, V-TSC and M-TSC. Currently available for US South, US West, US Northeast, Florida, Taiwan, South Africa and New Zealand
- Various Live Tuning - Ability to tailor your driving experience on the fly:
- Enforce Torque Lateral Control - Use the newest torque controller for all vehicles.
- Torque Lateral Control Live Tune - Ability to adjust the torque controllerβs
FRICTION
andLAT_ACCEL_FACTOR
values to suit your vehicle. - Torque Lateral Controller Self-Tune - Enable automatic turning for the Torque controller.
- M.A.D.S Status Icon - Dedicated icon to display M.A.D.S. engagement status
- Greenπ’: M.A.D.S. engaged
- Whiteβͺ: M.A.D.S. suspended or disengaged
- Lane Path Color - Various lane path colors to display real-time Lane Model and M.A.D.S. engagement status
- 0.8.14 and later:
- Blueπ΅: Laneful mode & M.A.D.S. engaged
- Greenπ’: Laneless mode & M.A.D.S. engaged
- Yellowπ‘: Experimental e2e & M.A.D.S. engaged
- Pre 0.8.14:
- Greenπ’: Laneful mode & M.A.D.S. engaged
- Redπ΄: Laneless mode & M.A.D.S. engaged
- Whiteβͺ: M.A.D.S. suspended or disengaged
- Blackβ«: M.A.D.S. engaged, steering is being manually overridden by user
- 0.8.14 and later:
- Developer (Dev) UI - Display various real-time metrics on screen while driving
- Stand Still Timer - Display time spent at a stop with M.A.D.S engaged (i.e., at traffic lights, stop signs, traffic congestions)
- Braking Status - Current car speed text turns red when the car is braking by the driver or ACC/SCC
- Fast Boot - sunnypilot will fast boot by creating a Prebuilt file
- Disable Onroad Uploads - Disable uploads completely when onroad. Necessary to avoid high data usage when connected to Wi-Fi hotspot
- Brightness Control (Global) - Manually adjusts the global brightness of the screen
- Driving Screen Off Timer - Turns off the device screen or reduces brightness to protect the screen after car starts
- Driving Screen Off Brightness (%) - When using the Driving Screen Off feature, the brightness is reduced according to the automatic brightness ratio
- Max Time Offroad - Device is automatically turned off after a set time when the engine is turned off (off-road) after driving (on-road)
The goal of Modified Assistive Driving Safety (MADS) is to enhance the user driving experience with modified behaviors of driving assist engagements. This feature complies with comma.ai's safety rules as accurately as possible with the following changes:
- sunnypilot Automatic Lane Centering (ALC) and ACC/SCC can be engaged independently of each other
- Dedicated button to toggle sunnypilot ALC:
CRUISE (MAIN)
button: All supported cars on sunnypilotLFA
button: Newer HKG cars withLFA
buttonLKAS
button: Honda, Toyota, Global Subaru
SET-
button enables ACC/SCCCANCEL
button only disables ACC/SCCCRUISE (MAIN)
must beON
to use ACC/SCCCRUISE (MAIN)
button disables sunnypilot completely whenOFF
(strictly enforced in panda safety code)
Dedicated toggle to handle Lateral state on brake pedal press and release:
ON
:BRAKE pedal
press will pause Automatic Lane Centering;BRAKE pedal
release will resume Automatic Lane Centering. Note:BRAKE pedal
release will NOT resume ACC/SCC/Long control without explicit user engagement (strictly enforced in panda safety code)OFF
:BRAKE pedal
press will NOT pause Automatic Lane Centering;BRAKE pedal
release will NOT resume ACC/SCC/Long control without explicit user engagement (strictly enforced in panda safety code)
TURN SIGNALS
(Left
orRight
) will pause Automatic Lane Centering if the vehicle speed is below the threshold for Automatic Lane Change- Event audible alerts are more relaxed to match manufacturer's stock behavior
- Critical events trigger disengagement of Automatic Lane Centering completely. The disengagement is enforced in sunnypilot and panda safety
Dynamic Lane Profile (DLP) aims to provide the best driving experience at staying within a lane confidently. Dynamic Lane Profile allows sunnypilot to dynamically switch between lane profiles based on lane recognition confidence level on road.
There are 3 modes to select on the onroad camera screen:
- Auto Lane: sunnypilot dynamically chooses between
Laneline
orLaneless
model - Laneline: sunnypilot uses Laneline model only.
- Laneless: sunnypilot uses Laneless model only.
To use Dynamic Lane Profile, do the following:
1. sunnypilot Settings -> `SP - Controls` -> Enable Dynamic Lane Profile -> ON toggle
2. Reboot.
3. Before driving, on the onroad camera screen, toggle between the 3 modes by pressing on the button.
4. Drive.
This fork now allows supported cars to dynamically adjust the longitudinal plan based on the fetched map data. Big thanks to the Move Fast team for the amazing implementation!
Supported cars:
- sunnypilot Longitudinal Control capable
- Stock Longitudinal Control
- Hyundai/Kia/Genesis (non CAN-FD)
- Honda Bosch
- Volkswagen MQB
Certain features are only available with an active data connection, via:
- comma Prime - Intuitive service provided directly by comma, or
- Personal Hotspot - From your mobile device, or a dedicated hotspot from a cellular carrier.
Features:
- Vision-based Turn Speed Control (VTSC) - Use vision path predictions to estimate the appropriate speed to drive through turns ahead - i.e. slowing down for curves
- Map-Data-based Turn Speed Control (MTSC) - Use curvature information from map data to define speed limits to take turns ahead - i.e. slowing down for curves2
- Speed Limit Control (SLC) - Use speed limit signs information from map data and car interface to automatically adapt cruise speed to road limits
- Toggle Hands on Wheel Monitoring - Monitors and alerts the driver when their hands have not been on the steering wheel for an extended time
While using stock Adaptive/Smart Cruise Control, Custom Stock Longitudinal Control in sunnypilot allows sunnypilot to manipulate and take over the set speed on the car's dashboard.
Supported Cars:
- Hyundai/Kia/Genesis
- CAN platform
- CAN-FD platform with 0x1CF broadcasted in CAN traffic
- Honda Bosch
- Volkswagen MQB
Instruction
**π How to use Custom Longitudinal Control on sunnypilot **
When using Speed Limit, Vision, or Map based Turn control, you will be setting the "MAX" ACC speed on the sunnypilot display instead of the one in the dashboard. The car will then set the ACC setting in the dashboard to the targeted speed, but will never exceed the max speed set on the sunnypilot display. A quick press of the RES+ or SET- buttons will change this speed by 5 MPH or KM/H on the sunnypilot display, while a long deliberate press (about a 1/2 second press) changes it by 1 MPH or KM/H. DO NOT hold the RES+ or SET- buttons for longer that a 1 second. Either make quick or long deliberate presses only.
βΌ Where to look when setting ACC speed βΌ
Do not look at the dashboard when setting your ACC max speed. Instead, only look at the one on the sunnypilot display, "MAX". The reason you need to look at the sunnypilot display is because sunnypilot will be changing the one in the dashboard. It will be adjusting it as needed, never raising it above the one set on the sunnypilot display. ONLY look at the MAX speed on the sunnypilot display when setting the ACC speed instead of the dashboard!
(Courtesy instructions from John, author of jvePilot)
This fork now allows supported openpilot longitudinal cars to adjust the cruise gap between the car and the lead car.
Supported cars:
- sunnypilot Longitudinal Control capable
π¨PROCEED WITH EXTREME CAUTION AND BE READY TO MANUALLY TAKE OVER AT ALL TIMES
There are 4 modes to select on the steering wheel and/or the onroad camera screen:
- Stock Gap: Stock sunnypilot distance - 1.45 second profile
- Mild Gap: Semi-aggressive distance - 1.25 second profile
- π¨Aggro Gapπ¨: Aggressive distance - 1.0 second profile
Availability
Car Make | Stock Gap | Mild Gap | Aggro Gap |
---|---|---|---|
Honda/Acura | β | β | β |
Hyundai/Kia/Genesis | β | β | β |
Toyota/Lexus | β | β | β |
Volkswagen MQB/PQ | β | β | β |
Tag | Definition | Description |
---|---|---|
release |
Release branches | Include features that are verified by trusted testers and the community. Ready to use. β |
staging |
Staging branches | Include new features that are tested by trusted testers and the community. Stability may vary. β |
dev |
Development branches | All features are gathered in respective versions. Reviewed and merged features will be committed to dev . Stability may vary. β |
master |
Main branch | Syncs with commaai's openpilot master upstream branch. Accepts all pull requests. Does not include all sunnypilot features. Stability may vary. β |
Example:
release-c3
: Latest release branch for comma three that are verified by trusted testers and the community. Ready to use.staging-c3
: Latest staging branch for comma three that are tested by trusted testers and the community. Verification required.dev-c3
: Latest development branch for comma three that include all sunnypilot features. Testing required.
Branch | Definition | Compatible Device | Changelogs |
---|---|---|---|
release-c3 |
β’ Latest release/stable branch | comma three | CHANGELOGS.md |
staging-c3 |
β’ Latest staging branch | comma three | CHANGELOGS.md |
dev-c3 |
β’ Latest development branch with experimental features | comma three | CHANGELOGS.md |
We welcome both pull requests and issues on GitHub. Bug fixes are encouraged.
Pull requests should be against the most current master
branch.
By default, sunnypilot uploads the driving data to comma servers. You can also access your data through comma connect.
sunnypilot is open source software. The user is free to disable data collection if they wish to do so.
sunnypilot logs the road-facing camera, 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 this software, 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 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.
If you find any of the features useful, consider becoming a patron on Patreon or a sponsor on GitHub to support future feature development and improvements.
By becoming a patron/sponsor, you will gain access to exclusive content, early access to new features, and the opportunity to directly influence the project's development.
Your continuous love and support are greatly appreciated! Enjoy π₯°
- Jason, Founder of sunnypilot
Footnotes
-
Shortened URL for convenience. Full URL is
smiskol.com/fork/sunnyhaibin/release-c3
β© -
Requires data connection if not using Offline Maps data β© β©2 β©3 β©4
-
At least 50 GB of storage space is required. If you have the 32 GB version of comma three, upgrading with a compatible 250 GB or 1 TB SSD is strongly recommended β©