Commit Graph

6433 Commits

Author SHA1 Message Date
EdwardApollo 5be01f56c0 Increase Minimum Offroad Battery Voltage (#26661)
* Reduce Min Idle Battery Voltage and Idle Time

Updated minimum offroad battery voltage to reduce wear on car batteries and updated max offroad time to reflect the increased power consumption at idle based on EPHOT hardware power draw (this may have changed).

Most vehicles make use of lead acid batteries which during normal use shouldn't ever decrease below ~12V (sources give a range of 11.8-12V). Increasing this limit will prevent premature battery failure by preventing sulfation of the cells.

* Voltage cutoff to 11.8V, max offroad to 30h

Changed lower voltage limit to 11.8V, removed power usage comment entirely, reverted change to max offroad time to 30 hours

* Added Offroad Shutdown conditional

Added IsOffroad Shutdown conditional statement to prevent shutting down due to voltage floor.

* LPF Gain: Tau = 45s

Tau modified to 45s to result in a LPF gain of ~0.011. 

Assuming a dT of 0.5s: (0.5/45)/((0.5/45)+1)

* Revert IsOffroad check

Removed due to unnecessary redundancy.
old-commit-hash: 30165134e8
2022-12-01 14:18:32 -08:00
Jason Wen 558a48af28 HKG: Car Port for Kia Sorento Plug-in Hybrid 2022 (#26635)
* HKG: Car Port for Kia Sorento Plug-in Hybrid 2022

* Add torque params

* Typo

* This car has SCC on bus 4, needs radar disable to use openpilot longitudinal :/

* Need to check on bus 4 as well

* Different unit signal

* Unit signal cleanup

* Add test route

* Regenerate car docs

* Different logic

* 2023 should be the same

* Fix 0x1a0 check race condition

* Update RELEASES.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1adf106da6
2022-12-01 14:11:12 -08:00
Harald Schäfer b1e87f4df2 thermald: add minimum offroad time to low voltage shutdown (#26660)
* voltage cleanup thermald

* Fix voltage shutdown test
old-commit-hash: 196caa095b
2022-12-01 13:57:11 -08:00
Bruce Wayne 3b889f1efd Revert "voltage cleanup thermald (#26658)"
This reverts commit ff0119d67a793f8caf7362ba980dae29e70716b4.

old-commit-hash: 7a9d96759d
2022-12-01 13:11:31 -08:00
Harald Schäfer 3f7428c731 voltage cleanup thermald (#26658)
old-commit-hash: 92e985c583
2022-12-01 11:56:25 -08:00
Robbe Derks d00e7ee24b Simple CAN chunks (#25373)
* simple chunks

* more sizeofs

* fix unit tests

* bump panda

* bump panda

* don't fail for too little data

* bump panda

* bump panda

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fee6f2efac
2022-12-01 09:12:16 -08:00
Vivek Aithal 44a02b6331 [torqued] Set Hyundai Ioniq 5 2022 values (#26554)
set ioniq values, different from ev6, from offline data
old-commit-hash: 9e0607806f
2022-11-30 23:27:02 -08:00
royjr d56ebf1c20 Honda: Add missing modified firmware comment (#26648)
Update values.py
old-commit-hash: 17e06bdc93
2022-11-30 22:21:48 -08:00
Cameron Clough 9bcf83f493 micd: scale sound volume with ambient noise level (#26399)
* test changing sound volume

* test changing sound volume

* create system/hardware/pc/hardware.h

* implement Hardware::set_volume using pactl

* soundd: use Hardware::set_volume

* add sounddevice dependency

* sounddevice example

* simple micd

* cleanup

* remove this

* fix process config

* add to release files

* hardware: get sound input device

* no more offroad

* debug

* calculate volume from all measurements since last update

* use microphone noise level to update sound volume

* fix scale

* mute microphone during alerts

* log raw noise level

* hardware: reduce tici min volume

* improve scale

* add package

* clear measurements on muted

* change default to min volume and respond quicker

* fixes

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* logarithmic scaling

* fix

* respond quicker

* fixes

* tweak scaling

* specify default device

* Revert "hardware: get sound input device"

This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.

* tuning

* forgot to update submaster

* tuning

* don't mute microphone, and clip measurement

* remove submaster

* fixes

* tuning

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.

* draft

* draft

* calculate sound pressure level in dB

* fix setting

* faster filter

* start at initial value

* don't run command in background

* pactl: use default sink

* use sound pressure db

* tuning

* bump up max volume threshold

* update filter slower

* fix divide by zero

* bump cereal

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 108ff15f5d
2022-11-30 21:56:03 -08:00
Jason Wen de325bd458 Hyundai: Add FW for 2022 Tucson Hybrid (#26647)
old-commit-hash: 470fe9ce34
2022-11-30 20:57:05 -08:00
Shane Smiskol 8da61ba4cc Honda Nidec: put max PCM gas into CarControllerParams (#26645)
* limit gas

* bump panda

* not sure why it was represented like this
old-commit-hash: 997b2e11ae
2022-11-30 20:36:19 -08:00
Shane Smiskol 5f8b46eabe Build panda/SConscript (#26646)
* panda/SConscript

* think this is right?

* bump panda

* fix test_models

* use a filter

* bump panda to mater

* more aesthetic ordering

* alphabetical :(

* alphabetical :(
old-commit-hash: 01dac5d06b
2022-11-30 20:27:55 -08:00
Cameron Clough 303b5532ad soundd: change system sound mixer volume (#26633)
* test changing sound volume

* create system/hardware/pc/hardware.h

* soundd: use Hardware::set_volume

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.

* don't run command in background

* pactl: use default sink
old-commit-hash: 02b5b6fe1f
2022-11-30 15:36:25 -08:00
ZwX1616 cd3a3235e7 DM: no reset on steer if distracted (#26567)
* only for attentive fast resets

* oops wheeltouch

* update test
old-commit-hash: 553da4ef30
2022-11-30 13:00:36 -08:00
Shane Smiskol 634a6c9802 Deprecate noTarget event (#26638)
deprecate notarget
old-commit-hash: 5409895ab2
2022-11-30 02:32:47 -08:00
Shane Smiskol 3d161c4d42 controls: remove noTarget event (#26632)
remove noTarget alert
old-commit-hash: 41610fe8ae
2022-11-29 23:12:58 -08:00
Shane Smiskol d1dee4625a controlsd: preEnable on brake at a standstill (#26273)
* pre-enable on brake at standstill

* test by getting rid of noTarget

* Update events.py

* rename

* stash what we got so far

* cmt

* not sure if best way to fix, but enabled with current states defs is fine

* no noEntry in preEnabled

* bumpcereal

* uncomment

* Update ref_commit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbe512d167
2022-11-29 17:34:10 -08:00
Adeeb Shihadeh a6f2f2d751 boardd: cleanup defs from panda (#26628)
* more stuff

* bump pnada
old-commit-hash: c3e3047080
2022-11-29 16:05:46 -08:00
Shane Smiskol 76e7a45284 controls: preEnabled doesn't consider noEntry (#26627)
preEnabled doesn't consider noEntry
old-commit-hash: 8ad8d4e1c2
2022-11-29 13:11:03 -08:00
Shane Smiskol d6f6b0de91 Car interface: set tire stiffness in common function (#26625)
* common stiffness

* GM uses factors
old-commit-hash: 712b9014d7
2022-11-29 12:50:27 -08:00
Vivek Aithal 238e63bc2a [controlsd] Refactor apply_deadzone in Lateral Torque Control (#26626)
rename apply_slack to apply_center_deadzone, remove unused prius offline values
old-commit-hash: 3a4f19f0ee
2022-11-29 12:46:08 -08:00
Shane Smiskol 8aadc8dda6 Car interface: set common params after port (#26613)
* remove pylint exception, _get_params takes no defaults

* clean up

* mock uses it too

* unused

* unused

* fix that

* bump

* Update selfdrive/car/interfaces.py
old-commit-hash: 860f441e2f
2022-11-29 11:49:13 -08:00
Jason Young e03b42a61c VW PQ: Follow-to-Stop support (#26616)
old-commit-hash: 44e9ea23bd
2022-11-29 11:15:16 -08:00
Vivek Aithal 5bc529bf20 [controlsd] Toyota Prius 2017 (#26455)
* increase lag on prius

* better offline values computation

* split prius ecu more, set deadzone to 0

* add deadzone back

* replace deadzone with slack

* reduce deadzone to 0.2

* update refs
old-commit-hash: 0706b03e8c
2022-11-29 10:47:13 -08:00
Shane Smiskol 832b2d7168 mock: remove steering angle (#26614)
* fix yaw rate in mock interface

* clean that up

* revert

* clean up
old-commit-hash: b4da592a3c
2022-11-29 01:54:59 -08:00
Andrew ada0539d18 Hyundai: add more Kia K5 FW (#26590)
* add some values

* consistent ,

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f64e69eb11
2022-11-29 01:13:43 -08:00
uppercaseVar c6990585bb Add ECU fw for 2016 Golf GTI (#26591)
Added ECU for 2016 Golf GTI
old-commit-hash: b2fd699c21
2022-11-29 01:08:58 -08:00
Erich Moraga 6bab37e878 Add missing RAV4_TSS2 ABS f/w (#26617)
`@IDJ#0879` 2019 Toyota RAV4 (ICE)  DongleID/route e7cd4ae3bee72b52|2022-11-29--14-33-40
old-commit-hash: b18dfef8a6
2022-11-29 01:03:02 -08:00
Shane Smiskol 263e4d15d5 Hyundai: remove custom accel limit function for default values (#26611)
* Update interface.py

* Update interface.py
old-commit-hash: 12ecc7b4bc
2022-11-28 16:01:54 -08:00
Shane Smiskol aa5deae8f9 IsoTpParallelQuery: log errors in qlogs (#26609)
log these in qlogs
old-commit-hash: 08b49e5671
2022-11-28 15:00:37 -08:00
Jason Young 2edfdf3843 VW PQ: Fix cruise fault detection, cleanup (#26588)
old-commit-hash: 82158c8378
2022-11-28 14:55:57 -08:00
Jason Young 6a7a660aaf VW MQB: Add FW for 2022 Volkswagen Arteon (#26603)
old-commit-hash: 38cd262de3
2022-11-28 14:55:09 -08:00
Shane Smiskol bcdbd8edb9 Toyota: alert when in standstill (#26585)
* add resume required alert

* possibly need this (pressing resume with brake held does nothing)

* better text (has both meanings)

* try this

* Revert "try this"

This reverts commit 5b2991929b62f5bcd9bfa0767d709b5fe83b094b.

* no alert with interceptor

* check long
old-commit-hash: 3253b85900
2022-11-25 16:00:58 -08:00
Robbe Derks 9790dffe6d Fix Tesla cancel button definition (#26596)
misinterpreted the dbc
old-commit-hash: 1efc8b9c78
2022-11-25 13:20:20 +01:00
Shane Smiskol db8028fa63 longcontrol: ignore cruise standstill if interceptor (#26597)
* ignore standstill

* cmt

* standstill

* rm cmt

* flip
old-commit-hash: a19b5b91d2
2022-11-24 18:17:36 -08:00
Shane Smiskol c82a646888 Toyota: always log cruise standstill (#26586)
these cars def are in cruise standstill, no sense to not log
old-commit-hash: 059e4f5730
2022-11-22 23:43:23 -08:00
Shane Smiskol d9908b3029 Toyota: whitelist FW queries (#26584)
whitelist toyota
old-commit-hash: 13cdddc6c8
2022-11-22 22:28:11 -08:00
Harald Schäfer 9fef49e975 Navd map renderer: update to larger image (#26580)
* rerender 512

* rerender 512

* Removed unnecessary code

* rgb -> grayscale

* Add constants

Co-authored-by: mitchellgoffpc <mitchellgoffpc@gmail.com>
old-commit-hash: c1e7bed061
2022-11-22 20:20:58 -08:00
Jason Young 0d2373312e VW MQB: Redundant brake pressed signals (#26401)
* VW MQB: Redundant brake pressed signals

* retry CI

* update refs

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 636ff5979f
2022-11-22 16:18:42 -08:00
Shane Smiskol cf287d796b GM Cam: log when cruise not adaptive (#26581)
* bump opendbc

* log when nonAdaptive

* Update ref_commit
old-commit-hash: 9fdbe9f397
2022-11-22 15:18:10 -08:00
Adeeb Shihadeh 4f7bfc430a process replay: support old routes with no peripheralState
old-commit-hash: 7361d1a11b
2022-11-22 11:46:28 -08:00
YassineYousfi 30414a7305 Revert "Albert Einstein Model" (#26576)
Revert "Albert Einstein Model (#26456)"

This reverts commit 0129c20611bd21fb5b94d19b96d435c7e02041f1.
old-commit-hash: ceb94f1bcd
2022-11-22 11:41:22 -08:00
Adeeb Shihadeh 7c96e7876a cleanup panda types everywhere (#26574)
* cleanup panda types everywhere

* one more
old-commit-hash: 65fa87a969
2022-11-21 23:43:24 -08:00
Adeeb Shihadeh 1d152c074c boardd: end peripheral panda discrimination
old-commit-hash: e9dcabcef7
2022-11-21 23:13:41 -08:00
Adeeb Shihadeh cc8025894b jenkins: set hostname on startup
old-commit-hash: 8ee07def5c
2022-11-21 21:18:35 -08:00
Shane Smiskol ee961b62f8 Car docs: add a make-specific init function (#26565)
* add a hook function for makes to implement custom docs logic

* don't need this

* use the pre-defined list for honda's harnesses

* one line 😎

* Update selfdrive/car/docs_definitions.py

* i didn't know you didn't need a pass!

* don't change docs order
old-commit-hash: 1367f84425
2022-11-21 18:01:08 -08:00
Shane Smiskol b94dfd81c6 controlsd: add test around cruise speed gas pressed behavior (#26486)
* test

* test

* debug

* test

* test

* test

* clean up

* clean up

* add test

* stash

* clean up

* clean up

* clean up

* assert equal
old-commit-hash: 23a7a987f6
2022-11-21 17:05:13 -08:00
Erich Moraga d037490c40 Add missing HIGHLANDERH_TSS2 ABS & engine f/w (#26534)
`@shakir07#1323` 2020 Highlander Hybrid  DongleID/route ce56baaf82559131|2022-11-16--23-54-01
old-commit-hash: be3d6527ad
2022-11-21 16:22:01 -08:00
Adeeb Shihadeh 4cb61240b3 enable experimental longitudinal control on devel (#26544)
old-commit-hash: 94aa39bdd4
2022-11-21 16:18:51 -08:00
Adeeb Shihadeh ad2864ea70 docs: update Toyota DSU footnote (#26568)
old-commit-hash: 548888d634
2022-11-21 15:59:42 -08:00