A long-distance drive with openpilot in a Subaru Outback

Over the Thanksgiving break, I drove my 2023 Subaru Outback with a comma four to Los Angeles. On the way home from LA to Tucson, I covered 521 mi (about 840 km), and openpilot handled the steering (lateral control) for 90% of those miles. The longest single stretch of continuous assistance lasted 98 minutes and 124 mi (about 200 km). Using the device logs and dashcam video, this post looks at what that long trip was like, and focuses on one question: what does the “disengagement count” of a driver-assistance system actually measure?

Metric
Distance driven521 mi (about 840 km)
Driving time8.2 h
Share with openpilot engaged90% of miles / 83% of time
Longest continuous engagement98 min, 124 mi
Time spent steering by hand while engaged< 1%

Background

The car and openpilot

My car is a 2023 Subaru Outback with the dual-camera EyeSight system, connected to a comma four through a Subaru D harness. Its lane keeping uses angle-based control (angle-based LKAS), and upstream openpilot currently lists it as dashcam-only: it records, but does not control the car. So the car runs my own port, based mainly on two unmerged pull requests in opendbc. The code lives on the subaru-outback-2023-angle-lkas-test branch of my forks of openpilot and opendbc.

At this stage, the port only does lateral control:

  • openpilot only steers (by sending ES_LKAS_ANGLE);
  • acceleration and braking are still handled by the factory EyeSight ACC, and AEB and the other factory active-safety features are all kept;
  • every steering command goes through the Panda safety checks, with limits on angle, rate of change and lateral acceleration.

This setup matters for how “disengagements” are read later on: on this car, turning on ACC is the same as engaging openpilot, and a single tap on the brake cancels both ACC and openpilot at once.

Where the data comes from

The data in this post comes from the qlogs stored on the comma four and from the road-facing and wide-angle camera videos. A few definitions:

  • “Driving” means a speed above 1 m/s, and distance is integrated from speed;
  • all times are Arizona time (one hour ahead of Los Angeles);
  • the logs from the drive out had already been overwritten by the device (when storage fills up, it deletes the oldest segments), so this post only covers the two days in LA and the drive home.
  • Traffic on the interstates in the West generally flows at 75–85 mph, and I mostly drove with the flow of traffic.

The drive home

Nov 29 route map; the route is drawn only up to the freeway exit in Tucson
Nov 29 route map; the route is drawn only up to the freeway exit in Tucson

Nov 29 timeline: blue is openpilot engaged, orange is manual driving, ▼ marks a disengagement
Nov 29 timeline: blue is openpilot engaged, orange is manual driving, ▼ marks a disengagement

The drive home splits roughly into four parts: the streets of LA, the I-10 desert stretch, Phoenix rush hour, and the night drive from Phoenix to Tucson.

LA city streets: mostly driving myself

The half hour (about 6 mi) in LA before getting on the freeway was all manual. The two days in LA looked similar: on Nov 28 I drove 135 mi, and openpilot was engaged for only 63% of the miles, or just 43% of the time.

The reason is mostly longitudinal. Speed on this car is controlled by Subaru’s factory EyeSight ACC, which does not work well in the city:

  • at a red light with no car ahead, ACC will not stop;
  • it brakes too hard, especially at low speed, which is unpleasant for passengers;
  • it stops very close to the car ahead. Sometimes that driver feels tailgated and creeps forward a little, which is not polite.

So I usually only engage after getting on the freeway, moving one lane to the left and settling at around the speed limit. Engaging on the on-ramp is actually more dangerous, because openpilot’s built-in lane change is too slow for merging onto the freeway.

The I-10 desert: openpilot does most of the steering

Once I was on I-10 heading east, openpilot took over almost all of the steering. On the 221 mi from LA to Blythe, it was engaged 98% of the time.

There was one small hiccup on this stretch. About 20 minutes in, at 74 mph, the system showed “openpilot will disengage” and disengaged, because it thought the car was in the wrong gear (more on that later). After I re-engaged, that engagement lasted 98 minutes and 124 mi, until I tapped the brake at 81 mph.

Nov 29 share of time engaged by speed band
Nov 29 share of time engaged by speed band

By speed, openpilot was engaged 98% of the time above 75 mph and 94% of the time between 65 and 75 mph, but only 36% of the time below 25 mph.

My strongest impression is that on Western freeways with almost no sharp curves, the lateral control is very stable. Most of the time I only had to watch the road ahead. Occasionally, when passing a big truck or something on the road, I nudged the wheel slightly to give it a bit more room. The logs back this up: while engaged, the steering angle stayed within ±3° almost all the time (92% on the LA to Blythe stretch, and 98%–100% on every other stretch).

