New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toyota: enable LTA #30109
Toyota: enable LTA #30109
Conversation
|
Make | Model | Supported Package | ACC | No ACC accel below | No ALC below | Steering Torque | Resume from stop | Hardware Needed | Video |
---|---|---|---|---|---|---|---|---|---|
Toyota | RAV4 2023 | All | Stock | 0 mph | 0 mph | Parts- 1 RJ45 cable (7 ft)- 1 Toyota A connector - 1 comma 3X - 1 comma power v2 - 1 harness box - 1 mount - 1 right angle OBD-C cable (1.5 ft) Buy Here |
|||
Toyota | RAV4 Hybrid 2023 | All | Stock | 0 mph | 0 mph | Parts- 1 RJ45 cable (7 ft)- 1 Toyota A connector - 1 comma 3X - 1 comma power v2 - 1 harness box - 1 mount - 1 right angle OBD-C cable (1.5 ft) Buy Here |
Possible messages/signals that describe LTA functionality:
|
This reverts commit 8e85333.
Looks like the Japanese RAV4 Hybrids don't have the same EPS driver torque blending, despite them using LTA for LKA, route from Chris on Discord: https://connect.comma.ai/43c5d3e441fccf54/1697689049592/1697689062191 I'll try to find any differences on CAN that explains this Edit: In EPS_STATUS, byte idx 5 and 6 are always 0x00 on NA RAV4s, and 0xFF on Japanese RAV4s. When comparing two routes there were a few more different bits that were static and mismatching, but nothing that held up with data too well: View# Only really checked the lower addressed and higher rate msgs, as they were more likely to have any meaningful signals.
Bus: 0, Address: 0x25 (37), Byte Index: 3
Bus: 1, Address: 0x210 (528), Byte Index: 0
Bus: 0, Address: 0x262 (610), Byte Index: 5
Bus: 0, Address: 0x262 (610), Byte Index: 6
Bus: 0, Address: 0x315 (789), Byte Index: 0
Bus: 0, Address: 0x320 (800), Byte Index: 5
Bus: 0, Address: 0x380 (896), Byte Index: 3
Bus: 0, Address: 0x389 (905), Byte Index: 1
Bus: 0, Address: 0x3f6 (1014), Byte Index: 2
Bus: 0, Address: 0x420 (1056), Byte Index: 1
Bus: 0, Address: 0x420 (1056), Byte Index: 3
Bus: 0, Address: 0x420 (1056), Byte Index: 4
Bus: 0, Address: 0x420 (1056), Byte Index: 7
Bus: 0, Address: 0x435 (1077), Byte Index: 0
Bus: 0, Address: 0x435 (1077), Byte Index: 6
Bus: 0, Address: 0x45a (1114), Byte Index: 0
Bus: 0, Address: 0x45a (1114), Byte Index: 1
Bus: 2, Address: 0x489 (1161), Byte Index: 0
Bus: 2, Address: 0x489 (1161), Byte Index: 5
Bus: 2, Address: 0x48a (1162), Byte Index: 5
Bus: 2, Address: 0x48b (1163), Byte Index: 0
Bus: 2, Address: 0x48b (1163), Byte Index: 1
Bus: 2, Address: 0x48b (1163), Byte Index: 2
Bus: 2, Address: 0x48b (1163), Byte Index: 3
Bus: 2, Address: 0x48b (1163), Byte Index: 4
Bus: 2, Address: 0x48b (1163), Byte Index: 5
Bus: 1, Address: 0x502 (1282), Byte Index: 2
Bus: 1, Address: 0x502 (1282), Byte Index: 5
Bus: 1, Address: 0x502 (1282), Byte Index: 7
Bus: 0, Address: 0x610 (1552), Byte Index: 7
Bus: 0, Address: 0x611 (1553), Byte Index: 3
Bus: 0, Address: 0x611 (1553), Byte Index: 6
Bus: 0, Address: 0x614 (1556), Byte Index: 2
Bus: 0, Address: 0x615 (1557), Byte Index: 2
Bus: 0, Address: 0x615 (1557), Byte Index: 3
Bus: 0, Address: 0x624 (1572), Byte Index: 2
Bus: 0, Address: 0x624 (1572), Byte Index: 4
Bus: 0, Address: 0x624 (1572), Byte Index: 5
Bus: 0, Address: 0x624 (1572), Byte Index: 6
Bus: 0, Address: 0x639 (1593), Byte Index: 4
Bus: 0, Address: 0x63b (1595), Byte Index: 2
Bus: 0, Address: 0x63b (1595), Byte Index: 3
Bus: 2, Address: 0x6ef (1775), Byte Index: 5 We can check for the TSS2/TSS2.5 signal in |
We currently have two ways to cut steering torque with LTA when above max EPS torque, or driver torque thresholds: the normal steering request bit(s), or the
The stock system uses this signal on occasion in the same way, when the user overrides hard and the EPS might wind up (more used on Camry, since there's no driver torque safety in the EPS. Seen used on the RAV4, but not as often) RAV4 2023 testing Using `SETME_X64` ramped to ~0 torque in ~1.45 seconds, from ~2000 units (scaled with EPS factor)ad5a3fa719bc2f83|2023-12-01--15-35-27--6 |
Route with no limiting showing that there's some EPS driver torque limiting! ad5a3fa719bc2f83|2023-10-10--00-49-07--0
Stock system achieving almost 1500 scaled (2000 unscaled) EPS torque units, 2 m/s^2.
Up rate is about 1000 units/sec, down is about 1500/sec limited by the EPS, compared to our current torque limits of 1500 up 2500 down
ad5a3fa719bc2f83|2023-10-10--02-27-54--2 or 3
Here's 1700 scaled units: https://github.com/commaai/openpilot/assets/25857203/d5fcd003-ad7e-4101-a80a-07a3cfcf34db