Commit Graph

518 Commits

Author SHA1 Message Date
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: 0dcdf9c30fdb14e907015cb2b0195238e6121b05
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: bbd0f94d9d72e86fec79269b9decd424d0050872
2021-12-03 21:35:34 +01:00
HaraldSchafer c6964152bb Reaction buffer on follow distance (#23112)
* Reaction time buffer

* new ref
old-commit-hash: 5b0e10ea33e89fb1c8132cf9014a3a927e93bd6f
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: 46fd5892bf41add3dc15d413bced81693d0f8853
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: 3b367e68728c29eea057d99f3948d64ed6cbfa92
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: 68015f75ed7f60a5901af728d31b6c11b98edbf4
2021-12-01 23:12:11 -08:00
HaraldSchafer 9c03362ba8 Less sensitive torque saturated warning (#23003)
* Less sensetive torque saturated warning

* better comment
old-commit-hash: 8f3bc4872f19b84203608b2561924cd85e0d1788
2021-12-01 13:53:42 -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: e679d05d9e98e267047c21c0b6b67fe9d61f8ed6
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: 048cc3ac9f86ed2b3b9fe82cb28ec243cc8e7bac
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: 113988ae31bd32db1576d88d5160be01faa63cb5
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: 93fd662adf91eda4a17a0ebedbf9dfba61c09901
2021-11-26 14:57:39 +01:00
Robbe Derks b66e2a9f7a Tesla longitudinal control (#22561)
* tesla long squashed changes

* fix no resume from stop

* try setting accel limits to 0 to remove jerk with fast switchover

* expand radard lookup tables

* bump merged panda submodule
old-commit-hash: 4960578bdfae11689da81e80973b998b05e6fd96
2021-11-18 13:57:12 +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: 2a72e2a5140a7b02c3a13f167e91b4238a01eba0
2021-11-17 20:29:00 -08:00
HaraldSchafer 6eb5dce881 Lateral planner: lower max cost (#22960)
* prevent ping pong when tuning is not so great

* update refs
old-commit-hash: 24aadaf1f35d61f26637377bc353539d25989f94
2021-11-17 20:24:10 -08:00
Adeeb Shihadeh 1ffe047666 improve crc camera error (#22943)
old-commit-hash: 5296ca8d73573a59a5198b73770d2a4f20cbc9c2
2021-11-16 22:57:22 -08:00
Adeeb Shihadeh 85b0e69efd more alert checks
old-commit-hash: 8d917b6702858a3864f8f8c9fced56a04e65f206
2021-11-16 22:56:29 -08:00
HaraldSchafer 345d52e957 Add cost to long plan change for smoother lag comp (#22923)
* add plan changing cost

* fix compile

* set weights

* try this cost

* horizon problem

* looks pretty good

* update refs

* update refs

* smoother plan changes
old-commit-hash: b3b45c8d29d0afb741c829fea8145fb47ffa7462
2021-11-16 17:57:55 -08:00
Adeeb Shihadeh 8a66c54064 Revert "add offroad alerts for car unrecognized"
This reverts commit 2ffaadb4d2eaabf6e8d86423fbc25328e81dfff0.

old-commit-hash: d8a5c415cd73b50a3424a28f644466fee263e09c
2021-11-16 13:31:10 -08:00
Adeeb Shihadeh 08bfdb151b add offroad alerts for car unrecognized
old-commit-hash: fb1e8ce086ec5e2dc7b2150b62fdd99368eb7e66
2021-11-16 13:30:33 -08:00
Adeeb Shihadeh d1eacc4619 alerts: make soft disables an orange alert (#22925)
old-commit-hash: 833399e9418db26df70169d37c2dff90051d89c7
2021-11-16 13:11:32 -08:00
Adeeb Shihadeh 9f84f9ad97 put cruiseMismatch event in logging only mode
old-commit-hash: 33022390138df73199ac626cb7b5ab7fac1a89a6
2021-11-15 21:16:54 -08:00
Adeeb Shihadeh ee15159a3b alert cleanup (#22919)
old-commit-hash: 5265c36de7be6a2519488fa4a46462f13918b1fb
2021-11-15 16:14:31 -08:00
Adeeb Shihadeh a1ab2f7c36 CI: skip cruise mismatch check for can replays
old-commit-hash: db92006dc0b964871c65ca9be88ebdb3b67137ec
2021-11-12 18:22:39 -08:00
HaraldSchafer d17ec32e0b Give car interface roll and pitch (#22891)
* Give car interface roll and pitch

* fixup

* whitespace
old-commit-hash: a04114f68c118caae5d9b3e19e70e885e87544ff
2021-11-12 12:21:22 -08:00
Joost Wooning 9042f18afd cython wrapper for acados (#22784)
* cython wrapper for acados

* fix building

* sconscript cleanup

* no cython numpy

* cleanup

* upgrade build script

* try without slices

* new acados commit

* c3 update acados libs

* c2 libs

* make faster

* undo profiling

* fix build

* somewhat faster

* tryout cost_set_slice

* Revert "tryout cost_set_slice"

This reverts commit d358d93a133270e4edab9e7c07ffb6f577c52bd6.

* cleanup

* undo t_renderer change

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 89d0a52d16872c403c69426ab32e5788a41ee2ec
2021-11-12 17:09:08 +01:00
Adeeb Shihadeh 29f6b5cb98 allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
old-commit-hash: e528e2e3e2760c52266b126a803a0f7bb872cf3d
2021-11-11 15:32:25 -08:00
Adeeb Shihadeh 731d85c522 alerts: use repeating warning2 sound for steerSaturated (#22874)
old-commit-hash: 308219c5b1850da4e947ea587e131df29024a402
2021-11-11 11:55:34 -08:00
sshane 9c994173ed Longcontrol: do not clip vEgo to minSpeedCan (#22832)
* fix tss2 slow reacceleration in sng

(should) preserve stopping behavior

add comments since it's confusing

fix

* Revert "fix tss2 slow reacceleration in sng"

This reverts commit 42abde0eb945d8bc5ad9b502d1d89b3e3dc16f8a.

* don't max(vEgo)

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: bdaea086f8bd5ea079c4ea98abc5a3d48ca08401
2021-11-11 13:24:38 +01:00
Adeeb Shihadeh a142638899 increase engagement alerts duration
old-commit-hash: 327464fb845dd01533f390ac89d9fd78fbfb02d7
2021-11-10 22:11:14 -08:00
Adeeb Shihadeh d6c42f11f4 controlsd: alert on cruise mismatch for >1s (#22841)
* controlsd: alert on cruise mismatch for >1s

* bump cereal

* update refs

* bump allowed soundd cpu

* bump cereal
old-commit-hash: 035bc0c20fd27490cc353a33f3c373201288a10a
2021-11-10 13:01:42 -08:00
Adeeb Shihadeh 448d5f9e93 alerts: use a single duration for sound, text, and HUD (#22856)
* alerts: use a single duration for sound, text, and HUD

* little cleanup

* update refs
old-commit-hash: c5d6b85c9014386b8d1cb2a17f8767abef3afd57
2021-11-10 11:54:12 -08:00
Adeeb Shihadeh 450471058b controlsd: optimize alert management (#22846)
* controlsd: optimize alert management

* little cleanup

* dataclass is nice

* fix tests

* update refs

* sort by start frame

* update refs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 93ba52c76c20baf36e07c25d28a98bc8e9ea6219
2021-11-10 10:54:18 -08:00
Jason Young a283e88f37 Fix momentary false blind spot alerts when changing lanes (#22819)
* reset LaneChangeDirection after finishing

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 2006fff2b66329e2d11300691301bf7a4531b18a
2021-11-10 17:21:36 +01:00
HaraldSchafer caa01d2f95 ACADOS: partial condensing (#22830)
* partial condense

* new refs

* new ref

* newerest refs
old-commit-hash: 35d6ed10148adbb07c2a4b0c787342b6e101aa05
2021-11-09 19:29:55 -08:00
Adeeb Shihadeh da7cd6bbaa soundd: don't loop controls unresponsive sound infinitely (#22839)
* soundd: don't loop controls unresponsive sound infinitely

* update tests

* actually fix
old-commit-hash: 445a5aaca4431962d189cc3e54da2d5cd13d0aac
2021-11-09 16:58:21 -08:00
Mayfield 18ff2f5cbd alerts: show min enable speed in "speed too low" alert (#22755)
* alerts: show min enable speed in "speed too low" alert

* commonize display speed construction
old-commit-hash: 8c501f026581c5690e5f3b253198cd0a13dc1cc3
2021-11-02 14:10:07 +01:00
Adeeb Shihadeh 421a5db493 controls: don't wind up while EPS is faulted or below min steer speed (#22739)
* controlsd: don't wind up while EPS is faulted

* also check if above min steer speed

* car params
old-commit-hash: 385f3c5387cceb8e23c2d57752f81a2e919104aa
2021-10-29 14:13:41 -07:00
Adeeb Shihadeh d2a6eeae42 lower profile below steer speed alert (#22740)
old-commit-hash: 3312bf6d15ebe16ca21229c2387617d7048ab132
2021-10-29 13:39:12 -07:00
Robbe Derks dbe4641e04 Multipanda support (#22402)
* squash all PR commits for easy rebase

* merged all panda rx can into one message

* fix buffers in can_send

* more cleanup and minor fixes

* fix even more stuff

* fix non-allocated send buffer

* make connecting more robust

* fix bus offset

* fix controls_mismatch?

* simplify mismatch check

* C++ style struct

* fix connect loop

* update ref

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2aba6e2504c2427aaf1855b97035eb41
2021-10-29 13:04:26 +02:00
Robbe Derks 39d9bd31b0 Make longitudinal planning triggered on model (#22641)
* Make long planning triggered on model

* fix process replay

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: efb5abec41e349e4a8a667b96f6265825f75a2ce
2021-10-28 12:27:09 +02:00
Adeeb Shihadeh 4099783375 add sdcard support (#22703)
* generalize

* factory reset
old-commit-hash: f4c2398db4c2dacc690d4115c04c7afb98a52a08
2021-10-26 19:34:08 -07:00
Vivek Aithal b16c806e9e plannerd: add useLaneLines to lateralPlan (#22699)
* add laneless toggle in lateral plan message

* update cereal

* add refs
old-commit-hash: 2ea4feffb9a70483eee63331f91962ce6e51d485
2021-10-26 14:32:41 -07:00
Adeeb Shihadeh 05aa510c25 always show lane lines on HUD (#22693)
* always show lane lines on HUD

* update refs
old-commit-hash: f2b48a1803eed1512962ee80e0f4c9718f40d44b
2021-10-25 23:47:12 -07:00
Adeeb Shihadeh 300294d0c6 temporarily disable per-core cpu usage check
old-commit-hash: 7394956a9056ef313b3bffb2a1aa93ae9ba97856
2021-10-25 15:03:28 -07:00
HaraldSchafer d50d9af755 e2e long planner: use position, speed and accel (#22688)
* a little bit more moderate

* cleaner
old-commit-hash: 7868baeac9541f3e17c99ec0ddbf952b1c1f8a7f
2021-10-25 14:03:41 -07:00
Adeeb Shihadeh 01043f505a more specific no fw startup alert
old-commit-hash: 897492d27c416b1b8f70fee00de5e4db8c168ba8
2021-10-21 16:24:01 -07:00
qadmus dcf3fc2089 [Lateral PID] Function for steer feedforward (#22638)
* store a function for steer feedforward

* use classmethod

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 778374d3dd8ebd3bdd51149228b3c70767bc64ec
2021-10-21 11:38:03 +02:00
Mitchell Goff 3e3b875111 Only trigger model FCW on stock long when not already braking (#22620)
* Only trigger model FCW on stock long when not already braking

* Split model_fcw checks for better readability
old-commit-hash: 38f775edfc12736f590885705c3a92a785d531f8
2021-10-20 16:16:40 +02:00
Harald Schafer 92c2da52a9 plannerd: position std size check bug
old-commit-hash: 791de686896c45aa400d9e5f8c1b2bb2ba09e89f
2021-10-17 19:52:11 -07:00
Adeeb Shihadeh 3802eab361 only check low battery on EON
old-commit-hash: 74a3c92704b1d6597002d6c5da020ba8ff4393a1
2021-10-15 15:04:19 -07:00