Robbe Derks
4960578bdf
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
3 years ago
Adeeb Shihadeh
2a72e2a514
add offroad alerts for car unrecognized ( #22934 )
...
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Chris McCammon <chrismccammon123@gmail.com>
3 years ago
HaraldSchafer
24aadaf1f3
Lateral planner: lower max cost ( #22960 )
...
* prevent ping pong when tuning is not so great
* update refs
3 years ago
Adeeb Shihadeh
5296ca8d73
improve crc camera error ( #22943 )
3 years ago
Adeeb Shihadeh
8d917b6702
more alert checks
3 years ago
HaraldSchafer
b3b45c8d29
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
3 years ago
Adeeb Shihadeh
d8a5c415cd
Revert "add offroad alerts for car unrecognized"
...
This reverts commit fb1e8ce086
.
3 years ago
Adeeb Shihadeh
fb1e8ce086
add offroad alerts for car unrecognized
3 years ago
Adeeb Shihadeh
833399e941
alerts: make soft disables an orange alert ( #22925 )
3 years ago
Adeeb Shihadeh
3302239013
put cruiseMismatch event in logging only mode
3 years ago
Adeeb Shihadeh
5265c36de7
alert cleanup ( #22919 )
3 years ago
Adeeb Shihadeh
db92006dc0
CI: skip cruise mismatch check for can replays
4 years ago
HaraldSchafer
a04114f68c
Give car interface roll and pitch ( #22891 )
...
* Give car interface roll and pitch
* fixup
* whitespace
4 years ago
Joost Wooning
89d0a52d16
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 d358d93a13
.
* cleanup
* undo t_renderer change
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
e528e2e3e2
allow update snoozing ( #22876 )
...
* allow update snoozing
* not immediately visible
* dismiss and close
* grey button
4 years ago
Adeeb Shihadeh
308219c5b1
alerts: use repeating warning2 sound for steerSaturated ( #22874 )
4 years ago
sshane
bdaea086f8
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>
4 years ago
Adeeb Shihadeh
327464fb84
increase engagement alerts duration
4 years ago
Adeeb Shihadeh
035bc0c20f
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
4 years ago
Adeeb Shihadeh
c5d6b85c90
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
4 years ago
Adeeb Shihadeh
93ba52c76c
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>
4 years ago
Jason Young
2006fff2b6
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>
4 years ago
HaraldSchafer
35d6ed1014
ACADOS: partial condensing ( #22830 )
...
* partial condense
* new refs
* new ref
* newerest refs
4 years ago
Adeeb Shihadeh
445a5aaca4
soundd: don't loop controls unresponsive sound infinitely ( #22839 )
...
* soundd: don't loop controls unresponsive sound infinitely
* update tests
* actually fix
4 years ago
Mayfield
8c501f0265
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
4 years ago
Adeeb Shihadeh
385f3c5387
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
4 years ago
Adeeb Shihadeh
3312bf6d15
lower profile below steer speed alert ( #22740 )
4 years ago
Robbe Derks
585c16cd2a
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>
4 years ago
Robbe Derks
efb5abec41
Make longitudinal planning triggered on model ( #22641 )
...
* Make long planning triggered on model
* fix process replay
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Adeeb Shihadeh
f4c2398db4
add sdcard support ( #22703 )
...
* generalize
* factory reset
4 years ago
Vivek Aithal
2ea4feffb9
plannerd: add useLaneLines to lateralPlan ( #22699 )
...
* add laneless toggle in lateral plan message
* update cereal
* add refs
4 years ago
Adeeb Shihadeh
f2b48a1803
always show lane lines on HUD ( #22693 )
...
* always show lane lines on HUD
* update refs
4 years ago
Adeeb Shihadeh
7394956a90
temporarily disable per-core cpu usage check
4 years ago
HaraldSchafer
7868baeac9
e2e long planner: use position, speed and accel ( #22688 )
...
* a little bit more moderate
* cleaner
4 years ago
Adeeb Shihadeh
897492d27c
more specific no fw startup alert
4 years ago
qadmus
778374d3dd
[Lateral PID] Function for steer feedforward ( #22638 )
...
* store a function for steer feedforward
* use classmethod
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Mitchell Goff
38f775edfc
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
4 years ago
Harald Schafer
791de68689
plannerd: position std size check bug
4 years ago
Adeeb Shihadeh
74a3c92704
only check low battery on EON
4 years ago
HaraldSchafer
c4510024da
Remove accel cost in long MPC ( #22527 )
...
* ACCEL not useful
* new ref
4 years ago
HaraldSchafer
04cf12cb00
ACADOS fix non-convergence when long_plan changes ( #22495 )
...
* debug commit
* cleanup
* some indexing bugs
* need more its
* BALANCE is way better it seems
* fix test
* this converges in 2000segs
* new ref
* less cpu
4 years ago
Robbe Derks
91987f38d4
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
4 years ago
Willem Melching
5587964d58
Fix cruise button mph increment ( #22487 )
4 years ago
HaraldSchafer
a4bc1bbb74
Long MPC cleanup ( #22462 )
...
* cleaner extrapolation
* some comments
* new ref
* more comments
* new ref
4 years ago
HaraldSchafer
9ab09f5ae9
Retune long mpc ( #22445 )
...
* first try
* looks decent
* finalize retune
* back to 3 its
* may need 4 still
* misc cleanup
* new ref
* SPEEEED
* new ref
4 years ago
Willem Melching
e636f03c7a
Set CarControl.active ( #22442 )
...
* Set CarControl.active
* update ref
4 years ago
speedking456
23b9316603
accel/decel button metric increments ( #22399 )
...
* add metric values
Freedom units have weird multiples compared to metric. Modified so that it increments by 10 km/h on long press and 1 km/h on short press, rather than 8 and 1.6 km/h. This mimics stock hyundai behaviour on metric vehicles.
* use is_metric from controlsd
* use actual mph value instead of rounded
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Willem Melching
f4e2537b12
Split pandaState into peripheralState and pandaState ( #22385 )
...
* publish peripheralState from boardd
* refactor consumers
* rename thread
* peripheralState has panda type too
* add to process replay
* fix device build
* properly remove hardware unsupported alert
* latest peripheralState
* remove pandaState from thermal_monitor
* put that back
* add back harness check
* fix cloudlog
* needs pandaState
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* dont conflate
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* pigeon is peripheral
* cleanup
* less global
* comment
* move rtc to peripheral_control_thread
* better diff?
* whitespace
* get msg
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
qadmus
3461e25944
Lateral PID: move steer feedforward to CarInterface ( #22411 )
...
* move steer feedforward to car interface, in car parameters
* LatControlPID.get_steer_feedforward()
4 years ago
Greg Hogan
92895f1e68
accel/decel button short/long press 1mph/5mph ( #22013 )
4 years ago