Over a long day, my eyes mostly just had to watch the road ahead and the lanes on either side. Apart from not being able to look at my phone, it was about as tiring as riding in the passenger seat.

The factory lane centering is a lot more work. The steering wheel detects hands by torque rather than with a capacitive sensor, so roughly once a minute it asks the driver to give the wheel a twist, and you have to keep doing it. When friends drive my car, they are not used to this, and since the Subaru’s steering is very light, they often twist the wheel far too hard, sometimes enough to pull the car out of the lane, which is a real safety risk. openpilot instead uses a driver-facing camera to check that the driver is watching the road, so you do not need to keep your hands on the wheel. I really appreciate that.

Phoenix rush hour: full-speed ACC / stop and go

I reached the Phoenix metro area right in the middle of rush hour. Traffic was stop-and-go, and several alerts came in a short span:

  • 16:44: with the car nearly stopped, openpilot raised an internal error (the vehicle-parameter estimator briefly misbehaved), showed “TAKE CONTROL IMMEDIATELY” and disengaged;
  • 16:46: at about 36 mph the car ahead slowed down, and I tapped the brake to disengage. Right after that, openpilot’s model predicted the car ahead was braking hard and showed a “BRAKE!” forward collision warning;
  • 16:52: at about 31 mph the car ahead braked hard. The factory EyeSight braked and gave a pre-collision warning at the same time, and then I took over with the brake. The closest gap was about 7 m.

Neither warning led to actual AEB braking.

In both cases, traffic ahead compressed suddenly and the gap closed quickly. EyeSight responds quickly, but it does not anticipate the way a human driver does: it often waits until it is quite close and then brakes hard, which is not comfortable for passengers.

In stop-and-go traffic like this, though, lane keeping does not do much; it is mostly the factory EyeSight ACC doing the work. So honestly, this part has little to do with how openpilot itself performs.

Night: Phoenix to Tucson

The last leg was about 109 mi, with openpilot engaged for 89% of the miles (79% of the time). Most of the manual driving came after reaching the city of Tucson.

At night, the lane lines close to the car were still clear, and under the headlights the contrast between the lines and the road surface was even higher than during the day. My guess is that this actually makes things easier for openpilot’s vision model. Oncoming headlights are tiring for human eyes, but for a camera with that much dynamic range, they are probably not a big deal.

Overall, day or night, as long as the road had some lane markings, openpilot’s lane keeping stayed stable. In construction zones, the factory EyeSight is sometimes drawn toward old lane markings that were not fully removed, or toward shadows, and drifts off. I have not seen this with openpilot yet.

53 “disengagements”: what are they actually counting?

Many openpilot user reports quote a number like “one disengagement every N miles”. By that measure, openpilot disengaged 40 times on the drive home, 38 of them while moving, or about once every 12 mi. Over the three days it was 53 times, about once every 10 miles. Taken at face value, that makes the system look like it needs frequent babysitting. Broken down, it is a different story.

Nov 29 disengagements by route and by cause
Nov 29 disengagements by route and by cause

35 of them were brake presses

Of the 40 disengagements on the drive home, 35 were me pressing the brake. As mentioned earlier, speed on this car is handled by the factory ACC, and braking cancels both ACC and openpilot. So these 35 mainly reflect longitudinal issues: the car ahead slowing down, taking an exit, stop-and-go rush-hour traffic, and how much I trusted ACC’s following distance. They do not mean openpilot’s steering went wrong.

A large part of it is that I do not fully trust EyeSight’s longitudinal control. I honestly do not know what ACC would do on its own if I left it alone: every time EyeSight showed an “Obstacle Detected” warning, I stomped on the brake myself. I am not yet comfortable handing acceleration and braking over to it.

118 overrides: turning the wheel does not disengage openpilot

What actually relates to lateral control is the driver steering by hand while openpilot is engaged (an override). On this car, turning the wheel does not disengage openpilot, and it resumes steering as soon as you let go. On the drive home, there were 118 such overrides above 55 mph:

Override typeCount
With the turn signal on: mostly the driver nudging the wheel to confirm an openpilot lane change71
Just a touch on the wheel (≤ 0.3 s, the wheel barely moved)21
A real push on the wheel26

I went through the video for each of those 26 pushes. When the road-facing camera did not show a reason, I checked the wide-angle camera as well:

ReasonCount
A small vehicle close by or alongside5
A large vehicle alongside (bus, semi truck)4
Debris on the road, construction cones4
Overpass pillars, lane splits3
Adding a little steering into a curve3
Gripping the wheel after a driver-monitoring alert1
Unknown6

The median push lasted under 2 seconds, the median change in steering angle was about 1°, the largest was under 6°, and on average there was one push about every 18 miles. About three quarters of them have a visible external reason in the video. Here are some typical cases.

