Adeeb Shihadeh
c2a23fa24c
clear no entry alerts if engaged ( #23559 )
...
* clear no entry alerts if engaged
* fix test
old-commit-hash: 59894a6666
2022-01-17 13:57:53 -08:00
Dean Lee
384857f2b4
lateral_planner: use nympy.isnan().any() ( #23500 )
...
old-commit-hash: dbae5e7601
2022-01-12 15:56:41 +01:00
Dean Lee
54bdb321bd
cleanup iterate keys in dictionaries ( #23497 )
...
old-commit-hash: a186bcc9f1
2022-01-12 12:42:50 +01:00
Dean Lee
58cafc8060
AlertManager: cleanup add_many ( #23438 )
...
old-commit-hash: 678732d0ce
2022-01-11 14:16:52 -08:00
Dean Lee
55233b753b
use ndarray.tolist to convert numpy array to float ( #23485 )
...
old-commit-hash: 35ec6ac1cb
2022-01-11 14:34:47 +01:00
Shane Smiskol
56b3c7f790
LanePlanner: offsets cleanup ( #23459 )
...
* update comments
* model y axis was flipped so flip the offsets as well
* fix
old-commit-hash: 233a6e4a62
2022-01-10 13:08:45 -08:00
Dean Lee
97c4cdc0cc
LongControl: remove redundant check on active ( #23481 )
...
old-commit-hash: 4208fe018e
2022-01-10 18:46:02 +01:00
Dean Lee
98de810849
check in tuple instead of list ( #23477 )
...
* check in tuple instead of list
* Update selfdrive/car/toyota/carcontroller.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
* Update selfdrive/car/mazda/interface.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: a653461dec
2022-01-10 16:36:51 +01:00
Dean Lee
75d00872e8
events: cleanup function any ( #23479 )
...
old-commit-hash: 8eec818ae6
2022-01-10 14:32:07 +01:00
Dean Lee
7276bf8197
controls: check contents in tuple instead of list ( #23463 )
...
old-commit-hash: b2beb5e6ba
2022-01-10 11:26:58 +01:00
Dean Lee
296925cd6a
optimize alertmanager ( #23433 )
...
old-commit-hash: 09a835916b
2022-01-06 22:15:32 -08:00
Dean Lee
521e3d843b
longcontrol: check if speeds is empty ( #23410 )
...
* check if speeds is empty
* move into existing check
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: a2e762e0b9
2022-01-05 14:23:08 +01:00
Shane Smiskol
d05c173fe6
Longcontrol: remove starting state ( #23328 )
...
* remove starting state
* new ref
* ready for merge
* try this
* cereal now on master
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com >
old-commit-hash: cf9792dc53
2022-01-04 15:40:39 -08:00
HaraldSchafer
c90287391a
Controlsd: fix bug in curv rate limit ( #23250 )
...
* Controlsd: fix bug in curv rate limit
* update ref
old-commit-hash: d3f064f5ca
2022-01-04 13:21:56 -08:00
Shane Smiskol
b500034b8d
LongitudinalMpc: Remove class accel_limit_arr ( #23295 )
...
* remove class accel_limit_arr
remove class accel_limit_arr
* make it static
* only set static parameters once
* just use existing function
style
* Update selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
* Update selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 9cb0ebe37d
2022-01-04 16:00:29 +01:00
Shane Smiskol
efd1ff1452
Longitudinal planner: make v_desired a FirstOrderFilter ( #23341 )
...
* make v_desired a FirstOrderFilter
* forgot one
* one more ref
* Add a new object for the filter
* fix
* fix tests
* update ref
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 9f88ba188a
2022-01-04 12:17:33 +01:00
Dean Lee
a55046c949
longcontrol/update: optimize capnp ( #23382 )
...
old-commit-hash: 5dc631fa1b
2022-01-04 11:32:54 +01:00
Dean Lee
3723b3a877
lane_planner.py/parse_model: follow capnp best practices ( #23368 )
...
old-commit-hash: f2520b6e80
2022-01-03 15:08:24 -08:00
Dean Lee
5fbbb129a6
lateral_planner.py/publish: follow capnp best practices ( #23359 )
...
old-commit-hash: 2ca0925da7
2022-01-02 11:55:24 -08:00
George Hotz
86a39e838b
Add More Types for mypy ( #23268 )
...
* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: dc96d4bee7
2021-12-28 18:07:00 +01:00
Shane Smiskol
d5bf8e0e65
LongitudinalMpc: minor clean up ( #23296 )
...
* correct order
* formatting
* Revert "formatting"
This reverts commit 481c390f400179f5d0d8f9b5a3066cb68e484d0c.
* use np.zeros
* typos and formatting
* typo
* typo
old-commit-hash: 5387806400
2021-12-28 12:05:52 +01:00
Ewout ter Hoeven
f206ebd054
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
old-commit-hash: 332f568a82
2021-12-24 11:18:39 -08:00
Adeeb Shihadeh
8f09da4407
bump cereal
...
old-commit-hash: 256c51e16a
2021-12-20 23:04:27 -08:00
Adeeb Shihadeh
55d6972d08
Revert "Mazda: alert when LKAS is disabled ( #23273 )"
...
This reverts commit e67713edb1f62957974f20a0f7eceb2fc9efb1f4.
old-commit-hash: c92199ab1a
2021-12-20 23:02:02 -08:00
Jafar Al-Gharaibeh
9b7dd754c4
Mazda: alert when LKAS is disabled ( #23273 )
...
* Mazda: alert when LKAS is disabled
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* Update selfdrive/controls/lib/events.py
* Update selfdrive/car/mazda/interface.py
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: f25121b736
2021-12-20 14:58:46 -08:00
George Hotz
6bac4f1c4a
build for mac ( #23048 )
...
old-commit-hash: 16dd7ce1fe
2021-12-18 22:00:09 -08:00
HaraldSchafer
f64c2974b4
Road Roll Compensation Rebased ( #23251 )
...
* first commit
* update refs
old-commit-hash: cf466222f6
2021-12-16 17:34:12 -08:00
Ewout ter Hoeven
a962365292
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 55390d273f
2021-12-16 14:58:17 +01:00
Willem Melching
7b3e330def
Log actuators after applying rate limits in CarController ( #23230 )
...
* return actuators from carcontroller
* log it
* pass to latcontrol
* chrysler
* gm
* honda
* more brands
* rest of the brands
* gm cleanup
* hyundai cleanup
* update ref
* rename field
* fix subaru
* add types
* more subaru fixes #23240
* consistent whitespace
* bump cereal
old-commit-hash: 4f1eb4278a
2021-12-16 13:08:20 +01:00
Shane Smiskol
91ff6918e5
Remove minSpeedCan ( #22991 )
...
* Remove minCanSpeed
Remove minCanSpeed
* it actually only goes out to 2.5 seconds, this is okay to remove
* test to see if this preserves behavior
add minSpeedCan
* Revert "test to see if this preserves behavior"
This reverts commit 31b11f017f7e9da7654fc8064b5983d4a6cc22e5.
* preserve behavior (don't enter stopping as early)
* vEgoStopping needs to be less than or equal to vEgoStarting to avoid state oscillation
old-commit-hash: 2799ef5292
2021-12-14 12:09:32 -08:00
Adeeb Shihadeh
06a9b3448d
alerts: escalate soft disable alert near disengagement ( #23198 )
...
* alerts: escalate soft disable alert if resulted in disengagement
* show 0.5s before disengagement
old-commit-hash: 8068df0b2a
2021-12-11 17:07:37 -08:00
Adeeb Shihadeh
700ad9ec50
alerts: handle min duration properly ( #23191 )
...
* alerts: handle min duration properly
* add active
* tests
* cleanup test
* update refs
old-commit-hash: 07b971d473
2021-12-10 19:20:07 -08:00
Adeeb Shihadeh
853dc0d016
alert text simplification ( #23186 )
...
* alert text simplification
* little more
* user triggered
* little more
* less annoying ldw
* Update selfdrive/controls/lib/events.py
* update refs
* revert
old-commit-hash: 4627d201b6
2021-12-10 15:21:37 -08:00
Harald Schafer
cf3c8cd301
fix max speed comments
...
old-commit-hash: 44adea73ce
2021-12-08 17:13:43 -08:00
HaraldSchafer
00749bd3cd
XVA long policy: prev_a becomes numpy anyway ( #23175 )
...
old-commit-hash: c41a0cae4b
2021-12-08 16:06:09 -08:00
Harald Schafer
3ee06e92ed
Long mpc: fix xva policy for sim
...
old-commit-hash: 7e20fe7ca2
2021-12-08 15:42:30 -08:00
HaraldSchafer
0dbf0a0106
Cruise speed: up to 90mph max ( #23161 )
...
* Cruise speed: up to 90mph max
* update ref
old-commit-hash: d1b003c5d2
2021-12-07 15:47:57 -08:00
HaraldSchafer
b19b5fdb98
long planner: no reset when starting ( #23149 )
...
* long planner: no reset when starting
* let go to 2m/s
* update ref
old-commit-hash: 77a99e7d6d
2021-12-06 23:10:16 -08:00
Harald Schafer
3a6a87ffe0
add a change cost
...
old-commit-hash: 9afc95474d
2021-12-06 16:17:11 -08:00
HaraldSchafer
3afc818433
Long policy: strictly squared stopped equivalence function ( #23118 )
...
* new ref
* never let lead stopped equivalence go down
* no overbraking
* stricter again
* cleanup
* updated refs
old-commit-hash: 0dcdf9c30f
2021-12-03 16:12:30 -08:00
Willem Melching
23ef06428a
add desired angle to log ( #23115 )
...
* add desired angle to log
* update ref
* bump cereal
old-commit-hash: bbd0f94d9d
2021-12-03 21:35:34 +01:00
HaraldSchafer
c6964152bb
Reaction buffer on follow distance ( #23112 )
...
* Reaction time buffer
* new ref
old-commit-hash: 5b0e10ea33
2021-12-02 23:56:02 -08:00
HaraldSchafer
08ac1b33ba
Human inspired follow distance ( #22937 )
...
* Add cost for creep
* more reasonable cost
* seems better than before
* science tune
* more chill
* closer follow
* stopping takes some leeway
* better cruise
* needed to be cumsum all along
* jerk not even needed
* matches better
* 6 is too much
* add back
* a little extra buffer is good for badly tuned cars
* new refs
* refs again
old-commit-hash: 46fd5892bf
2021-12-02 14:42:13 -08:00
Adeeb Shihadeh
6c2182c026
Newer sounds ( #23091 )
...
* new prompt sound
* padding
* prompt distracted
* debug
* fix spelling
* lower min volume
* better volume at low speeds
* revert debug
* revert that
* fix tests
* update refs
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 3b367e6872
2021-12-02 00:28:25 -08:00
HaraldSchafer
e3f9919b5c
Set accel trajectory to a_ego when not engaged ( #23100 )
...
* Set accel trajectory to a_ego when not engaged
* update ref
old-commit-hash: 68015f75ed
2021-12-01 23:12:11 -08:00
Adeeb Shihadeh
dccb8b4010
New sounds ( #22652 )
...
* new engage/disengage + amp config
* first family
* cleanup audible alerts
* tici isn't special
* fix up debug cycle alerts
* these were better
* extend range
* use distracted sound
* log scaling
* getting closer
* slightly louder
* prompt
* update tests
* update refs
* fix c2 test
* resolve todo
* adjust tolerance
* revert for now
* should work
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: e679d05d9e
2021-11-30 19:47:33 -08:00
HaraldSchafer
fb1cf5b1bf
Longcontrol : pid error should be 0 when plan is followed ( #23066 )
...
* v_pid error should be 0 when plan is followed
* update ref
old-commit-hash: 048cc3ac9f
2021-11-29 15:22:02 -08:00
Shane Smiskol
996594fa29
longitudinal: only apply overshoot prevention when braking ( #22986 )
...
* only if braking is desired
* use v_target to determine stopping
* more clear?
old-commit-hash: 113988ae31
2021-11-29 11:29:32 +01:00
Shane Smiskol
1b79236fa0
Clean up planner files ( #23031 )
...
* clean up planner files
clean up planner files
* fix plant instance
old-commit-hash: 93fd662adf
2021-11-26 14:57:39 +01:00
Adeeb Shihadeh
2bcaee3678
add offroad alerts for car unrecognized ( #22934 )
...
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
Co-authored-by: Chris McCammon <chrismccammon123@gmail.com >
old-commit-hash: 2a72e2a514
2021-11-17 20:29:00 -08:00