Adeeb Shihadeh
c2a23fa24c
clear no entry alerts if engaged ( #23559 )
...
* clear no entry alerts if engaged
* fix test
old-commit-hash: 59894a6666
3 years ago
Dean Lee
d0bfd37a95
controlsd: remove extra space ( #23553 )
...
old-commit-hash: 5cd103c3d4
3 years ago
Adeeb Shihadeh
2013e086ba
shutdownd is non essential
...
old-commit-hash: c6b892fe58
3 years ago
Dean Lee
a1d3ab2ea1
controlsd: cleanup parsing android log ( #23421 )
...
* cleanup parse android log
* global CSID_MAP
* use generator express
* cleanup
* no walrus
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd042a5924
3 years ago
Dean Lee
7f9069cb34
controlsd: check self.enabled out of the any() ( #23507 )
...
old-commit-hash: 48b6dfa15d
3 years ago
Dean Lee
54bdb321bd
cleanup iterate keys in dictionaries ( #23497 )
...
old-commit-hash: a186bcc9f1
3 years ago
Robbe Derks
54a4dece4d
Ignore statsd for running process check ( #23483 )
...
old-commit-hash: 1a54d7f6ae
3 years ago
Dean Lee
61a28b2fb7
controlsd: check all_valid only if not initialized ( #23437 )
...
* check all valid in if statement
* apply review
old-commit-hash: 67af095692
3 years ago
Dean Lee
df63cf059a
controlsd: save lat_plan.dPathPoints to local variable ( #23462 )
...
old-commit-hash: 2d08f8b318
3 years ago
Dean Lee
7276bf8197
controls: check contents in tuple instead of list ( #23463 )
...
old-commit-hash: b2beb5e6ba
3 years ago
Dean Lee
296925cd6a
optimize alertmanager ( #23433 )
...
old-commit-hash: 09a835916b
3 years ago
Dean Lee
60a22bbc0c
controlsd/state_transition: remove redundant check in elif ( #23428 )
...
old-commit-hash: e0338fd77b
3 years ago
Dean Lee
0a03f65b2b
controlsd: remove duplicate event relayMalfunction ( #23392 )
...
old-commit-hash: 0357cf2af0
3 years ago
Dean Lee
ea519c31e4
controlsd/publish_logs: follow capnp best practices ( #23372 )
...
* follow follow capnp best practices
* cleanup
old-commit-hash: 960e0cf6a7
3 years ago
Adeeb Shihadeh
98c8147ec3
CAN receive error is a comm issue ( #23362 )
...
old-commit-hash: 1e41f4723b
3 years ago
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
3 years ago
HaraldSchafer
f64c2974b4
Road Roll Compensation Rebased ( #23251 )
...
* first commit
* update refs
old-commit-hash: cf466222f6
3 years ago
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
3 years ago
Adeeb Shihadeh
83136e8016
increase cruise mismatch threshold
...
old-commit-hash: 7f618b16bf
3 years ago
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
3 years ago
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
3 years ago
HaraldSchafer
9c03362ba8
Less sensitive torque saturated warning ( #23003 )
...
* Less sensetive torque saturated warning
* better comment
old-commit-hash: 8f3bc4872f
3 years ago
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
3 years ago
Adeeb Shihadeh
8a66c54064
Revert "add offroad alerts for car unrecognized"
...
This reverts commit 2ffaadb4d2eaabf6e8d86423fbc25328e81dfff0.
old-commit-hash: d8a5c415cd
3 years ago
Adeeb Shihadeh
08bfdb151b
add offroad alerts for car unrecognized
...
old-commit-hash: fb1e8ce086
3 years ago
Adeeb Shihadeh
d1eacc4619
alerts: make soft disables an orange alert ( #22925 )
...
old-commit-hash: 833399e941
3 years ago
Adeeb Shihadeh
a1ab2f7c36
CI: skip cruise mismatch check for can replays
...
old-commit-hash: db92006dc0
4 years ago
HaraldSchafer
d17ec32e0b
Give car interface roll and pitch ( #22891 )
...
* Give car interface roll and pitch
* fixup
* whitespace
old-commit-hash: a04114f68c
4 years ago
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: 035bc0c20f
4 years ago
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: 385f3c5387
4 years ago
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: 585c16cd2a
4 years ago
Adeeb Shihadeh
05aa510c25
always show lane lines on HUD ( #22693 )
...
* always show lane lines on HUD
* update refs
old-commit-hash: f2b48a1803
4 years ago
Adeeb Shihadeh
300294d0c6
temporarily disable per-core cpu usage check
...
old-commit-hash: 7394956a90
4 years ago
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: 38f775edfc
4 years ago
Adeeb Shihadeh
3802eab361
only check low battery on EON
...
old-commit-hash: 74a3c92704
4 years ago
Robbe Derks
58c99158a1
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
old-commit-hash: 91987f38d4
4 years ago
Willem Melching
79d5c6107b
Set CarControl.active ( #22442 )
...
* Set CarControl.active
* update ref
old-commit-hash: e636f03c7a
4 years ago
speedking456
ca46acfd64
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>
old-commit-hash: 23b9316603
4 years ago
Willem Melching
11066c6236
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>
old-commit-hash: f4e2537b12
4 years ago
qadmus
810e859169
Lateral PID: move steer feedforward to CarInterface ( #22411 )
...
* move steer feedforward to car interface, in car parameters
* LatControlPID.get_steer_feedforward()
old-commit-hash: 3461e25944
4 years ago
Greg Hogan
a131767d0b
accel/decel button short/long press 1mph/5mph ( #22013 )
...
old-commit-hash: 92895f1e68
4 years ago
HaraldSchafer
d91e0604e8
Change radar-based FCW to model-based FCW ( #22379 )
...
* just use MPC for fcw checking
* thats already bad
* model FCW is always good
* better fcw
* should be good for now
* comment
* linting
* cleaner
* unused
old-commit-hash: a8b4249ebc
4 years ago
Adeeb Shihadeh
a4194021bd
controls: only send cruise cancel while cruise is enabled ( #22359 )
...
* controls: only send cruise cancel while cruise is enabled
* cleanup
* might actually do something
* update refs
* update refs again
* update refs
old-commit-hash: 3b8fa4b7fd
4 years ago
Willem Melching
b3601ce43b
Remove fuzzy fingerprint startup alert ( #22328 )
...
* deprecate fuzzy fingerprint startup alert
* bump cereal
old-commit-hash: 88d248a5af
4 years ago
Willem Melching
a8ce1288fd
Hyundai longitudinal prerequisites ( #22121 )
...
* panda
* bring over changes
* dont check car model
* remove comment
* fix typo
* more stuff gated behind long
* not
* not used
* gate that too
* try honda tuning
* clip accel values
* fix up merge
* fix stopping
* add retry logic around knockout
* increase timeout
* keep flipping lead bit
* true for now
* less tuning
* update comment
* 0.1 s is fine now
* merge honda and hyundai knockout
* more lead fields
* another obj bit
* increase timeout
* fix stopping flag
* only lag compensate for braking
* no lead
* less tuning
* only do knockout if not readonly
* try controlling using jerk
* tuning
* try higher stopping rate
* set stopping flag at higher speed
* clip upper jerk when stopping
* remove comments
* tester present 1hz
* use positive start accel
* 1.0 to maybe improve low speed stuff
* no point going over 0
* bump panda
* bump panda
* revert that change
* update ref
old-commit-hash: c4bac6bd68
4 years ago
Willem Melching
523219c678
Parameterize longitudinal control using carParams ( #22200 )
...
* use CP.startAccel
* missing values
* order
* update ref
* cereal
old-commit-hash: b7d1aac197
4 years ago
HaraldSchafer
cb1cd01bdf
cleanup old nidec accel override logic ( #22181 )
...
* cleanup old nidec accel override logic
* add ref without deprecated fields
* no more override
old-commit-hash: 74b6c87254
4 years ago
Willem Melching
83ce6c65bb
actually set longControlState in actuators packet ( #22155 )
...
* actually set longControlState in actuators packet
* update ref
old-commit-hash: 4f84e1b2ad
4 years ago
Willem Melching
ab7d2f1d08
put LongControlState in CarControl.Actuators ( #22154 )
...
old-commit-hash: 21ae64868e
4 years ago
Willem Melching
6f5c9d5ad1
Clean up PID controller ACCEL_MIN/ACCEL_MAX ( #22148 )
...
* use ISO 15622:2018 limits in PID controller
* allow more for nidec
* limit PID inputs
* CP is not needed
* add GM
* not used
* update ref
* fix honda bosch
old-commit-hash: f941111dcd
4 years ago