Commit Graph

7989 Commits

Author SHA1 Message Date
Adeeb Shihadeh 768ca2ab2b updated: remove niceness (#25791)
old-commit-hash: 96ef9b1f0c15ecc0695401ca4e5c103d52fb088f
2022-09-14 20:06:19 -07:00
Shane Smiskol fa87f05dac Subaru: match panda standstill (#25789)
* subaru: match panda standstill

* subaru: match panda standstill

* actually test standstill

* bump panda to master
old-commit-hash: 86062fee6bbe5c38be77f8f995e9dd19dc2f2f54
2022-09-14 19:11:49 -07:00
Adeeb Shihadeh 8e7b9f68fc updated: prevent blocking on git (#25788)
* updated: prevent blocking on git

* remove that
old-commit-hash: e8c8bd902d6c21173e4067b348e2762e5aefc4ab
2022-09-14 18:02:06 -07:00
Jason Young 442d6e4b4d VW: Prep for MQB longitudinal (#25777)
* VW: Prep for MQB longitudinal

* fine, be that way

* temporarily pacify the docs generator
old-commit-hash: 4c9f8d2df87582c4b56a08d9492ee55203d1a0bd
2022-09-14 17:04:28 -07:00
Willem Melching 56188f43a5 Honda: match current speed on dash (#25232)
* Honda Bosch: match speed on dash

* present on all cars

* all honda

* more explicit switching

* hyst

* hyst

* clean up

* Update ref_commit

* no bitwise

no bitwise

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e699b0994ce418eca68f48557475118d3190dd0e
2022-09-14 15:40:36 -07:00
Adeeb Shihadeh 565511431d camerad: log image sensor in camera states (#25786)
* camerad: log image sensor in camera states

* for all cams

* bump cereal

* revert that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7352e6d9409dcec6719717dcb805b97565648533
2022-09-14 15:40:29 -07:00
Dean Lee 5a80f319ae networking: create scanning label once (#25782)
* create scanning label only once

* rename

* fix

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 578b8fba1a853da2f3b0d44605abfdd019bedd2f
2022-09-14 12:33:56 -07:00
Robbe Derks debdd12a51 Tesla AP2 fingerprint update: forgot one message (#25783)
old-commit-hash: 05e80cf4fbbccd602c0f3feb43927ae86ba550c9
2022-09-14 17:35:48 +02:00
Dean Lee e2a8d3e2f8 ui: prev_frame_id should be uint32_t (#25781)
uint32_t
old-commit-hash: 1b0f202d7b2be6a4c1f8a18499207170b0fd78ed
2022-09-14 01:58:10 -07:00
Shane Smiskol cfc3213ac1 ui: support ego speed hysteresis (#25702)
* toyota: match set speed from dash

* Use unit bit

* Use RSA2

* flip this

* Universal unit signal, set vEgoCluster

* remove this and bump opendbc

* detect if car interface sets cluster fields

* revert

* needs to be cp

* UI_SPEED is actually always in kph?

* forgot to actually convert it

* same in onroad

* try conv factor only for imperial

* Seems like UI_SPEED is not the UI speed at all

* the dash might floor it

* same openpilot behavior

* bump

* ego speed factor is dynamic across speeds, handle Lexus exceptions with
diff msg

* remove test, bump opendbc

* secret formula

* secret formula v2

* 1.03 is sufficient

* try short press

* bump opendbc

* surely this can be cleaned up

surely this can be cleaned up

* use filter

* redo factors

* try UI_SPEED again with a factor

try UI_SPEED again with a factor

* dash applies hysteresis to speed. this matches pretty well, but not exactly

* make hysteresis generic

* clean up

* revert this

* try this

* read from fake params

* should be mostly good for imperial now

* revert

* revert

* remove toyota stuff

* common function for everyone

* rm line

* fix

* an example with Toyota

* use CS.out

* one mph

* 1 kph

* cmt

* remove cmt

* abs it

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: ef26abcf658b9fe13f939c43a31f57bd6ae25232
2022-09-13 23:34:51 -07:00
Shane Smiskol c1b9a202aa controls: enter overriding state for steering override (#25617)
* lateral overriding is overriding

* Update test

* remove

* also could do something like this and only have one OVERRIDE ET

* Revert "also could do something like this and only have one OVERRIDE ET"

This reverts commit 5c381641c08961676a56a9718fbdaa84989ac249.

* full names

* bump cereal

* test every event type

* update refs
old-commit-hash: 992707c1724ab0047ddd6e230b82e47ae51b25ed
2022-09-13 23:20:45 -07:00
Kurt Nistelberger 2b335169b2 Sensor tests speedup (#25776)
* speed up sensor test

* remove sensord dependency

* address comments

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 3058437dd15896e328f8ddf8386683479a1f9493
2022-09-13 22:29:55 -07:00
Kurt Nistelberger 763cfa8c4e sensord: increase cpu usage in onroad test (#25773)
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 98c843bfb425bb1dd44f99715f81fa7d327a77e7
2022-09-13 22:28:00 -07:00
Adeeb Shihadeh 0a9e230016 controlsd: fix regen init for multi-panda setups
old-commit-hash: 3f34a7082afce611391369f881756fabc6a7e1e7
2022-09-13 20:35:16 -07:00
Kurt Nistelberger 94e586ccf7 add hardware init to sensor tests
old-commit-hash: 467bbffa0fe50587eb8fb8d98cfe2df93461ef1d
2022-09-13 16:45:12 -07:00
Kurt Nistelberger c3d7152d38 make test_sensord executeable
old-commit-hash: c64230c4a8681d0ba2d8b18128f42cbd76d85091
2022-09-13 16:15:33 -07:00
Shane Smiskol 404a1f4838 Chrysler: query FW versions on bus 0 (#25760)
* try bus 0!

* remove the whitelists

* no gateway
old-commit-hash: 4effa35ef5fdc7dde8777b695e8f3546c559a974
2022-09-13 14:38:06 -07:00
Shane Smiskol 322abc9e16 Chrysler: match panda standstill check (#25762)
* bump panda

* bump panda to master

* flip this around

* don't forget the body!
old-commit-hash: d3795c12272848ca5de8585162856e0db449ea8c
2022-09-13 14:14:22 -07:00
Jason Young b1fd8ab9d9 VW MQB: Add FW for 2016 Audi S3 (#25764)
old-commit-hash: aac84e09adc4b2d6ede6c0da69487e2a5154fc5b
2022-09-13 13:04:47 -07:00
Robbe Derks 89fc193e83 Add option to disable fan control (#25690)
add option for external fan control

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 13d9a77b93e083d3a35d7f4f2ea755b880e4a1ed
2022-09-13 15:54:15 +02:00
Dean Lee 8256220a51 ui: multilang date (#25741)
* multilang date

* update translations

* add language to uistate

* update translations

* use it here too

Co-authored-by: sshane <shane@smiskol.com>
old-commit-hash: 27e1ec8fd31192696cef70e4c6a98cbe7c3ba15a
2022-09-13 03:02:13 -07:00
Robbe Derks 3207c24f88 Update Tesla AP2 fingerprint (#25763)
update fingerprint for v11 software

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 852af4d1f84ca17bb9ec0d0fe376077acf07b841
2022-09-13 11:47:16 +02:00
Julian Pieles e9b0a0361d Kia: add missing EU EV6 FW versions (#25709)
* added fingerprint for european EV6

* missing version

Co-authored-by: julian.pieles <jp@headnap.de>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7a6ab188bd1a27f2eefadac98d43731ae3ca30c4
2022-09-13 01:06:11 -07:00
Shane Smiskol 5b84ad22b5 Consider regen properly in test_models (#25409)
* Consider regen properly in test_models

* bump panda

* bump panda

* can use the more interesting segment now

* rm
old-commit-hash: 4d351427c5a46dab100078b7e9d0737bce046e40
2022-09-13 00:22:58 -07:00
Dean Lee df1668b35f MapPanel: refresh only when visible and destination changes (#25739)
rebuild widgets only when mappanel is visible
old-commit-hash: ef767f633287445f7861eb5b82c5a17ab6325664
2022-09-12 22:54:33 -07:00
Willem Melching 7451db46cf sensord: use interrupts to improve LSM6DS3 timing accuracy (#24525)
* change LSM6DS3TR(-c) gyroscope  and accelerometer to interrupt

* add pthread for linking

* add interrupt collector thread to fetch in parallel to non interrupt based sensors

* change get_event interface to return true on successful read

* fetch sensor interrupts via gpiochip

* avoid sending empty messages (interrupt only, non interupt magn can leave a gap in the orphan block)

* add verifier script to sensor interrupts (sensor_data_to_hist.py)

* add/update sensord testsweet (test_sensord.py)

* add poll timed out check

* unexport interrupt gpio pins

* gpiochip on both edges, but skip falling edge if rising edge is detected, this is handled in the sensor as the status flag is checked if new data is availble

* add test to sensord to verify 100Hz interrupt frequency

* add sensor shutdown/low power mode functionality on sensord exit

* relax test, will be readded in the splitup PR

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 84a3c355e5fdb7bb2f50847f925e894eecfa8918
2022-09-12 22:29:31 -07:00
Brandon Bennett 0c480f7b3a Subaru: Add missing 2020 Ascent f/w (#25725)
* add missing ascent fw version

Ascent had recall service for transmission ecu. New values added.

* Update selfdrive/car/subaru/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 56b05d55eb99657595c5bc47c39fb393fb889f64
2022-09-12 22:24:11 -07:00
Erich Moraga ae08bb7daf Add several missing CAMRYH_TSS2 firmwares (#25745)
`!razor_amd#7792` 2021 Toyota Camry Hybrid (Japanese import)  DongleID/route 8553bd6f44d925f8|2022-09-12--22-01-21
old-commit-hash: 5222c90df42655571597b78c5f48f16b9c5439b7
2022-09-12 20:55:52 -07:00
Adeeb Shihadeh 4c68149cb0 updated: run lfs prune (#25729)
old-commit-hash: f2d9ecb08afdab2c547d4114fb6804ccffde00e5
2022-09-12 15:31:12 -07:00
Igor Biletskyy ca2e3c83d7 bump panda and cereal (#25746)
bump
old-commit-hash: f1a2dc36ba15ce374ef13f77c460d3100d3ab3b3
2022-09-12 15:08:19 -07:00
Dean Lee aede43ef22 prime.cc: call update() after QR code changed (#25740)
old-commit-hash: 722e4641fc5aa28ab0ba2de266d230853d5ac321
2022-09-12 10:30:58 -07:00
Dean Lee fad0bdf23c camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 29f9c536b410a45001beb63c73f3645a8299c222
2022-09-11 13:56:38 -07:00
ambientocclusion 246f03e72b Multilang: add missing Japanese translations (#25727)
old-commit-hash: f6398ea7864779f621f84df65ded7ee083e72c09
2022-09-11 03:35:57 -07:00
cydia2020 858c249f90 Toyota: longitudinal tune condition cleanup (#25676)
* Toyota: clean up long tunes a bit

* Update selfdrive/car/toyota/interface.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2704e2cf4d805712695422b6c8e513ba7f479877
2022-09-10 16:42:28 -07:00
Jason Young 195d076ead VW: Increase stock ACC button spam reliability (#25692)
* VW MQB: Fix/simplify stock ACC button spam

* try this instead
old-commit-hash: 21972605e7ed0f713d89324777afc2c60f862e6c
2022-09-10 16:04:15 -07:00
Dean Lee fd889cf696 cleanup map_helpers.cc (#25706)
old-commit-hash: 115eed9a54ae4f97bbdd0e561b9f796ca4214a9c
2022-09-10 14:39:57 -07:00
Dean Lee 158f9f0cde camera_qcom2: move util functions to separate files (#25720)
old-commit-hash: 1c8aa8816189b464329e12187a81eef85893a724
2022-09-10 14:22:43 -07:00
Jeroen 8e260b430f CI: remove redundant env variables in 'openpilot env setup' (#25721)
old-commit-hash: 1544734a540cf28d12df98038d7b9ecc48f7ffb9
2022-09-10 12:02:27 -07:00
George Hotz 71f609f2cc port OX03C10 (#25161)
* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* unbroken AE

* oops

* sort of good AE

* both should work 1

* open then init

* fix debayer

* rename

* fix test build

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aea1a0d5e684daf7682703174233390b0cf79c83
2022-09-09 22:38:00 -07:00
Shane Smiskol ae77b7edc7 FPv2: move car-specific configuration into interfaces (#25711)
* Add VMCU address for EV6

* Rename vmcu

* add to tests

add to tests

* rename to more generic name

* more explicit

* remove print

* Like this much better, removes subtle fingerprinting problems

* clean up

* add test and clean up

* remove hyundai stuffs

* global

* Fpv2Config class

* fix missing fw versions from import order

* unused

* revert for now

* test for fpv2 configs with subtests

* subtests don't work that way

* do toyota as an example

* revert

revert

* do chrysler

* do rest

* stash

* much smaller of a diff than the alternative

* remove unused test

* fix tests

* remove brand from Request

* Make StandardQueries class

* add missing_ecus

clean up

* rename file

* unused

* test implemented

* add comment and rename

add comment and rename

add comment and rename

* should be impossible now

* this is a fixme

* rename to fw_query

* rename this too

* and this

* move vin queries to class

* order

* can use p16!

* formatting

* whoops, this wasn't gated on not len(found_versions)

* make this clear

* Standardize manufacturer software version query
old-commit-hash: 0ef6bb48df63fa07609c170b61584a1d3ef8c320
2022-09-09 16:24:29 -07:00
calledit 88d173a925 VW MQB: Added support for APA racks to EPS configuration tool (#25556)
* Added support for APA racks

APA steering racks use a different bit to represent whether the ECU should enable steering assist.
This change supports those APA steering racks.

* Static analysis fix

* Static analysis fix2

* Code cleanup

* Update selfdrive/debug/vw_mqb_config.py

* Apply suggestions from code review

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>
old-commit-hash: fc3bdef89143721172230bcf413a08a0091bca32
2022-09-09 11:20:59 -07:00
Shane Smiskol 30ba3096a3 Longcontrol: fix possible reference before assignment (#25715)
fix possible reference before assignment
old-commit-hash: 056b2ec2edb40ce48871975bdbf19d9652c867f3
2022-09-08 21:43:04 -07:00
Dean Lee 18399bf618 ui: stop timer if PairingQRWidget is hidden (#25671)
old-commit-hash: 4974ca03a8ec1919075cd41da0a80eb1f32f53dd
2022-09-08 16:46:52 -07:00
Ochi Yuma 0f6b5d8b04 third party: add -Wno-unqualified-std-cast-call to fix json11 build (#25686)
only for json11

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0028e062b8f80ff6762f1517191d0a39e3457ed2
2022-09-08 16:00:00 -07:00
Cameron Clough 41bf0b4b34 bump catch2 headers to v2.13.9 (#25678)
old-commit-hash: 9fb2c40cfdd5a4c05c65e90c7d91a2afd267e26b
2022-09-08 15:54:14 -07:00
Dean Lee f2035fe63c UI/map: remove redundant QString ctor (#25704)
old-commit-hash: 69e9b285b3e125e319aedc9b587e4da44adb9913
2022-09-08 15:53:23 -07:00
Adeeb Shihadeh 9d640eecd0 Ford Explorer 2020-21 (#25614)
* add model years

* update Focus steer ratio

* Ford: add EU label to Focus Mk4

* add packages

* add Ford Explorer 2020

Package: Co-Pilot 360 Assist+

Optional on XLT
Standard on Limited, Limited Hybrid, ST and Platinum

https://cdn.dealereprocess.org/cdn/brochures/ford/2020-explorer.pdf

* Ford: steering control with path angle

* Ford: add TJA toggle to buttons

* add Ford Explorer 2021

`62241b0c7fea4589|2022-08-30--11-58-24--0`

Package: Co-Pilot 360 Assist+

Optional on XLT
Standard on Limited, Limited Hybrid, ST and Platinum (same as 2020)

https://cdn.dealereprocess.org/cdn/brochures/ford/2021-explorer.pdf

* Ford: add shiftByWire ECU fw

* angle/steer refactor

* try always stop and go for US models

* no dashcam

* car info

* send resume button

* skip explorer

* escape and focus back in dashcam

* passthru buttons

* fordcan set bus for button message

* toggle off stock traffic jam assist so camera does not enforce driver presence checks

* not used

* update ramp rate/precision notes

* cleanup

* bump steering pressed torque to 0.8 Nm

* add standstill

* bump steer ratio

* try increasing delay?

* fix docs

* add kuga car info

* maybe fix tja toggle?

* compensate for ford roll compensation??

* oops

* better ui

* block non-adaptive

* add note on ui warning for hands on wheel

* try only checking/toggling TJA every 2 seconds

* add car test route

* dashcam only again

* send buttons to camera

* add process replay segment

* cleanup

* bump panda

* add extra FW

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 9241de221099f6c65fd7ed5ed87d6296c17f668d
2022-09-08 15:49:51 -07:00
Dean Lee f4e57aa20d map_helpers: pass parameters by const reference (#25701)
pass parameters by const reference
old-commit-hash: d9ca45ed1b2bc0316aad8ff11470e1a9b96fb09c
2022-09-08 11:56:39 -07:00
Lee Jong Mun 9f442c6d0a Multilang: add missing translations (#25705)
kor translation update

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 015090de9237af02beb5414be65e97ee84c39c45
2022-09-08 11:55:21 -07:00
Shane Smiskol f8f22fabdf Car docs: CAN-FD cars do not yet have op long (#25707)
* CAN-FD cars do not yet have op long

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 973ea7440c1db67d89fd3b77c94ba19b4a77717d
2022-09-08 11:41:29 -07:00