Commit Graph

1465 Commits

Author SHA1 Message Date
Shane Smiskol f9abb9e473
Toyota: add accel winddown limit (#1481)
* add rate limits

* add

* oops

* fix

* fix
2024-11-13 15:23:17 -08:00
Shane Smiskol 5be5b65d6f
Toyota: fix accel rate limit (#1480)
use real previous accel
2024-11-13 15:05:20 -08:00
Shane Smiskol 34597084d8 Add FW for KIA_OPTIMA_G4_FL
From 6a8394681f09f9dc
2024-11-12 16:55:26 -08:00
voidvisor 56d6d39b11
Stale bot for PRs (#1474) 2024-11-12 16:31:24 -08:00
Adeeb Shihadeh 7f81b68622
more README 2024-11-11 17:59:53 -08:00
Adeeb Shihadeh 61cb7919cf
docs updates (#1471)
* lil update

* lil more

* Update README.md
2024-11-11 16:07:28 -08:00
Shane Smiskol 5bb1a60a9e
[bot] Fingerprints: add missing FW versions from new users (#1469)
Export fingerprints
2024-11-11 11:15:59 -08:00
Shane Smiskol 7cb3d4c021 ruff: ignore site_scons 2024-11-10 20:34:11 -08:00
Shane Smiskol b0a5cb3060 Add missing __init__.py 2024-11-10 20:33:38 -08:00
Shane Smiskol 9b5f697a1e
Toyota: more responsive start from stop (#1464)
PERMIT_BRAKING is for the people
2024-11-08 21:03:25 -08:00
Shane Smiskol f1768748c0
Lexus ES TSS2: fix acceleration overshoot from a stop (#1465)
do rate limiting before pcm comp, and set permit braking based on it too
2024-11-08 20:41:37 -08:00
Shane Smiskol 35979db999
Toyota: move accel compensation logic to 33 Hz block (#1466)
move to 33hz loop
2024-11-08 20:16:56 -08:00
Shane Smiskol dbe8213512
Revert "Toyota: learn offset for PCM acceleration request" (#1463)
Revert "Toyota: learn offset for PCM acceleration request (#1461)"

This reverts commit 574eb64a2b.
2024-11-08 14:12:28 -08:00
Shane Smiskol 574eb64a2b
Toyota: learn offset for PCM acceleration request (#1461)
* all slop so far

* todo

* try no delay

* clean up

* more clean up

* and more

* final

* not a big effect

* same

* no np
2024-11-07 22:42:30 -08:00
Shane Smiskol 2d08eded7a
Toyota: always send ACC at 33 Hz (#1390)
* ACC always 33hz

* switch

* simpler

* not here
2024-11-06 16:37:07 -08:00
Shane Smiskol f090bf6fa2
Toyota: set permit braking when stopping (#1447)
* we need to brake when stopping always

* stopping
2024-11-06 14:59:29 -08:00
Shane Smiskol 6be3d04493
Toyota: set pcm_accel_net when possible (#1448)
set always
2024-11-06 14:58:04 -08:00
Shane Smiskol df8fe2299a
Ford: enable long by default (#1446)
* enable by default

* whoops
2024-11-06 14:56:22 -08:00
Lukas 54e2d7d190
Tesla: add missing parameter (#1445)
add missing parameter
2024-11-06 10:32:02 -08:00
Greg Hogan a1dee3177d
tesla: fix standstill (#1444) 2024-11-05 08:51:59 -08:00
Shane Smiskol cf2f64f386
[bot] Car docs: update model years from new users (#1443)
Update car docs
2024-11-04 14:09:18 -08:00
Shane Smiskol 1d9c89a504
[bot] Fingerprints: add missing FW versions from new users (#1442)
Export fingerprints
2024-11-04 13:40:13 -08:00
Shane Smiskol 472c62e386
CANParser: only filter bus (#1436)
only bus filter
2024-11-01 22:07:43 -07:00
Dean Lee 788a2db47a
CANParser: expose `MessageState` to Cython to eliminate data copying (#1382)
* Expose MessageState to Cython to Eliminate Data Copying

* not needed?

* great, can finally get rid of this confusion!

* getter

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-11-01 21:37:23 -07:00
Dean Lee fa5e7619bc
CANParser: Initialize value dicts directly from DBC Msg (#1381)
* init dict in __init__

* comment

* 0.0

* test all transitions

* this is more important and test same thing

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-11-01 21:11:48 -07:00
Dean Lee a84fe18918
CANParser: filter CAN messages by bus and addresses (#1383)
* filter CAN messages by relevant addresses

* no difference

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-11-01 17:44:56 -07:00
Shane Smiskol 658eacdc51
Ford long: smooth creep compensation (#1434)
* ramp using accel too

* mypy...
2024-11-01 15:09:20 -07:00
Shane Smiskol d632cc5bec
Ford: limit acceleration near PCM set speed (#1432)
* do what nidec does

* ~0.5 is what it hovers around
2024-10-31 13:43:01 -07:00
Adeeb Shihadeh c4114772ba
Ford: enable radar parsing (#1363)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-10-30 13:16:21 -07:00
Shane Smiskol 4c6d7c1071
Revert "Ford: enable radar" (#1431)
Revert "Ford: enable radar (#1430)"

This reverts commit cf4848e2a9.
2024-10-30 13:14:39 -07:00
Shane Smiskol cf4848e2a9
Ford: enable radar (#1430)
enable
2024-10-30 01:23:43 -07:00
Shane Smiskol 359aa38656
Ford: cluster radar points (#1427)
* messy first draft with dbscan

* points -> keys

* not sure if necessary

* doesn't work

* it was a reference!!!!!!!!!1111!!!!1111111!!!!!!111 ugh

* todos

* more

* nope

* just want to test in-car

* Revert "just want to test in-car"

This reverts commit b280019da6.

* simple clustering

* no print

* hold points

* little faster

* ~4x faster

* little more

* now this matters

* cached property

* argmin

* no to_dict

* calculate means for new cluster once

* no need for deepcopy anymore!

* don't store points, pre-check length

* fix that

* comment

* hmm this is promising

* unused

* no np

* works pretty well

* store cluster center

* whoops

* >2x speedup on pc

* forgot this

* vectorize

* no pts

* more optimization

* 5x faster

* a list

* try

* fix

* fix radar errors

* fix

* fixes to pass checklist

* remove old stuff

* is this faster?

fix

* Revert "is this faster?"

This reverts commit 89f6cd3935.

* some clean up

* more clean up

* simplify

* no vals

* see if this is faster

* make it a fixme

* clean up

fix

* more

* final

* sheesh fix dRel

* fix static analysis

* fix more static
2024-10-30 01:11:34 -07:00
Shane Smiskol cde249d518 Ford: prefix variable with MRR 2024-10-30 00:54:00 -07:00
Shane Smiskol 0446c0503a Fix indexing 2024-10-29 22:21:02 -07:00
Shane Smiskol bf74f17568
Ford: use half radar points (#1428)
* only use half

* comments

* better

* clean up

* revert
2024-10-29 22:17:28 -07:00
Shane Smiskol 16eb79d028 Ford: set tracks measured once 2024-10-29 22:15:22 -07:00
Shane Smiskol ba353f7d8a
Ford: fix unnecessary radar point creation and deletion (#1426)
* don't create and delete capnp RadarPoint objects, and don't double increment track id

* clean up
2024-10-28 17:55:43 -07:00
Shane Smiskol 1c0b1da8f0 Ford: fix possible duplicate track IDs 2024-10-28 17:19:21 -07:00
Shane Smiskol 4493062729
[bot] Fingerprints: add missing FW versions from new users (#1423)
Export fingerprints
2024-10-28 16:11:23 -07:00
Shane Smiskol 87585581b9
[bot] Car docs: update model years from new users (#1424)
Update car docs
2024-10-28 16:10:48 -07:00
Shane Smiskol 4aae6d02be
Ford: higher curvature rate limits at low speed (#1394)
* use closer to EPS limits

* raise to upper bound of spread from injection plot

* more context

* slightly more accurate

* we've seen ~0.009 at 7 m/s, so allow that

* comment

* already high enough at high speed
2024-10-25 23:28:14 -07:00
Shane Smiskol 92da02f476
Ford: add long tuning back (#1413)
* add long tuning back

* try with radar

* Revert "try with radar"

This reverts commit 64c3e789e1.
2024-10-25 02:16:30 -07:00
Shane Smiskol 04bdb33df8
Ford: reduce brake step response overshooting (#1419)
clean up
2024-10-25 01:39:56 -07:00
Shane Smiskol c883a633a8 Ford: small cc clean up 2024-10-25 01:20:15 -07:00
Shane Smiskol 04b17b9346 Ford: log sent gas 2024-10-24 17:28:47 -07:00
Shane Smiskol af19a14bed
Ford: compensate pitch for brake actuation bit (#1418)
* compensate for pitch

* one variable
2024-10-24 17:27:36 -07:00
Shane Smiskol f0f28a43df Ford radar: add information about the Doppler coverage 2024-10-23 22:18:41 -07:00
Shane Smiskol b2339c542c Ford: remove TODO 2024-10-23 21:34:43 -07:00
Shane Smiskol f1dbcc8c4c
Ford: filter out close high coverage range radar points (#1415)
* no functional change, but later

* check correct radar configuration

* add comments

* temp

* clean up
2024-10-23 21:30:44 -07:00
Shane Smiskol 5aaad51107
Ford: set radar delay (#1416)
* set delay

* some tolerance

* better wording

* back
2024-10-23 21:22:50 -07:00