As of May 2025, we are updating the way branches are named and how links are generated. We had initially intended to use a branch naming system similar to openpilot and sunnypilot where there was a "stable" or "release" branch which included all fully vetted code, and then "staging" or "beta" branches with new code that would eventually move into the stable/release branches. However as we evolved we found everyone liked being able to bounce between newer and older branches to compare features and control. Moving forwards all releases will simply be named bp-"feature release number" as an example "staging-1.1" which features the bluepilot 1.1 features (custom tuning) will become "bp-1.1". We will not delete older branches so that anyone can go back and view older code for references. Branches that no longer work properly will be denoted as -deprecated.
To install any version of bluepilot, use the following URL formula (URL is case sensitive)
installer.comma.ai/BluePilotDev/"branch name"
For example
installer.comma.ai/BluePilotDev/bp-5.0
will install the bp-5.0 branch (current release based on SunnyPilot v2025.001.000). Branches known to no longer work due to changes in the comma codebase will be appended with -deprecated so it will be obvious they will not install or work correctly.
Join the official #ford channel at the sunnypilot Discord server to stay up to date with all the latest features and be a part of shaping the future of bluepilot!
bluepilot is a fork of the hugely popular SunnyPilot project for the Comma3 and Comma3X. The goal of BluePilot is to develop, test, and stage Ford specific enhancements, validating them before submission to the SunnyPilot team for inclusion in the parent project.
BluePilot bp-5.0 is based on SunnyPilot v2025.001.000 and includes all upstream sunnypilot features plus Ford-specific enhancements. This release runs on AGNOS 13.1 and brings significant improvements to the UI, settings management, and onroad experience.
BluePilot includes all features from the upstream SunnyPilot project. For a complete list of sunnypilot features and changes:
- CHANGELOG_SP.md - Complete sunnypilot changelog with all upstream features
- README_SP.md - Full sunnypilot documentation and feature descriptions
Key upstream features include: MADS (Modular Assistive Driving System), Neural Network Lateral Control (NNLC), Dynamic Experimental Control (DEC), Speed Limit Assist (SLA), Intelligent Cruise Button Management (ICBM), Smart Cruise Control Map & Vision (SCC-M / SCC-V), Driving Model Manager with 86+ models, sunnylink integration, and much more.
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. This same stipulation applies to all bluepilot instances as well.
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.
-
bluepilot not installed
- Factory reset/uninstall the previous software if you have another software/fork installed.
- After factory reset/uninstall and upon reboot, select
Custom Softwarewhen given the option. - Input the installation URL based on the desired branch. Example:
installer.comma.ai/BluePilotDev/bp-5.0(note:https://is not required on the comma three) - Complete the rest of the installation following the onscreen instructions.
-
bluepilot already installed and you installed a version after 0.8.17?
- On the comma three, go to
SettingsβΆοΈ Software. - At the
Downloadoption, pressCHECK. This will fetch the list of latest branches from sunnypilot. - At the
Target Branchoption, pressSELECTto open the Target Branch selector. - Scroll to select the desired branch
- On the comma three, go to
Requires further assistance with software installation? Join the sunnypilot Discord server and message us in the #ford channel.
BluePilot 5.0 is a major update based on SunnyPilot v2025.001.000 (AGNOS 13.1) with significant improvements to the UI, settings management, and onroad experience.
- Completely redesigned settings menu - Reorganized into focused panels (Device, Display, Network, Vehicle, Toggles, Cruise, Steering, Developer, Visuals) for better navigation
- Enhanced BluePilot Sidebar - WiFi status with SSID and signal strength, improved network info card, removed constant fan animation (now shows memory usage only)
- Improved Onroad Rendering - Enhanced lane lines, road edges, and path rendering with glow effects and smoother curve tracking
- Routes Panel (Beta) - View dashcam footage directly on the device with video playback, web-based routes viewer for logs and cereal data
- Brightness Control System - Perceptual brightness correction for better viewing experience with more responsive adjustments
- Model Info & Drive Stats Widgets - Real-time onroad display of model information and enhanced drive statistics
- New Software Panel - Integrated updater with branch management, model selection interface, git manager integration, and improved power management
- Models Panel - Easy switching between different driving models without reinstalling branches
- Developer Tools - Customizable debug panel with adjustable settings, conditional building, crash detection system with better error reporting
- Routes Web Interface - Full-featured web dashboard accessible at
http://<device-ip>:8088- Browse and search all recorded routes with GPS metadata
- Interactive route map with GPS coordinates and path visualization
- Real-time metrics: speed, distance, duration, and segment information
- Individual camera video exports (front, wide, driver) with progress tracking
- Direct qlog/rlog downloads for CAN bus and sensor data analysis
- Detailed log descriptions explaining what data each file contains
- Automatic multi-segment file concatenation for seamless data access
- Enhanced Data Export - Simplified export system replacing ZIP compression
- Individual camera downloads with descriptive filenames
- Real-time progress tracking for video generation
- No compression overhead - faster exports
- qlog: Control commands, steering angles, CAN bus messages, lateral/longitudinal plans
- rlog: Camera metadata, model predictions, radar tracks, IMU data, GPS coordinates
- Brake Status Indicator - Now attempts to use brake light CAN signal when available for more accurate display
- Radar Overlay - Speed display matches system units (mph/kph)
- Stop Sign Overlay - Better positioning, enhanced visual effects, improved detection logic
- Hybrid Drive Battery Gauge - More accurate battery percentage calculations with fixed scaling
- Option to Bypass BluePilot Lateral Controls - Added for testing and diagnostic purposes
In addition to all sunnypilot features, BluePilot incorporates the following Ford-specific enhancements:
- Improved Ford Longitudinal Controls - Logic to adjust stock OpenPilot single acceleration signal into separate gas and brake signals for smoother long control
- Anti-Windup in Turns - Resets EPAS back to zero when human turn is detected, preventing wind-up and fighting after straightening
- OEM Style Lateral Control Logic - Complete rewrite matching OEM EPAS behavior with curvature blending, curvature_rate integration, path_offset and path_angle variables
- Improved Lane Change Logic - Further improvements to fix overshoot issues from older logic
The following settings are available in the BluePilot menu (after completing one drive in a Ford vehicle):
Display & Visual Settings:
- Disable GPS Alert
- Show Animated Steer Angle Icon
- Show Brake Status (now uses CAN signal when available)
- Custom Model Path Color
- Show Radar Lead Vehicle Overview
- Show Hybrid Electric Data Overlays
- Show Hybrid Battery Data Overlay
- Hybrid Drive Gauge Size
- Show Blindspot Indicators
- Show Stop Indicator Overlay
- Show Wide Camera at Low Speed
Vehicle Integration:
- Show Hands Free UI (Blue Cruise dash for supported digital dashes)
- Send Lane Departure Signals
Lateral Control Tuning:
- Enable Human Turn Detection
- Lane Change Factor
- Use Custom Tuning Profile (Auto-selected based on CAN/CANFD)
- Predicted Curvature Blend Ratio Low (Default: CANFD=0.65, CAN=0.4)
- Predicted Curvature Blend Ratio High (Default: CANFD=0.4, CAN=0.2)
- Enable Advanced Lane Positioning
- Enable Legacy Style Lanefull Mode
- In Lane Offset
- Low Curvature PID Gain (Default: CANFD=3.0, CAN=5.0)
- Bypass BluePilot Lateral Controls (for testing)
- Refactored renderer for better performance
- Integrated lead tracking and stop detection into ModelRendererBP
- Enhanced frame state updates
- Better lane line mapping using model transform
- Thread safety improvements throughout UI
- Multiple stability fixes and bug fixes
- Routes Panel video playback is in beta and may have performance issues on some devices
For complete details on all changes, see CHANGELOG.md or the BP_CHANGES.json file.
By default, sunnypilot/bluepilot uploads the driving data to comma servers. You can also access your data through comma connect.
sunnypilot/bluepilot is open source software. The user is free to disable data collection if they wish to do so.
sunnypilot/bluepilot 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.
BluePilot's backend is organized into modular components for maintainability:
bluepilot/backend/
βββ bp_backend_server.py # Main HTTP server
βββ config.py # Configuration and constants
βββ handlers/ # Request handlers
β βββ log_downloads.py # qlog/rlog download handlers
β βββ __init__.py
βββ params/ # Parameter management
β βββ params_manager.py # Parameter CRUD operations
β βββ params_watcher.py # Real-time parameter watching
β βββ __init__.py
βββ routes/ # Route processing
β βββ scanner.py # Route discovery
β βββ segments.py # Segment management
β βββ preprocessor.py # Route data preprocessing
β βββ processing.py # GPS and metrics calculation
βββ video/ # Video export
β βββ export.py # Individual camera export with FFmpeg
β βββ remux.py # Video remuxing utilities
βββ core/ # Core utilities
βββ utils/ # Helper functions
βββ realtime/ # WebSocket broadcasting
βββ cache/ # Cache management
βββ network/ # Network utilities
Route Management:
GET /api/routes- List all routes with paginationGET /api/route/{route_base}- Get specific route detailsGET /api/route/{route_base}/camera-sizes- Get camera and log file sizes
Video Export:
POST /api/video-export/{route_base}/{camera}- Start video exportGET /api/video-export/{route_base}/{camera}/status- Check export progressGET /api/download/route/{route_base}/{camera}- Download exported video
Log Downloads:
GET /api/download/qlog/{route_base}- Download qlog (concatenated if multi-segment)GET /api/download/rlog/{route_base}- Download rlog (concatenated if multi-segment)
Testing:
# Test backend imports
python3 bluepilot/backend/test_backend_import.py
# Test modular components
python3 bluepilot/backend/test_modules_only.py
# Run local server for testing
python3 bluepilot/test_web_routes.pyFrontend Development:
cd bluepilot/web
npm install
npm run dev # Development server
npm run build # Production buildFor detailed cleanup and refactoring notes, see:
- CLEANUP_SUMMARY.md - Complete cleanup documentation
- BACKEND_CLEANUP_CHECKLIST.md - Backend refactoring checklist
- BluePilotDev Team
