Updated Mazda (markdown)

master
Jafar Al-Gharaibeh 2020-05-29 23:00:47 -05:00
parent 9cd3b88301
commit 0e88e2687b
1 changed files with 29 additions and 8 deletions

@ -2,35 +2,56 @@
[◄ Home](https://github.com/commaai/openpilot/wiki)
**This brand is community supported in dashcam mode only.**
# Overview
Mazda is community supported and available in dashcam mode only in OP due to a steer lockout if the driver does not touch the steering wheel for more than 5 seconds. Currently, the only workaround for this issue is to use a weight on the steering wheel. If you want to use OP with Mazda in non-dashcam mode you have to make changes to the source code and use it at your own risk. To do that change the line in selfdrive/car/mazda/interface.py [[here]](https://github.com/commaai/openpilot/blob/master/selfdrive/car/mazda/interface.py#L24)
from:
```
ret.dashcamOnly = True
```
to
```
ret.dashcamOnly = False
```
Remember that you have to keep your hands on the wheel at all times, or use a steering lockout mitigation such as a weight on the steering wheel, otherwise the car does not respond to steer commands from OP.
# Make-Specific Terms
For general terms, [go here](https://github.com/commaai/openpilot/wiki/General-Terms).
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
--- | --- | ---
Fill | these | out! :)
Mazda Radar Cruise Control | MRCC | Mazda Adaptive Cruise Control - ACC
Lane-Keep Assist System | LAS | Mazda LKAS
# Supported models
CX-5, CX-9, and Mazda 6 for model years 2017-2020. Other car/year models might work but have not been tested.
# openpilot Capabilities
## Lateral Control
Control over the steering wheel.
Mazda LKAS is not available on low speeds. In particular, LKAS is not available until the car drives above 32mph/52kph. LKAS get disabled when the speed go 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.
### Torque
Available steering torque is adequate for most highway driving conditions. City driving requires driver intervention on sharp turns.
### Minimum Speeds
* 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
Control over the gas and brakes.
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.
# Developer TODOs
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.
* Checksum and counter checks
* panda safety ([reference](https://github.com/commaai/panda/blob/master/board/safety/safety_hyundai.h#L23))
* can parser ([reference](https://github.com/commaai/opendbc/pull/255/))
# Developer TODOs
* Steer down to zero
* Steer without lockout
* Find cruise set speed signal