-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Mazda
Changing source code, using weighted lockout mitigation or changing EPS is all done at your own risk.
The Mazda community is strong, and most late model Mazda models are community supported with limitations. For models with limitations, OpenPilot is only available in dashcam mode due to a steering lockout that occurs when driver does not touch the steering wheel for more than 5 seconds. Using Stock OpenPilot with Mazda models that have limitations requires source code changes, and always keeping your hands on the wheel or use of a weighted steering lockout mitigation or changing Electronic Power Steering motor (EPS) to 2021 CX-9 where compatible. Failure to overcome the steering lockout results in the car not responding to steer commands from OpenPilot.
Changing source code, using weighted lockout mitigation or changing EPS is all done at your own risk.
To change source code from dashcam only mode, change the line in selfdrive/car/mazda/interface.py
[here]
from:
ret.dashcamOnly = True
to
ret.dashcamOnly = False
For general terms, go here.
Mazda I-ACTIVSENSE is an umbrella term that Mazda uses to describe a series of advanced safety and driver assistance technologies such as ACC, LKAS, Blind-spot monitoring, Smart City brakes and so on. Most models/trims from 2017 and newer come with ACC and LKAS as standard options.
Term | Abbreviation | Definition |
---|---|---|
Mazda Radar Cruise Control | MRCC | Mazda Adaptive Cruise Control - ACC |
Lane-Keep Assist System | LAS | Mazda LKAS |
Official Community Supported Models
- 2021 CX-9
Community Supported Models with Limitations
- 2017-2020 CX-9
- 2017-2021 Mazda 6, and CX-5
- 2016-2017 models may require a different connector than the Comma connector
- 2017-2018 Mazda 3
- 2019 and newer use a new driver assistance system and is not yet supported
- 2017-2020 CX-3 are suspected to be Community Supported with Limitations
Mazda LKAS is not available on low speeds. In particular, LKAS is not available until the car drives above 32mph/52kph. LKAS gets disabled when the speed goes below 28mpg/45kph. OP will NOT allow initial engagement if LKAS is not available. If OP is already engaged and LKAS becomes unavailable, OP will continue to be engaged but will not steer and will display a warning about steering being unavailable.
Available steering torque is adequate for most highway driving conditions. City driving requires driver intervention on sharp turns.
- LKAS is allowed when the car drives above 32mph
- LKAS is not allowed when the speed dips below 28mph
- LKAS must be allowed for OP to do the initial engagement
Longitudinal control is not supported by OP with Mazda. OP relies on the stock MRCC to control speed. MRCC support follow-to-stop to 0mph and automatic resume if the stop is less than three seconds. OP improve on that by allowing the car to resume without driver intervention after longer delays. Even though MRCC works down to 0mph, the lowest allowed set speed is 19mph.
Note that OP takes control of the engagement process and will not allow the MRCC to engage if LKAS is not available, i.e, when used with OP you will not be able to engage ACC on low speeds. That behavior is required by OP safety model.
Note: Mazda harness is now available at comma shop. Look for "Mazda Development" when you select a vehicle.
Harness wiring:
- Steer down to zero
- Steer without lockout
- Find cruise set speed signal
- openpilot longitudinal control
- Fingerprinting 2.0 (reference). (support is coming in OP 0.8.5)
Make driving chill. Buy a comma 3X with a car harness today!