Commit Graph

7421 Commits

Author SHA1 Message Date
Shane Smiskol
973ecdc0c9 Hyundai: Tucson 2023 support (#26427)
* Hardcode fingerprint

* no skipping

* rev

* the SE does not have SCC https://cdn.dealereprocess.org/cdn/brochures/hyundai/2022-tucson.pdf

* revert

* adjust weight

* add versions for 2023

* update docs

* fingerprint properly

* add package for 2022 but comment out

* updatedocs

* update route

* bump

* bump!

* 2022

* Update selfdrive/car/tests/routes.py
2022-12-05 15:24:54 -08:00
Shane Smiskol
be0c2dbbf9 Longitudinal planner: fix tests (#26707)
fix tests
2022-12-05 15:23:00 -08:00
Jason Young
2d0e29d60e VW MQB: Add FW for 2018 Volkswagen Atlas (#26702) 2022-12-05 13:59:36 -08:00
Shane Smiskol
e6fcc2d6aa planner: read experimental mode from controlsState (#26553)
read from controlsState
2022-12-05 13:58:15 -08:00
Dean Lee
f84b1f2d9f Sensord: remove unused pm_mutex (#26705)
remove unused mutex
2022-12-05 13:05:41 -08:00
Nelson Chen
0398f3ecf4 Undo accidental revert of Toyota: Add FW for 2023 Toyota Camry Hybrid #26654 (#26699)
Fix accidental revert of 1f4554b0c0 in c0d545523e
2022-12-04 14:46:52 -08:00
Adeeb Shihadeh
2976260b4f Hyundai: update Kona lat accel factor 2022-12-04 11:33:58 -08:00
cydia2020
7b0bfabb95 Toyota: Don't Set Standstill Bit on TSS-P Prius (#26671)
* Toyota: set TSS-P Prius as NO_STOP_TIMER_CAR

* reflect in docs

* also the PHV
2022-12-03 04:31:31 -08:00
Shane Smiskol
5b10deba2e Toyota: log ACC faults (#26682)
* add acc faulted

* use faster signal

* bump

* we know PCM_CRUISE_SM is not what we want
2022-12-03 03:02:57 -08:00
Shane Smiskol
d3a66015ad Toyota: log EPS fault from LKA cmd message drop out (#26687)
* log additional faults

* bump opendbc
2022-12-03 02:05:24 -08:00
Adeeb Shihadeh
122c314358 Hyundai: setup alt steering limits (#26685)
* Hyundai: setup alt steering limits

* value

* bump panda
2022-12-02 23:46:26 -08:00
Shane Smiskol
3e2a49c6e5 GM: add Bolt EV test route (#26681)
* bolt ev!

* releases

* it's a trim
2022-12-02 22:09:42 -08:00
Jason Young
ea857b0f71 VW MQB: Engage at standstill with OP longitudinal (#26656)
* VW MQB: Allow engage at standstill

* retry CI

* Update selfdrive/car/volkswagen/interface.py

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

* Revert "Update selfdrive/car/volkswagen/interface.py"

This reverts commit 14c7412bf74b23ae88c05cad40aafd4605a63c29.

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-12-02 19:26:04 -08:00
Lee Jong Mun
92296ce55d remove unused space (#26680) 2022-12-02 18:53:50 -08:00
martinl
10085d1e3f Subaru: add missing fw values for 2023 Crosstrek Limited (#26678)
* Add FPv2: 2023 Crosstrek Limited / @JWynegar

* update docs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-12-02 15:35:44 -08:00
Erich Moraga
c0d545523e Add missing COROLLA_TSS2 EPS, ABS, and engine f/w (#26669)
* Add missing COROLLA_TSS2 EPS, ABS, and engine f/w.

`@Yin#7979` 2020 Lexus UX 200  DongleID/route ced26c79125dd3e3|2022-12-02--06-03-06

* revert

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-12-02 13:36:48 -08:00
Mitchell Goff
bb8a38a050 navmodeld (#26665)
* Added navmodeld

* New nav model: 7c306685-5476-4bd4-ab65-105b01b6bca8/300, feats only

* little cleanup

* Remove NAV flag

* Moved to_kj_array_ptr to commonmodel.h

* Switch from decimation to last_frame_id check

* add to release files

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-12-02 13:14:30 -08:00
Adeeb Shihadeh
9cc06e9ea6 boardd: misc spi fixes (#26670) 2022-12-02 11:51:25 -08:00
Shane Smiskol
de061eacbe soundd: lower max volume breakpoint (#26673)
* revert tune

* remove hanning window

* retune from hanning window

* add hanning back

* update once reached 4096

* Revert "update once reached 4096"

This reverts commit 0898cbeec736916ffaee5e963df048b48636ece5.
2022-12-02 02:23:51 -08:00
Shane Smiskol
d087fab2c0 micd: apply A-weighting to the sound pressure level (#26668)
* record

* record

* draft

* some clean up

* some clean up

* wishful tuning

* log pressure level (db) for debugging

* fix

* tuning

* ignore complex to real warning

* remove this

* Update selfdrive/ui/soundd/sound.cc

* Update system/micd.py

* remove warning supp

* bump cereal to master

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-12-02 00:11:29 -08:00
Vybhav
1f4554b0c0 Toyota: Add FW for 2023 Toyota Camry Hybrid (#26654)
* Toyota: Add FW for 2023 Toyota Camry Hybrid

Toyota: Updating CAR_INFO list to show 2023 for Camry

* Update CARS.md for 2023 Toyota Camry

* remove duplicate fw, sort alphabetically

Co-authored-by: Vybhav Achar Bhargav <vybhavab@vybhavab-macbook-pro.local>
Co-authored-by: Vybhav Achar Bhargav <vybhavab@vybhavab-MBP.hsd1.ca.comcast.net>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-12-01 22:03:15 -08:00
EdwardApollo
30165134e8 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.
2022-12-01 14:18:32 -08:00
Jason Wen
1adf106da6 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>
2022-12-01 14:11:12 -08:00
Harald Schäfer
196caa095b thermald: add minimum offroad time to low voltage shutdown (#26660)
* voltage cleanup thermald

* Fix voltage shutdown test
2022-12-01 13:57:11 -08:00
Bruce Wayne
7a9d96759d Revert "voltage cleanup thermald (#26658)"
This reverts commit 92e985c583.
2022-12-01 13:11:31 -08:00
Harald Schäfer
92e985c583 voltage cleanup thermald (#26658) 2022-12-01 11:56:25 -08:00
Robbe Derks
fee6f2efac 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>
2022-12-01 09:12:16 -08:00
Vivek Aithal
9e0607806f [torqued] Set Hyundai Ioniq 5 2022 values (#26554)
set ioniq values, different from ev6, from offline data
2022-11-30 23:27:02 -08:00
royjr
17e06bdc93 Honda: Add missing modified firmware comment (#26648)
Update values.py
2022-11-30 22:21:48 -08:00
Cameron Clough
108ff15f5d 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>
2022-11-30 21:56:03 -08:00
Jason Wen
470fe9ce34 Hyundai: Add FW for 2022 Tucson Hybrid (#26647) 2022-11-30 20:57:05 -08:00
Shane Smiskol
997b2e11ae Honda Nidec: put max PCM gas into CarControllerParams (#26645)
* limit gas

* bump panda

* not sure why it was represented like this
2022-11-30 20:36:19 -08:00
Shane Smiskol
01dac5d06b 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 :(
2022-11-30 20:27:55 -08:00
Cameron Clough
02b5b6fe1f 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
2022-11-30 15:36:25 -08:00
ZwX1616
553da4ef30 DM: no reset on steer if distracted (#26567)
* only for attentive fast resets

* oops wheeltouch

* update test
2022-11-30 13:00:36 -08:00
Shane Smiskol
5409895ab2 Deprecate noTarget event (#26638)
deprecate notarget
2022-11-30 02:32:47 -08:00
Shane Smiskol
41610fe8ae controls: remove noTarget event (#26632)
remove noTarget alert
2022-11-29 23:12:58 -08:00
Shane Smiskol
dbe512d167 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>
2022-11-29 17:34:10 -08:00
Adeeb Shihadeh
c3e3047080 boardd: cleanup defs from panda (#26628)
* more stuff

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

* GM uses factors
2022-11-29 12:50:27 -08:00
Vivek Aithal
3a4f19f0ee [controlsd] Refactor apply_deadzone in Lateral Torque Control (#26626)
rename apply_slack to apply_center_deadzone, remove unused prius offline values
2022-11-29 12:46:08 -08:00
Shane Smiskol
860f441e2f 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
2022-11-29 11:49:13 -08:00
Jason Young
44e9ea23bd VW PQ: Follow-to-Stop support (#26616) 2022-11-29 11:15:16 -08:00
Vivek Aithal
0706b03e8c [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
2022-11-29 10:47:13 -08:00
Shane Smiskol
b4da592a3c mock: remove steering angle (#26614)
* fix yaw rate in mock interface

* clean that up

* revert

* clean up
2022-11-29 01:54:59 -08:00
Andrew
f64e69eb11 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>
2022-11-29 01:13:43 -08:00
uppercaseVar
b2fd699c21 Add ECU fw for 2016 Golf GTI (#26591)
Added ECU for 2016 Golf GTI
2022-11-29 01:08:58 -08:00
Erich Moraga
b18dfef8a6 Add missing RAV4_TSS2 ABS f/w (#26617)
`@IDJ#0879` 2019 Toyota RAV4 (ICE)  DongleID/route e7cd4ae3bee72b52|2022-11-29--14-33-40
2022-11-29 01:03:02 -08:00
Shane Smiskol
12ecc7b4bc Hyundai: remove custom accel limit function for default values (#26611)
* Update interface.py

* Update interface.py
2022-11-28 16:01:54 -08:00