Longitudinal Control: ACC

From Tinkla: Tinkering with Tesla
Revision as of 18:54, 8 May 2019 by BogGyver (talk | contribs)

Longitudinal control, or addaptive cruise control (ACC), is the capability to accelerate and slow down the car based on traffic, user max speed settings and map information integration (curvature, traffic, etc). This is an ongoing effort. These pre-AP cars lack electronic pedal control for (acceleration and braking) and radar.

As of 2019 we have both software-only and hardware-based Adaptive Cruise Control.

Without electric brakes (iBooster) the car only uses regenerative braking. This is not enough for suddent slowdowns. YOU MUST BE READY TO MANUALLY BRAKE AT ANY MOMENT.

Vision Radar With Spam ACC

The easiest setup is to use the vision only "mock" radar in OpenPilot. It works OK on highway if there are not many speed changes. The radar accuracy has improved since 0.5.11 but still has a 1-2 seconds delay vs real time. Also, it only tracks one car, the lead car. In order to use this for longitudinal control, we use CAN messages to create fake cruise stalk messages, increasing/decreasin the speed by 1 (half action) or 5 (full action). This creates the desired outcome but the speed changes are not very smooth. Also, the Tesla CC (and thus OP ACC using cruise stalk spamming) only works above 18 MPH (29 km/h).

Vision Radar With Pedal

The next step up is to replace the CC stalk spamming with a pedal interceptor. This allows speed control from 1 MPH (1.6 km/h) but you need to keep in mind that regenerative braking only works above 5 MPH (8 km/h). The cost of this updgrade is about $100.00 USD.

Tesla Bosch Radar With Pedal

Next upgrade would be to add a Tesla Bosch Radar. This increases the cars/objects tracked from 1 to 32 and allows real time monitoring of distance and relative speed for lead car and cars on the side lanes, increasing the smoothness and precision of the ACC. This is still limitted in braking power. If you have IC/CID integration, this feature shows up to 6 cars on the IC. The cost of this upgrade is about $500.00 USD and requires some extensive work (including removing and re-installing the front bumper).

Tesla Bosch Radar With iBooster

Final upgrade for ACC in order to obtaing full stop and go capabilities is to replace your old vacuum based braking system with an electronic braking system (iBooster). This code is in development as of May 2019. The cost for this upgrade is about $6-700.00 USD and requires root access and knowledge on how to flush your brake lines. This feature will give you full stop-n-go capability.


Using Adaptive Cruise Control

Adaptive Cruise Control allows the car to match speed with cars in front of you, slows down for turns based on Comma OP logic and also accelerates up to the MAX set speed. We have two types of adaptive cruise control based on your car configuration and options installed: ACC which is based on Tesla CC and PDL which uses the pedal interceptor.

To repeat, without electric brakes (iBooster) the car only uses regenerative braking. This is not enough for suddent slowdowns. YOU MUST BE READY TO MANUALLY BRAKE AT ANY MOMENT.

Follow these steps to use ACC:

  1. Press the cruise stalk IN so that the orange "cruise control ready" LED on the stalk is lit.
  2. Enable the ACC option on screen if necessary.
  3. Accelerate above 18 MPH.
  4. Enable OpenPilot using a DOUBLE stalk pull (pull the cruise control stalk BACKWARDS TWICE in quick succession.) You will see the blue 'Cruise' icon appear on your dash. ACC is now active.
  5. The initial max speed may be conservative. Press UP on the stalk to increase it.
  6. Cruise is disabled if you brake or the car slows below 18 MPH.
  7. If ACC "AUTO" mode is enabled, manually accelerate above 18 MPH to resume.

Follow these steps to use PDL:

  1. Press the cruise stalk IN so that the orange "cruise control ready" LED on the stalk is not lit (or set the OpenPilot Configuration File to use pedal always over CC)
  2. Enable the PDL option on screen if necessary.
  3. Accelerate above 1 MPH.
  4. Enable OpenPilot using a DOUBLE stalk pull (pull the cruise control stalk BACKWARDS TWICE in quick succession.) You will see the blue 'Cruise' icon appear on your dash. If you have IC/CID integration, the speed will be set to the speed limit for that road + the set offset in the OpenPilot screen in CID. PDL is now active.
  5. The initial max speed may be conservative. Press UP on the stalk to increase it.
  6. Cruise is disabled if you brake.

Controls while ACC or PDL are enabled:

Control Action
Cruise stalk IN Master toggle for cruise control. Must be engaged for ACC to work. Must be disengaged for PDL to work.
Cruise stalk DOUBLE PULL Enable OP ACC and or PDL and steering, and increase the max allowed ACC/PDL speed if necessary.
On screen ACC/PDL button Toggle between "FOLLOW" and "AUTO" modes for ACC and "FOLLOW" and "OP" modes for PDL. FOLLOW mode attempts to match speed with cars in front of you and disengages if you steer or brake. AUTO mode does the same, but automatically re-engages when you accelerate again. OP mode is the built in Comma OP logic.
On CID buttons Toggle between 2.5, 2, 1.5 and 1 second follow distance options.
Cruise stalk UP Increase cruise speed, increasing max allowed ACC/PDL speed if necessary.
Cruise stalk DOWN Decrease cruise speed and max allowed ACC/PDL speed.
Cruise stalk PUSH Disable OpenPilot (both steering and ACC/PDL). Max allowed ACC/PDL speed is reset to 0.
Brake pedal Pause both ACC/PDL and traditional cruise.
Accelerator (When in AUTO mode) Accel over 18 MPH to unpause ACC. No effect on PDL.