OpenPilot Configuration File
From Tinkla: Tinkering with Tesla
The OpenPilot Configuration File for Tesla is located in /data/bb_openpilot.cfg.
[OP_CONFIG] force_pedal_over_cc = False enable_hso = True enable_alca = True enable_das_emulation = True enable_radar_emulation = True enable_speed_variable_angle = True enable_roll_angle_correction = False enable_feed_forward_angle_correction = True enable_driver_monitor = False enable_show_car = True enable_show_logo = True has_noctua_fan = True limit_battery_minmax = True limit_battery_min = 60 limit_battery_max = 70 block_upload_while_tethering = True tether_ip = 127.0.0. use_tesla_gps = True use_tesla_map_data = True has_tesla_ic_integration = True use_analog_when_no_eon = True use_tesla_radar = True use_without_harness = False radar_vin = 5YJSA1H27FF087536 enable_ldw = True radar_offset = 0.0 radar_epas_type = 0 radar_position = 0 do_auto_update = False
You can edit this file for your car and will not be modified as you change through versions of OP.
The options are:
- force_pedal_over_cc - Forces the use of Tesla Pedal over ACC completely disabling the Tesla CC.
- enable_hso - Enables Human Steering Override (HSO) feature which allows you to take control of the steering wheel and correct the course of the car without disengaging OpenPilot lane keep assis (LKS, lateral control)
- enable_alca - Enables the Adaptive Lane Change Assist (ALCA) feature which will automatically change lanes when driving above 18 MPH (29 km/h) by just pushing 1/2 way on your turn signal stalk; turn signal will remain on for the duration of lane change
- enable_das_emulation - The secret sauce of IC/CID integration; this feature makes the Panda generate all the CAN messages needed for IC/CID integration that mimics the AP interface
- enable_radar_emulation - The secret sauce to make the Tesla Radar work; this feature make the Panda generate all the CAN messages needed by the Tesla Bosch Radar to operate
- enable_driver_monitor - When turned off, the OpenPilot is tricked into thinking you have the hands on the sterring wheel all the time
- enable_show_car - Shows a Tesla car in the limitted UI mode instead of the triangle that identifies the lead car; this is only used if you do not have IC/CID integration
- enable_show_logo - Shows a Tesla red logo on the EON screen when OP is not enabled
- has_noctua_fan - Enables control of Noctua fan (at higher RPMS) when you have a Noctua fan installed
- limit_battery_minmax - Enables battery charging limits; the battery will start charging when battery % is below limit_battery_min and will stop charging when battery % is above limit_battery_max
- limit_battery_min - See limit_battery_minmax
- limit_battery_max - See limit_battery_minmax
- block_upload_while_tethering - This setting will block uploading OP videos to Comma when you are tethering through the phone. You should set the tether_ip to the first 3 values that your phone provides as IP when you tether. This is phone/carrier specific. For example iPhone give addresses like 172.20.10.x so you would enter 172.20.10.
- tether_ip - See block_upload_while_tethering
- use_tesla_gps - This setting makes OP to use Tesla GPS data instead of the GPS that comes with the gray panda; both GPS systems use Ublox and both are very close in accuracy; this also allows one to use a White Panda and still have map integration
- use_tesla_map_data - This setting (which requires root) allows OP to use Tesla navigation map data (under development)
- has_tesla_ic_integration - This setting (in conjunction with enable_radar_emulation) help create the IC integration
- use_analog_when_no_eon - Switches IC from AP view to old style gauge when EON is not connected; currently not configurable (always True)
- use_tesla_radar - Set this setting to True if you have a Tesla Bosch Radar installed (works in conjunction with enable_radar_emulation)
- use_without_harness - Not used at the moment; should be False
- radar_vin - If you used an aftermarket Tesla Bosch Radar that already has a coded VIN, you will have to enter that VIN value here
- enable_ldw - Enable the Lane Departure Warning (LDW) feature; this feature warns the driver is the car gets too close to one of the lines when driving above 45 MPH (72 km/h) without touching the steering wheel and when the turn signal is off
- radar_offset - If your Tesla Bosch Radar is not centered on the car, this value will allow to enter a correction offset
- radar_epas_type - Depending on the source of your Tesla Bosch Radar (older or newer Model S or Model X), this setting has to match what the radar was programmed to recognize as EPAS; values are between 0 and 4; finding the right one is trial and error
- radar_position - Depending on the source of your Tesla Bosch Radar (older or newer Model S or Model X), this setting has to match what the radar was programmed to have a position (Model S, Model S facelift, Model X); values are between 0 and 3; finding the right one is trial and error
- do_auto_update - Set this setting to False if you do not want OP to autoupdate every time you reboot and there is a change on the repo