Commit Graph

7244 Commits

Author SHA1 Message Date
Cameron Clough
ebea805aa8 Ford: add CADS radar interface (#24296)
* Ford: use FORD_CADS radar dbc

* Ford: CADS radar interface impl

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>

* fixup radar interface for FORD_CADS dbc

* CADS treat different scan indexes as separate points

* Ford: support both Fusion and CADS radars

* Ford: rename radars to DELPHI_ESR and DELPHI_MRR

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>
2022-08-19 23:29:09 -07:00
Adeeb Shihadeh
ddb7f91c9b remove old boardd stuff 2022-08-19 23:09:21 -07:00
Jason Wen
bd5e28909f Hyundai: Car Port for Tucson Hybrid 2022 (#25276)
* Hyundai: Car Port for Tucson Hybrid 2022

* Update RELEASES.md

* Init gear_msg at the top

* FW versions from script

* Button send attempt

* start with some cleanup

* Send button fixed bits

* Define all bytes and only send PAUSE/RESUME

* Use CRUISE_INFO to cancel cruise and resume

* 8-bit counter

* Cleanup ish

* 8 bit counter

* Send at 20ms

* Disengage bits

* Revert bump submodules

* Allow tx on 0x1a0

* Fix byte counts

* Send LFA and HDA icons based on engageability

* Send cruise buttons only on HDA2 cars for now

* Add comments

* Add FLAG_HYUNDAI_CANFD_HDA2 flag

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Bump submodules

* Bump panda

* Bump opendbc

* Allow tx with CRUISE_INACTIVE

* GEAR has 24 bytes only

* Generate car docs

* Fix CRUISE_INFO copy

* Remove unused class

* Add CAN-FD busses to unit test

* Bump opendbc

* Revert "Add CAN-FD busses to unit test"

This reverts commit 2f751640408a7f73a9100947cbd95ea13fbb8a48.

* Remove duplicate

* New tune based on data

* Panda safety cleanup

* Include bus 0 in rx checks

* Missed one

* bus 6 check

* Remove redundant check

* Add comments

* Bump opendbc

* Sync with DBC

* Hide LFA icon when disengaged

* Little endian

* fix comment

* more conditions in carcontroller

* update pedal signal

* update tuning

* cleanup carcontroller

* bump panda

* fix mismatch

* alt buttons

* little more cleanup

* update refs for EV6 new safety param

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-19 20:14:30 -07:00
Shane Smiskol
3640922f85 Show CAN error if message counters are invalid (#25497)
* counter check affects can valid

* Apply suggestions from code review

* bump to master
2022-08-19 19:27:16 -07:00
Jason Shuler
1e9fdff642 GM: Chevy Silverado 2020-21 support (#25429)
* Silverado support

Co-authored-by: Jason Shuler <jshuler@gmail.com>

* Update docs

* Try 2 m/s/s

* Should be good torque values

* Add Silverado test route

* Add to releases

* Send counter

* can't send multiple or it faults

* Send at 33hz, no counter

* try 25hz, don't line up exactly with car's buttons

* never tried 10hz with same counter

* Update selfdrive/car/gm/gmcan.py

* Make same as pcmCruise branch

* update year and package (different packages needed per-trim)

* Update year in releases

* Revert to 21

* We can use this package name again

* wrong one!

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-19 16:58:06 -07:00
Adeeb Shihadeh
090e92bb69 Hyundai: common CAN-FD gear signal (#25498)
* Hyundai: common CAN-FD gear signal

* bump opendbc
2022-08-19 16:12:16 -07:00
Shane Smiskol
fb19e24d60 GM Bolt EUV: update supported packages (#25496)
* Update values.py

* Update selfdrive/car/gm/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* update docs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-19 15:48:46 -07:00
Shane Smiskol
a0af3a998d Car docs: add more videos (#25494)
* Add Civic video

* add mazda cx-9 2022 video link
2022-08-19 13:34:23 -07:00
Adeeb Shihadeh
93b01fd9ea bump panda 2022-08-19 12:54:08 -07:00
Shane Smiskol
fe509e0354 GM pcmCruise: cancel more reliably (#25454)
* Cancel more reliably

* Apply suggestions from code review

* Try sending multiple

* Apply suggestions from code review

* Apply suggestions from code review

* Update selfdrive/car/gm/carcontroller.py

* lower rate a bit

* try this

* Update selfdrive/car/gm/carcontroller.py
2022-08-19 12:04:12 -07:00
Jason Wen
03b074426a Rename KIA_NIRO_HEV to KIA_NIRO_PHEV (#24216)
* Add car port: Kia Niro Plug-In Hybrid 2018

* Add additional FW version

* Low speed lockout 32 MPH

* Add test route

* min_steer_speed in CarInfo

* Remove min_steer_speed from CarInfo

* Add to CARS.md

* run generator

* update min enable speed and regen

* update ci routes

* these are the same car

* i think we only add a note if it's a new platform

* fix HEV -> PHEV

* Add test route

* dup fw

* haha we already support this car in #25187

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-19 00:48:51 -07:00
Shane Smiskol
e3d3fd0230 Common button enable/cancel event creation (#25445)
* handle button presses in create_common_events

* remove from imports

* Handle

* Fix Honda (it hardcodes pcmCruise)

* Update selfdrive/car/volkswagen/interface.py

* Update selfdrive/car/volkswagen/interface.py
2022-08-18 23:40:24 -07:00
Shane Smiskol
16fe10e128 joystick: revert max axes value (#25483)
revert this to 255
2022-08-18 23:34:48 -07:00
Shane Smiskol
844d4d2ece Multilang: add plural translation test (#25491)
Add test for correct format specifier for plural translations
2022-08-18 23:32:11 -07:00
Shane Smiskol
e5bb55ccd6 Toyota: remove STEERING_LKA frequency check (#25490)
* remove STEERING_LKA frequency check

* bump to master

* Update ref_commit
2022-08-18 22:23:39 -07:00
Adeeb Shihadeh
858eea9163 Hyundai: add HDA1 signals (#25484)
* Hyundai: add HDA1 signals

* bump

* bump to master
2022-08-18 17:52:09 -07:00
Adeeb Shihadeh
17992f29c8 bump opendbc 2022-08-18 16:40:16 -07:00
Adeeb Shihadeh
d907021d58 disable panda deep sleep for now 2022-08-18 15:36:50 -07:00
Erich Moraga
6a3a9944c2 ssh docs: corrections and readability improvements (#25482)
* Corrections and readability improvements

* Apply suggestions from code review

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-18 15:18:50 -07:00
Shane Smiskol
747bcb013d Car docs: show more information about cars (#25415)
* back to actual information

* remove some star code

* round speeds

* Try out showing lateral acceleration

* remove that

* Fix speed units

* Add harness and try rounding to nearest half before scapping it

fix

^2

^2

* Add back steering torque star

* Fix static analysis

* auto-generate header

* fix static analysis. set to Harness.none by default

* rm
2022-08-18 15:12:18 -07:00
Alex Vazquez
5f8858266c Hyundai: add missing Santa Fe 2022 FW (#25479)
* Update values.py

Adding 2022 Santa Fe Limited drive train and sensors - 2.5T with Dual Clutch Transmission which is different than the SE/VRT/SEL models.

* Update selfdrive/car/hyundai/values.py

* Add back other FW

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-18 11:35:07 -07:00
Adeeb Shihadeh
a21780dbea Subaru: Legacy 2020-22 support (#25313)
* Subaru: Legacy 2020 support

* clean that up

* force for now

* update years

* test route
2022-08-18 09:02:33 -07:00
Robbe Derks
7679f4fa90 Panda fan controller (#25475)
bump panda and add fan power to pandaState
2022-08-17 21:23:03 -07:00
Shane Smiskol
8ed87b12bc Hyundai: add missing Palisade transmission FW (#25476)
Add missing transmission fp for Palisade
2022-08-17 20:57:50 -07:00
Squiggle Squaggle
c870d0cbde Hyundai: add missing FW for 2022 Elantra SEL (#25472)
* added missing FW for 2022 Elantra SEL

I connected the Comma 3 with Hyundai K Harness and the vehicle was unknown. I worked my way through fingerprint 2.0 and compared the FW I had with this file and added the missing firmware to the Elantra_2021 section. I then went for a drive and it worked as intended. A number of the fwVersion were already there and so I've only added the ones that were missing.

* removed erroneous entries

removed entries that were not labeled Hyundai that I had added.
2022-08-17 20:49:38 -07:00
Adeeb Shihadeh
7087a154f5 Ford: add Q3 and Q4 harnesses (#25474) 2022-08-17 20:29:56 -07:00
eFini
1de8ad891b Fix is_rhd param name in map.cc (#25464) 2022-08-17 20:21:38 -07:00
Adeeb Shihadeh
96f8d3acd5 rawgps in CI (#25473) 2022-08-17 20:00:15 -07:00
Shane Smiskol
5ed587ebef controls: block resume if cruise not previously engaged (#25402)
* see if this works at all

* can revert this

* think adding a no entry conditionally is nicer

* then we can revert this

* 0 makes more sense

* Revert "0 makes more sense"

This reverts commit efc89e8a2389ef58fbc0cec0a2872d24db524867.

* gm CC uses > 70

* bump cereal

* comment

* test on Honda

* whoops

* works

* add exception with todo

* moved button enable events to controlsd

* get rid of that

get rid of that

* different values for now

* car interfaces add enable event, controlsd can block it

* Regen and update refs

* delete if not set

* One place

one place

* regen routes are uninitialized first few frames

* Trim start of segment so it's like original segment

* stash

* regen

* not working

* clean up

* more cleanup

* revert

* bump ceral

* actually check resume button

* whoops

* pcmCruise cars don't use setSpeed, so we're good

* engage correctly in sim

* Update ref_commit

* Update refs
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh
baef4c1fb2 expand fingerprint dict size for multipanda setups 2022-08-17 15:30:20 -07:00
Adeeb Shihadeh
e0e0aad144 Chrysler: ensure control bit is high before torque cmd (#25465)
* Chrysler: ensure control bit is high before torque cmd

* move that & update refs

* check control bit too
2022-08-17 15:20:18 -07:00
Shane Smiskol
87ca42e993 process replay: initialize controlsState with original route (#25461)
* push

* do process replay

* commit

* update refs

* clean up

* clean up controlsd

* clean up controlsd

* Add assert

* debubuggier param name

* can be peristent

* Revert "can be peristent"

This reverts commit 6e6d3f6423c26a202623cef728e038259e9e46cd.

* Update selfdrive/test/process_replay/process_replay.py
2022-08-16 22:02:03 -07:00
Shane Smiskol
63fb3e591e Kia: add missing Niro EV 2020 FW versions (#25446)
Add missing FW versions from 9b052af2986bbe3c
2022-08-16 20:57:06 -07:00
Shane Smiskol
d7095d0d43 process replay: show errors when updating refs (#25460)
* Update test_processes.py

* Apply suggestions from code review
2022-08-16 19:39:11 -07:00
Adeeb Shihadeh
1388c80a8f Toyota: remove Camry Hybrid footnote (#25457)
* Toyota: remove TSS2 camry footnote

* Apply suggestions from code review

* update docs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-16 18:41:45 -07:00
Shane Smiskol
b3dc7bb3cb regen: initialize once (#25458)
regen: init once
2022-08-16 18:40:30 -07:00
Shane Smiskol
bacd2d5aee Kona: remove pid tuning 2022-08-16 18:39:20 -07:00
Adeeb Shihadeh
aa32ea0f64 loggerd: log all disk space usage in initData (#25455)
* bootlog: log all disk space usage

* not just agnos

* move to initData

* cleanup
2022-08-16 16:37:58 -07:00
Adeeb Shihadeh
f35468e88c Update RELEASES.md 2022-08-16 14:48:26 -07:00
Jason Young
c27d7913f2 VW PQ: Volkswagen Passat NMS (#24768)
* VW PQ: Volkswagen Passat NMS

* regen CARS.md

* vEgo from Bremse_1 vehicle speed

* sync opendbc to master

* handle checksums and counters in opendbc

* LDW HUD message handling

* GRA_Neu_Zaehler -> COUNTER

* bump opendbc

* stub in till we find platform ACC standstill

* bump opendbc

* bump opendbc

* placeholder lateral accel data

* regen CARS.md

* counters now directly supported in opendbc

* additional door-open signals

* add trunk lid state

* add doors and trunk lid to signals list

* LDW_Status updates and passthrough

* bump opendbc for typo fix

* update AWV comment

* another comment update

* regen CARS.md with PQ in dashcam only

* don't show NMS footnotes while still in dashcam

* polish

* add stubbed-out dashcamOnly prep

* VW MQB: Cleanup stock ACC button handling

* bump opendbc and panda

* use controls resume output as trigger

* these can wait until taco bell

* bump opendbc

* pass through of previously fixed value

* retry CI

* checks already done in carcontroller

* don't need these anymore

* reduce diff for now

* slightly better abstraction

* more engine and trans FW

* turn signal is instantaneous stalk position

* weak sauce :(

* better clarity

* try torque tune

* add test route references

* bump opendbc and panda for OP long

* don't show steering faults for 3 seconds after start

* longitudinal control senders

* a little more torque

* test hax to torque control

* test a little more delay

* allow use of manufacturer ramp-up rate

* soften wheel-touch threshold

* Revert "test hax to torque control"

This reverts commit d1af459c29e36264aae406f72b8fcbc9ef22b9e0.

* punch it Chewie

* better ACC state and mainswitch handling

* a little more

* tweak max accel gradient

* oops

* also oops

* stuff

* srsly

* that's not how this works

* regen CARS.md

* footnotes now properly excluded for dashcam cars

* this wasn't a problem

* update network location detection

* bump submodules for ACC main switch

* clean up DBC references and long flag

* bump one more time

* one more time

* follow CANPacker counter refactor

* bump opendbc

* sync opendbc to master

* bump panda to fix Subaru tests

* DBC handling cleanup

* fix

* model-year stretch

* cleanup and rate bugfixes

* better abstractions

* simplify create_lka_hud_control

* volkswagencan -> mqbcan

* bump panda

* fix doc data bug, regen CARS.md

* style updates; diff reduction

* use common button enable logic

* not needed anymore

* refactor TSK and HUD enum values

* make common button events function

* consistency

* bump panda

* bump panda

* dashcam only

* don't need process_replay yet

* regen CARS.md with Passat NMS in dashcam

* can't handle dashcam-orphaned footnotes yet

* remove outdated standstill handling

* editor tried to be too helpful at some point

* don't need to import this anymore

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* follow parkingBrake refactor

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-16 14:32:59 -07:00
Adeeb Shihadeh
0ed8a7f42d Toyota: add new corolla fw 2022-08-16 13:41:58 -07:00
Adeeb Shihadeh
0258ef74ff Hyundai: Kona torque tune (#25426)
* Hyundai: Kona EV 2022 torque tune

* Update selfdrive/car/hyundai/interface.py

* update for all
2022-08-16 13:18:39 -07:00
Adeeb Shihadeh
76a4daefff pj: update torque control layout 2022-08-16 13:16:23 -07:00
Chris Souers
3fc001c945 Honda: cleanup minEnableSpeed (#25447)
* Honda interface.py: cleanup `stop_and_go` variable

* Update selfdrive/car/honda/interface.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-16 00:40:47 -07:00
Shane Smiskol
721fae7e8e Multilang: language policy (#25414)
* add draft translation merging policy

* Update policy copy

* copy

* add link

* Update selfdrive/ui/translations/README.md
2022-08-16 00:37:11 -07:00
Shane Smiskol
4602e5a8f9 process replay: print correct ref path (#25448)
* fix log paths ref printing in process replay

* rm that

* this is easier to read

* fix model_replay
2022-08-16 00:32:42 -07:00
khoi
df48ab9ee2 Car docs: add video link for Hyundai Santa Fe 2022 (#25449)
* Add video link for Santa Fe 2022

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-15 21:46:56 -07:00
Shane Smiskol
574021a0ac Car docs: test for missing harnesses (#25444)
* All cars must have a harness

* except body

* skip test

* Q for IoniQ
2022-08-15 21:44:15 -07:00
MadBrad
07320fb8a8 Car docs: add video link for 2022 Chevy Bolt EUV (#25443)
* Car docs: Add video link for 2022 Chevy Bolt EUV

* New video added
2022-08-15 15:29:46 -07:00
Shane Smiskol
e24da95120 Fix translations 2022-08-15 15:12:46 -07:00