A bus alongside. At 80 mph there was a bus in the lane to the right, and I nudged the wheel slightly to the left twice:

Bus on the right: 2 s before the push, during the push, and after the second push
Bus on the right: 2 s before the push, during the push, and after the second push

Side by side with a semi. At 64 mph there was a semi truck in the lane to the right, and I pushed left for less than half a second:

Semi truck on the right
Semi truck on the right

Debris on the road. At 76 mph there was debris and a post at the left edge of the lane, and I pushed right for about 2 seconds:

Debris on the left (near the yellow line in the left and middle frames) and the post after it (right frame)
Debris on the left (near the yellow line in the left and middle frames) and the post after it (right frame)

Squeezed between two vehicles. A semi truck was alongside on the right while a car passed close by on the left. The road-facing camera only shows the truck, so it looks like I pushed toward the truck; only the wide-angle camera shows the car on the left:

Wide-angle camera: semi truck alongside on the right (left frame), car passing close on the left (right frame)
Wide-angle camera: semi truck alongside on the right (left frame), car passing close on the left (right frame)

Of the 6 pushes with no clear reason, 4 happened within the same two minutes on a straight two-lane road: there was a slow truck far ahead and cars kept passing on the left, but the video does not show a clear reason.

One more finding surprised me: in 3 cases, openpilot was already steering through a curve and I added a bit more steering toward the inside. This suggests that in a few curves openpilot slightly understeers, letting the car drift a little toward the outside of the curve.

Disengagements actually started by the system: 3

Leaving out brake presses and stops, only 3 disengagements on the drive home were actually started by the system:

  1. Wrong gear (74 mph). The gear value in the transmission message jumped from D to 6th gear in manual mode, then immediately to a value not defined in the DBC, and only returned to D 3 seconds later. Following the encoding pattern, that value corresponds to 8th gear in manual mode. Older Subarus have only 6 simulated gears in manual mode, and opendbc’s Subaru DBC only defines gears 1–6. Newer cars have 8 gears in manual mode, so the extra value was parsed as an unknown gear, and openpilot decided the car was “not in D” and disengaged. Adding gears 7 and 8 to the DBC fixes it, and I have already done that.
  2. Driver monitoring (76 mph). The first- and second-level alerts did not get my attention, so it escalated to the third level, “DISENGAGE IMMEDIATELY”. openpilot then forced a disengagement and did not allow re-engaging for a short while. At the time, I was looking down at my phone to set a navigation destination. This was also how I learned that openpilot has this kind of penalty for distracted driving.
  3. Internal error (while stopped). This is the one from Phoenix rush hour above.

Minor issues

  • Wrong gear: see above. The fix is simple, but a sudden disengagement on the freeway is not a nice experience.
  • Driver monitoring: on the drive home there were 24 first-level, 9 second-level and 1 third-level alerts. I find this much more acceptable than the factory system’s twist-the-wheel-every-minute approach.
  • Slight understeer in curves: Western freeways have few curves, so the impact was small, but it may be more noticeable on curvier roads.
  • Steering hit its limit twice during the two days in LA: the system asked me to take over (at 40–54 mph).
  • Slow lane changes: openpilot assisted with 70 lane changes on the drive home. They are fine while cruising on the freeway, but too slow for merging from an on-ramp.
  • Abrupt acceleration and braking: this is really an issue with the factory EyeSight ACC, not openpilot, but passengers can clearly feel it.

Conclusion

Among the cars I have driven, apart from the driver-assistance systems on some cars in mainland China and Tesla FSD, this openpilot setup is one of the best L2 systems, clearly better than the factory lane keeping from Toyota, the Volkswagen Group or Subaru.

It greatly reduces the stress of driving. In a car with neither ACC nor lane keeping, I can drive for at most about 1–2 hours at a stretch. With this system, I can drive 3–4 hours in a row with just short breaks (beyond that, the main limit is the fuel tank: on long trips, I always keep at least 20% fuel, or more than 100 mi of range, in the tank).

On the other hand, the “disengagement count” is an easy number to misread. On this car, it mainly reflects longitudinal control, meaning the factory ACC and the traffic. The overrides that are actually about steering happen about once every 18 miles, and most of them are me deliberately giving a big vehicle or debris on the road a little more room.

The main remaining problem is longitudinal. openpilot does not control speed for now, and the factory EyeSight accelerates and brakes rather abruptly, which is not great for passengers. But I am not yet comfortable with either option for longitudinal control: I do not fully trust EyeSight with it, and I would not hand it to openpilot either, unless its vision gets good enough. So for now, I will keep using only openpilot’s lateral control and keep an eye on how it handles curves.