Commit Graph

7422 Commits

Author SHA1 Message Date
Jason Young
4c9f8d2df8 VW: Prep for MQB longitudinal (#25777)
* VW: Prep for MQB longitudinal

* fine, be that way

* temporarily pacify the docs generator
2022-09-14 17:04:28 -07:00
Willem Melching
e699b0994c 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>
2022-09-14 15:40:36 -07:00
Adeeb Shihadeh
7352e6d940 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>
2022-09-14 15:40:29 -07:00
Dean Lee
578b8fba1a networking: create scanning label once (#25782)
* create scanning label only once

* rename

* fix

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-09-14 12:33:56 -07:00
Robbe Derks
05e80cf4fb Tesla AP2 fingerprint update: forgot one message (#25783) 2022-09-14 17:35:48 +02:00
Dean Lee
1b0f202d7b ui: prev_frame_id should be uint32_t (#25781)
uint32_t
2022-09-14 01:58:10 -07:00
Shane Smiskol
ef26abcf65 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>
2022-09-13 23:34:51 -07:00
Shane Smiskol
992707c172 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
2022-09-13 23:20:45 -07:00
Kurt Nistelberger
3058437dd1 Sensor tests speedup (#25776)
* speed up sensor test

* remove sensord dependency

* address comments

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-09-13 22:29:55 -07:00
Kurt Nistelberger
98c843bfb4 sensord: increase cpu usage in onroad test (#25773)
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-09-13 22:28:00 -07:00
Adeeb Shihadeh
3f34a7082a controlsd: fix regen init for multi-panda setups 2022-09-13 20:35:16 -07:00
Kurt Nistelberger
467bbffa0f add hardware init to sensor tests 2022-09-13 16:45:12 -07:00
Kurt Nistelberger
c64230c4a8 make test_sensord executeable 2022-09-13 16:15:33 -07:00
Shane Smiskol
4effa35ef5 Chrysler: query FW versions on bus 0 (#25760)
* try bus 0!

* remove the whitelists

* no gateway
2022-09-13 14:38:06 -07:00
Shane Smiskol
d3795c1227 Chrysler: match panda standstill check (#25762)
* bump panda

* bump panda to master

* flip this around

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

Co-authored-by: Comma Device <device@comma.ai>
2022-09-13 15:54:15 +02:00
Dean Lee
27e1ec8fd3 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>
2022-09-13 03:02:13 -07:00
Robbe Derks
852af4d1f8 Update Tesla AP2 fingerprint (#25763)
update fingerprint for v11 software

Co-authored-by: Comma Device <device@comma.ai>
2022-09-13 11:47:16 +02:00
Julian Pieles
7a6ab188bd 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>
2022-09-13 01:06:11 -07:00
Shane Smiskol
4d351427c5 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
2022-09-13 00:22:58 -07:00
Dean Lee
ef767f6332 MapPanel: refresh only when visible and destination changes (#25739)
rebuild widgets only when mappanel is visible
2022-09-12 22:54:33 -07:00
Willem Melching
84a3c355e5 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>
2022-09-12 22:29:31 -07:00
Brandon Bennett
56b05d55eb 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>
2022-09-12 22:24:11 -07:00
Erich Moraga
5222c90df4 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
2022-09-12 20:55:52 -07:00
Adeeb Shihadeh
f2d9ecb08a updated: run lfs prune (#25729) 2022-09-12 15:31:12 -07:00
Igor Biletskyy
f1a2dc36ba bump panda and cereal (#25746)
bump
2022-09-12 15:08:19 -07:00
Dean Lee
722e4641fc prime.cc: call update() after QR code changed (#25740) 2022-09-12 10:30:58 -07:00
Dean Lee
29f9c536b4 camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-11 13:56:38 -07:00
ambientocclusion
f6398ea786 Multilang: add missing Japanese translations (#25727) 2022-09-11 03:35:57 -07:00
cydia2020
2704e2cf4d 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>
2022-09-10 16:42:28 -07:00
Jason Young
21972605e7 VW: Increase stock ACC button spam reliability (#25692)
* VW MQB: Fix/simplify stock ACC button spam

* try this instead
2022-09-10 16:04:15 -07:00
Dean Lee
115eed9a54 cleanup map_helpers.cc (#25706) 2022-09-10 14:39:57 -07:00
Dean Lee
1c8aa88161 camera_qcom2: move util functions to separate files (#25720) 2022-09-10 14:22:43 -07:00
Jeroen
1544734a54 CI: remove redundant env variables in 'openpilot env setup' (#25721) 2022-09-10 12:02:27 -07:00
George Hotz
aea1a0d5e6 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>
2022-09-09 22:38:00 -07:00
Shane Smiskol
0ef6bb48df 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
2022-09-09 16:24:29 -07:00
calledit
fc3bdef891 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>
2022-09-09 11:20:59 -07:00
Shane Smiskol
056b2ec2ed Longcontrol: fix possible reference before assignment (#25715)
fix possible reference before assignment
2022-09-08 21:43:04 -07:00
Dean Lee
4974ca03a8 ui: stop timer if PairingQRWidget is hidden (#25671) 2022-09-08 16:46:52 -07:00
Ochi Yuma
0028e062b8 third party: add -Wno-unqualified-std-cast-call to fix json11 build (#25686)
only for json11

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-08 16:00:00 -07:00
Cameron Clough
9fb2c40cfd bump catch2 headers to v2.13.9 (#25678) 2022-09-08 15:54:14 -07:00
Dean Lee
69e9b285b3 UI/map: remove redundant QString ctor (#25704) 2022-09-08 15:53:23 -07:00
Adeeb Shihadeh
9241de2210 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>
2022-09-08 15:49:51 -07:00
Dean Lee
d9ca45ed1b map_helpers: pass parameters by const reference (#25701)
pass parameters by const reference
2022-09-08 11:56:39 -07:00
Lee Jong Mun
015090de92 Multilang: add missing translations (#25705)
kor translation update

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-09-08 11:55:21 -07:00
Shane Smiskol
973ea7440c 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>
2022-09-08 11:41:29 -07:00
Adeeb Shihadeh
6136868557 ui: fix network page crash 2022-09-08 11:39:54 -07:00
Adeeb Shihadeh
76ead92f63 bump opendbc 2022-09-07 20:38:24 -07:00
Adeeb Shihadeh
3ef37fe2e8 split out experimental long toggle (#25698)
* split out experimental long toggle

* clean up

* update translations
2022-09-07 20:38:04 -07:00