Commit Graph

4671 Commits (master)

Author SHA1 Message Date
Shane Smiskol 2c7845fce0
Longitudinal control: interpolate longitudinal plan (#23787)
* interpolate longitudinal actuator delay

rename

* formatting

* interpolate v_target most importantly!

* fix interpolation and rename

* nicer setup

* left in from testing

* update refs
2022-02-18 00:45:00 -08:00
Adeeb Shihadeh c6e0f1d841
camerad: adjust CL priority on comma three (#23790)
Co-authored-by: Comma Device <device@comma.ai>
2022-02-17 19:49:10 -08:00
Willem Melching 14260c01c6
process replay: fix branch name alert (#23783)
* env is modified after start

* update ref
2022-02-17 16:47:42 +01:00
Adeeb Shihadeh f59adbeaaa keep the new alert consistent for process replay 2022-02-16 23:47:02 -08:00
Adeeb Shihadeh ff965c772b
add branch name to startup master alert (#23782)
* add branch name to startup master alert

* still orange

* update refs
2022-02-16 20:27:07 -08:00
redacid95 1c9bf108af
Snpemodel: Clean up after #23772 (#23780)
* #clean up snpemodel after #23772

* Leave benchmark remove loop
2022-02-16 09:40:32 -08:00
ClockeNessMnstr 9535dc606d
Longitudinal: add Kf to carParams (#23752)
* sane_kf

* long_kf + cereal

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-16 15:38:22 +01:00
Jack Huang a84ddaecf1
statsd: fix crash if there is no git repository (#23775)
* fix crash if there is no git repository

* return default

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-16 14:30:54 +01:00
Adeeb Shihadeh 95da470795 same check 2022-02-15 16:44:13 -08:00
Adeeb Shihadeh 00d469dbc9
UI: fix power buttons disable logic (#23774) 2022-02-15 16:18:09 -08:00
Adeeb Shihadeh bdf4245e00 bump to 0.8.14 2022-02-15 15:32:44 -08:00
George Hotz 90beaebefb
add thneed optimizer (#23772)
* add thneed optimizer

* local work group opt

* kernels and final mods

* release files

* build system touchups

* fix kernel path, rand inputs for self test

* broken since extra is gone

* update model replay ref

Co-authored-by: Comma Device <device@comma.ai>
2022-02-15 15:32:00 -08:00
Shane Smiskol 7176f5c401
Hyundai: move unused cars to dashcam only (#23767)
* Move OptimaH to dashcamOnly

* Elantra GT also has no users for a year

* Update selfdrive/car/hyundai/interface.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-15 14:07:13 -08:00
Willem Melching f8c81103fc
nav: set settings stack based on uiState.prime_type (#23770)
* nav: set settings stack based on uiState.prime_type

* also show on success
2022-02-15 16:39:10 +01:00
Willem Melching 14f7a78251
nav: handle route responses with duplicate points (#23769) 2022-02-15 16:14:57 +01:00
Willem Melching e76ef93a83
ui: fix onroad transition with active nav (#23757) 2022-02-14 13:55:30 +01:00
Shane Smiskol 31228ce560
Honda: use common DBC for CRV H and Accord Diesel (#23743)
* bump

* use Accord DBC for CRVH, Civic Diesel

* bump

* bump opendbc
2022-02-12 16:28:53 -08:00
Shane Smiskol 7410160d09
unsafe mode: update safety declaration comment (#23753)
* update safety declaration comment

* whoops
2022-02-11 19:20:27 -08:00
Vivek Aithal 3e915cf628
controlsd: Fix Toyota steer angle sensor race condition (#23747)
* fix steer angle race condition

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-11 13:54:17 +01:00
Willem Melching f03549c276
athena: expire items after 31 days (#23751)
* athena: expire items after 31 days

* add test
2022-02-11 13:52:44 +01:00
Willem Melching 7765bc2166
improve logging around uploading (#23750)
* improve logging around uploading

* use int

* use raw

* duplicate
2022-02-11 12:58:41 +01:00
Lee Jong Mun ab9fb0541d
missing optional include (#23749) 2022-02-11 12:08:09 +01:00
suryad 12e79761e1
Mazda: add 2017 CX-9 firmware (#23742) 2022-02-10 16:30:00 -08:00
Jason Young 4416c21b1e
VW MQB: EPS configuration tool (#23737)
* VW MQB: EPS configuration tool

* a bit more help text

* typo

* Update selfdrive/debug/vw_mqb_config.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update selfdrive/debug/vw_mqb_config.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* better handling of vendor constants

* comment tweak

* more constant clarity

* move help text to argparse

* add parameterization parsing

* refactor param read, skip length byte

* touch up section headers

* removing; low value and acting weird

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-10 13:57:12 -08:00
Shane Smiskol dd76cfcf28
GM: Fix noisy brake pressed (#23712)
* GM: Use ECMEngineStatus.Brake_Pressed

* consistent style

* add TODO

* bump panda

bump panda

* it should

* bump panda

Co-authored-by: Jason Shuler <jshuler@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-10 13:08:19 -08:00
Shane Smiskol 209bfe536b
Honda: fix brake pressed signal (#23683)
* or brake_switch

* remove car exceptions

* Revert "remove car exceptions"

This reverts commit cad6a552aa4a17c69616014d3e9333d30c1fadd3.

* does have ts noise, use updated

* bump panda for tests

* bump

* messsssy draft

* clean up

* clean up

* bump

* CS: process all messages at once, like we do during real openpilot usage

* handle multiple messages updated in one cycle

* bump

* bump

* use less confusing, but equivalent cp.vl

* Update selfdrive/test/test_models.py

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

* no msg

* bump opendbc

* Update selfdrive/car/honda/carstate.py

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

* same test logic

* add brake_switch_prev to class

* need to set previous brake switch when not lagging (most of the time)

* need to compare

* only update previous if updated this cycle

rm

* need to maintain previous active state

* move brake_switch

* bump opendbc

* bump

* bump

* bump

* bump

* bump

* bump

* bump opendbc

* rename

* oops

* bump opendbc

* bump

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-10 13:04:37 -08:00
Willem Melching f2eb84eef0
handle usb error in reading panda state (#23686) 2022-02-10 13:52:24 +01:00
Willem Melching 955c7435f8
fix UI segfault when starting onroad and receiving radarState before modelV2 (#23739) 2022-02-10 13:52:03 +01:00
Vivek Aithal 8a2cbfe00b
paramsd: fix VehicleModelInvalid errors (#23726)
* bound steerratio, stiffness std

* remove start steer_ratio limits after looking at data

* reduce sf obs noise

* update refs

* update refs

* add comment explaining change
2022-02-09 17:37:28 -08:00
Willem Melching 4e4cb07297
ui: configure tethering based on prime type (#23733)
* Store prime type in param

* set tethering metric based on prime type

* update existing connections

* returning zero is fine

* always set

* add callback on activate

* call systemctl

* match server enum

* add delay

* assume field is there

* snake case
2022-02-09 20:27:58 +01:00
Jason Young 3553a26d52
VW MQB: Volkswagen Caravelle T6.1 (#23735)
* VW MQB: Volkswagen Caravelle T6.1

* autogratitude
2022-02-09 10:30:13 -08:00
Willem Melching e9153fdb4b
athena: specify network type for file uploads (#23687)
* athena: specify network type for file uploads

* add comment

* catch abort transfer

* fix tests

* put athena upload args in dict

* fix defaults

Co-authored-by: Joost Wooning <jwooning@gmail.com>
2022-02-09 17:28:49 +01:00
Willem Melching 8effa2d878
hide localizerMalfunction alert (#23730)
* hide localizerMalfunction alert

* update ref
2022-02-08 22:22:03 -08:00
Adeeb Shihadeh a1b795cd78
AGNOS 4 (#23724) 2022-02-08 19:48:14 -08:00
Willem Melching 0d099e07aa
athena: add suport for download bandwith setting (#23727)
* athena: add suport for download bandwith setting

* clean ingress rules
2022-02-08 12:07:11 +01:00
Adeeb Shihadeh 8a0fc850b4
give calibrationd rt priority (#23725) 2022-02-07 21:05:55 -08:00
Adeeb Shihadeh 4c766934be
reduce shutdownd CPU usage (#23723)
* reduce shutdownd CPU usage

* sync

Co-authored-by: Comma Device <device@comma.ai>
2022-02-07 18:50:54 -08:00
Adeeb Shihadeh 48e97b7872 small test_models.py speedup 2022-02-07 16:10:20 -08:00
khoi 4bc8622524
Hyundai: add FW for Santa Fe 2022 (#23718)
* Add finger print for Santa Fe 2022 - Vietnamese

* Add trailing commas
2022-02-07 14:34:35 -08:00
Igor Biletskyy 2629715097
thermald: accept ignition from any panda (#23721)
* ignition from any panda

* more elegant )

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

* typo

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-07 14:32:29 -08:00
Willem Melching 4c406cdbe5
Add setUploadLimit method to athena (#23693)
* Add setUploadLimit method to athena

* add comments

* move to hw abstraction layer

* move to hw

* better errors
2022-02-07 16:55:16 +01:00
Shane Smiskol e5005b8f44
scons: fix duplicate environments with test flag (#23702)
* fix duplicate environments when built with --test

* lib

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-06 14:08:02 -08:00
Adeeb Shihadeh 3c83975ef6 resolve misc car TODOs 2022-02-06 13:50:59 -08:00
Dean Lee 786152f0f1
remove trailing whitespaces (#23716) 2022-02-06 10:42:41 -08:00
Dean Lee ee85e7026a
logcatd_android.cc: fix repeating the same messages (#23713)
* fix repeating the same message

* cleanup

* use blocking mode

* check duplicate msg in test
2022-02-05 16:02:45 -08:00
Jafar Al-Gharaibeh 341f5a4ae0
Mazda CX-5 2022 Car port (#23704)
* Mazda CX5 2022 FW

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* CX-5 2022: No lockout and steer down to zero

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* CX-5 2022: No dashcam!

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* CX-5 2022: add to supported cars

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Mazda: stick with 800 max torque for now

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Update docs/CARS.md

* Apply suggestions from code review

* Mazda: set car models where needed

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Mazda: set minSteerSpeed per car

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* unused

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* cleanup

* Update selfdrive/car/mazda/interface.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-04 23:34:37 -08:00
Adeeb Shihadeh 2372f4d6db remove debug prints 2022-02-04 23:32:39 -08:00
Adeeb Shihadeh c05bff58b8 not sure we want this 2022-02-04 23:31:22 -08:00
Adeeb Shihadeh 62e0bd5f0d
NEOS 19.1 (#23707)
* NEOS 19.1

* add logging

* new manifest

* prod bucket

Co-authored-by: Comma Device <device@comma.ai>
2022-02-04 22:54:12 -08:00
Dean Lee 414d4cae78
radard.py: remove trailing space (#23703) 2022-02-03 15:43:00 -08:00
Dean Lee 4e0c08c0a6
WifiManager: fix crash if no wifi device found (#23701) 2022-02-03 15:33:29 -08:00
Jason Wen 4715510e91
UI: hide power off button on C3 while onroad (#23689)
* Grey out power button while onroad - comma three only

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-03 15:32:57 -08:00
Shane Smiskol fccb80e9a5
GM: remove noisy ignition signal (#23698)
* move BUICK_REGAL to dashcamOnly

* bump to master
2022-02-03 12:32:33 -08:00
Jonathan Frey a39e635b5c
replay: fix pause key doc (#23697) 2022-02-03 09:59:07 -08:00
Adeeb Shihadeh 5a9657cad5
logcat: include all logs since boot (#23692) 2022-02-02 11:33:06 -08:00
Erich Moraga 3e094bc7c4
Toyota: Add missing LEXUS_RX_TSS2 engine & fwdCamera (#23691) 2022-02-01 23:32:40 -08:00
Adeeb Shihadeh edcee81796 manager: kill UI when manager failed to start 2022-02-01 11:06:32 -08:00
Shane Smiskol 31af75f2e3
Toyota: merge Lexus ESH params into similar vehicles (#23673)
* merge LEXUS_ESH

* min and max of all variants
2022-01-31 17:30:48 -08:00
Shane Smiskol 61de3788ff
CANParser: remove rest of default values (#23676)
* forgot honda somehow!

* forgot some more signal defaults
2022-01-31 17:29:55 -08:00
Adeeb Shihadeh e6d8a84578 for those who want to live in the moment 2022-01-31 14:30:40 -08:00
Jafar Al-Gharaibeh 1c31c9b7a3
Mazda: alert when LKAS is disabled (#23288)
* Mazda: alert when LKAS is disabled

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* update refs

* revert that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-30 21:04:07 -08:00
Adeeb Shihadeh af33998335 update refs 2022-01-30 20:46:40 -08:00
Adeeb Shihadeh 602f92fc0e
controlsd: only add startup event until initialized (#23671)
* controlsd: only add startup event until initialized

* update refs

* update again
2022-01-30 20:38:05 -08:00
VAHAMAISEN 9ec99b5230
Toyota: add COROLLA_TSS2 fw (#23661)
* Update values.py

Added Toyota Corolla fingerprint.

* a
2022-01-30 20:04:36 -08:00
Adeeb Shihadeh 8d9afa7171
Log panda signature to param (#23670) 2022-01-30 13:07:05 -08:00
Adeeb Shihadeh c8429f913e
test car models improvements (#23668)
* run on all routes

* min segment length

* invalid

* revert that
2022-01-30 11:17:51 -08:00
Willem Melching 96743c1067
Honda Pilot, Passport, Ridgeline: increase user brake threshold (#23641) 2022-01-30 19:45:24 +01:00
Adeeb Shihadeh d2735d73fc
test car models: fix all panda safety mismatches (#23616)
* remove tolerance

* fix nissan mismatches

* warm up

* remove additional bosch check

* another honda exception

* little more

* Update selfdrive/test/test_models.py
2022-01-29 22:14:27 -08:00
Adeeb Shihadeh 52d4189e96 don't show registration error on pc 2022-01-29 18:10:41 -08:00
Adeeb Shihadeh 5219554b85
Honda: fix controls mismatch for stock PCM configs (#23662)
* Honda: fix controls mismatch for stock PCM configs

* ready to remove

* bump panda
2022-01-29 17:01:26 -08:00
Shane Smiskol a584436328
Honda: use common DBC for PILOT and others (#23659)
* use common dbc

* bump

* remove from files common
2022-01-28 22:26:18 -08:00
Adeeb Shihadeh 661d47325a Volkswagen: no actuation while pre-enabled 2022-01-28 19:14:14 -08:00
Adeeb Shihadeh 72e00a0768
No actuation while in pre-enabled state (#23658)
* No actuation while in pre-enabled state

* update refs
2022-01-28 16:03:44 -08:00
Adeeb Shihadeh 8eb6a6a535
Honda: no actuation while in pre-enabled state (#23657)
* Honda: no actuation in pre-enabled state

* Honda: no actuation while in pre-enabled state
2022-01-28 15:28:17 -08:00
Adeeb Shihadeh 2aa2031352 Honda: minor carState cleanup 2022-01-28 14:29:40 -08:00
Adeeb Shihadeh e9cd0a059c
setup: add OS version to user agent (#23656) 2022-01-28 14:21:37 -08:00
Shane Smiskol 95caa5f399
CANParser: consistent style for adding signals/checks (#23646)
* consistent style, like toyota

* typo
2022-01-28 13:20:13 -08:00
Dean Lee fa3a787e9a
replay: fix wrong logging for local route (#23652) 2022-01-28 12:03:19 -08:00
Dean Lee 520c99a050
replay: add test case for local route (#23650)
* add test for local route

* retry download on network error

* sleep 500ms before retry

* read 100 frames

* read more segments from route

* add REQUIRE
2022-01-28 12:02:29 -08:00
Dean Lee 2f91441382
replay: cleanup functions (#23655)
* cleanup function seek

* cleanup signals&slots

* use false

* add comment back
2022-01-28 12:02:11 -08:00
vanillagorillaa 06541abddc
Honda: Merge Passport interface (#23651) 2022-01-27 20:16:13 -08:00
Dean Lee a901104a96
log error on avcodec_receive_frame (#23649) 2022-01-27 19:35:18 -08:00
Adeeb Shihadeh 9dca040ed9
boardd: get health struct from panda (#23648) 2022-01-27 19:22:44 -08:00
Adeeb Shihadeh 43c6ea8e73
boardd: add blocked msg cnt (#23647)
* boardd: add blocked msg cnt

* bump panda

* bump panda
2022-01-27 17:48:24 -08:00
Shane Smiskol 3645186d7c
CANParser: remove default values (#23642)
* draft

* remove rest

* bump

* update radar interfaces

* do rest and formatting

* bump

* fix mising check

* try this

* Revert "try this"

This reverts commit 0d26d9a072.

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-27 17:06:18 -08:00
Adeeb Shihadeh fe5056ffd8 Toyota: merge IS and RC params 2022-01-27 16:20:57 -08:00
【TIM】 eaebf01e58
Toyota: Prius V fixups (#23640)
* Fine tune Prius-V control parameter

* Adjust DBC file and enable SNG support

*Adjust the DBC file to CT200H, the parameters of this model are closer to PRIUS V
*Add PRIUS V to NO_STOP_TIMER_CAR list to enable SNG support

* Update interface.py

remove spaces

* Update values.py

Mod DBC to toyota_rav4_2017_pt_generated

* Update values.py

The file has been updated to resolve the conflict and can be directly merged

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-27 15:33:18 -08:00
Dean Lee 3ca8e3653b
replay: ncurses GUI (#23608)
* initial version

* print all message's in ncurses window

* show download progress bar

* move all to class ConsoleUI

* timeline

* improve timeline&stats

* fix logMessage

* add warning indicator

* continue

* cleanup

* cast type to int

* simplify seekToFlag

* more

* <=

* handle enter

* add box to logging window

* fix multiple threads problem

* fix concurrency issues

* draw indicator

* many improvements

* more

* fix multipe threads logging

* stop replay before exit

* use lambda instead of std::bind

* cleanup

* small cleanup

* use carFingerPrint

* don't emit signal in replay::stream

* merge car_events into timeline

* cleanup DonloadStats

* cleanup

* rename carname to carFingerprint

* improve alert

* add comments

* add help functions

templete function

* handle term resize

* display replaying status

* rename to INSTANT

* helper function pauseReplay

* more

* cleanup

use rDebug

* no template

* less colors

* remove function mv_add_str

* use BORDER_SIZE

* tune colors

* add spaces

* apply reviews

use /
2022-01-27 13:17:41 -08:00
Adeeb Shihadeh 036c1799d4 Toyota: DBC rename 2022-01-27 11:44:57 -08:00
Adeeb Shihadeh 4c765acb6e Toyota: use common DBC for IS and RC 2022-01-27 10:27:28 -08:00
Adeeb Shihadeh 9a211ee14b Toyota: remove Prius DBC 2022-01-27 08:59:16 -08:00
Adeeb Shihadeh 2f01bf3b6f Toyota: unify TNGA-K platform DBCs 2022-01-27 08:52:24 -08:00
Adeeb Shihadeh b321d65cac Toyota: CT200H DBC merged into Rav4 2022-01-27 08:43:40 -08:00
Robbe Derks 6366d1303f
Statlog in C (#23596)
* statlog in C

* fix swaglog and the test

* add missing files

* fix context initialization todo

* speed up test
2022-01-27 17:14:38 +01:00
Willem Melching ee71fd2fcc
clip steer saturation counter to steerLimitTimer (#23638)
* clip steer saturation counter to steerLimitTimer

* update ref
2022-01-27 12:31:36 +01:00
Willem Melching 6a9a573296
tesla: fix actuatorsOutput logging (#23637) 2022-01-27 11:46:35 +01:00
Adeeb Shihadeh 2240b802be
Toyota: Prius V 2017 support (#23636)
* Add Toyota Prius Alpha support

* Fix opendbc link

* Update interface.py

* v

* revert opendbc

Co-authored-by: CT921 <tim.chen242@gmail.com>
Co-authored-by: 【TIM】 <90225659+CT921@users.noreply.github.com>
2022-01-26 22:57:26 -08:00
Adeeb Shihadeh 33c8468e02 Toyota: rav4 DBC is same as corolla now 2022-01-26 22:13:51 -08:00
Shane Smiskol 3c62d9da09
Toyota: Move EPS torque factor to openpilot (#23635)
* use scaling

* or we can do it this way

* define default in one place

* just specify

* Revert "just specify"

This reverts commit 40b7b28f84.
2022-01-26 22:08:04 -08:00
George Hotz cb6a68373b
Prepare for using the ISP (#23621)
* parse out isp packet with structs

* dsp mode

* support only driver / comments for yuv

* minor touchups

* DEBUG_FRAMES

Co-authored-by: Comma Device <device@comma.ai>
2022-01-26 19:25:05 -08:00
Adeeb Shihadeh 013cccf6a8 update refs 2022-01-26 17:46:12 -08:00
Shane Smiskol 14133069e1
Toyota: use common gear packet signal (#23634)
* Toyota: remove nodsu hybrid dbc

* bump

* no longer exists
2022-01-26 17:10:32 -08:00
Igor Biletskyy 703efb9275
Panda: check libusb_open status (#23622) 2022-01-26 11:50:05 -08:00
Adeeb Shihadeh 8b5b0ae341
sentry improvements (#23627)
* sentry: filter out unregistered devices and PC

* add daemon name
2022-01-26 11:44:10 -08:00
Willem Melching cf9eee4272
INDI: replace internal rate limit by actuatorsOutput (#23243)
* INDI: replace internal rate limit by actuatorsOutput

* update ref
2022-01-26 17:45:05 +01:00
Willem Melching 5ac32705d0
compare_logs: catch typeError (#23632) 2022-01-26 17:13:32 +01:00
Shane Smiskol 9de8f8cd8c
base LatControl class (#21967)
* base LatControl class, move sat check out of pid.py

clean up

clean up

* fix

* global variable for min control speed

* nicer name

* unify latcontrol class init arguments

* add to release files

* saturated if close to limit

* move angle mode saturation checks into class

* check_saturation function takes in current saturated status

undo

* apply latcontrol_angle's active checking to all controllers

* clean up

* move those back

* make abstract baseclass

* add test for saturation

* keep clip

* update ref

* fix static analysis

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-26 17:10:41 +01:00
Ryan 1d4191956b
athena: unsuccessful upload handler requests. (#23620)
* Retry unsuccessful upload handler requests.

* test both cases

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-26 15:23:59 +01:00
Shane Smiskol 173c3ae3a9
Toyota: add fw for 2020 Lexus UX250h (#23626) 2022-01-25 22:20:03 -08:00
Adeeb Shihadeh 818d4a0a96 manager: don't start uploader with dongle id 2022-01-25 15:42:38 -08:00
Shane Smiskol 6be70a063d
LateralPlanner: Move lane change logic to another class (#23476)
* should work

* Revert "should work"

This reverts commit dabc2ea17a072a6c835e4bd1c75a2c1e2d10623d.

* move lane change logic to DesireHelper class

* clean up desires

clean up desires

* comments

* Revert "clean up desires"

This reverts commit 7301c921e305fcbd4746b19040631d935d50dfd9.

* Update selfdrive/controls/lib/desire_helper.py

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

* add to files_common

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-25 13:40:03 +01:00
Shane Smiskol 31d147dca2
controlsd: verify unsafe mode consistency (#23563)
* add unsafe mode check to controlsd

bump submodules

forgot to add to health_t struct

bump

ahh forgot to set it!

bump

bump

clean up

clean up

bump

* fix ordering

* move to end

* unsigned

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-25 12:09:13 +01:00
Kevin Robert Keegan 347583d423
Use Wide Road Camera as Light Sensor for Screen Brightness (#23610)
Using the narrow camera as a light sensor meant that the
reflection of our own headlights, tail lights, and head lights
of opposing vehicles dominated the sensor value at night
even though the broader overall scene is very dark.

This has very little effect during daylight hours.  The change
affects nightime driving the most, resulting in a dimmer
screen when it is dark.

I think this makes more sense as the wide angle camera's
field of view is much closer to the human eye's field of
view than the narrow road camera.
2022-01-25 11:13:59 +01:00
Adeeb Shihadeh e50efd7671 controlsd: remove redundant condition 2022-01-24 21:28:30 -08:00
vanillagorillaa 4f827e2e9e
Honda: Merge Pilot_2019 into Pilot (#23590)
* merge pilot

* these weren't on the 2019 pilot

* add non essential ECUs
2022-01-24 21:19:40 -08:00
Adeeb Shihadeh 652ef27a72 loggerd: less error logging 2022-01-24 21:15:14 -08:00
Adeeb Shihadeh cdd3598146
GM: use generated DBC (#23615)
* Rename GM PT dbc to generated

* bump opendbc

Co-authored-by: Jason Shuler <jshuler@gmail.com>
2022-01-24 20:51:57 -08:00
Adeeb Shihadeh b18c4eeb82
Toyota: move gas pedal definitions into common DBC (#23582)
* Toyota: move gas pedal definitions into common DBC

* add rest of cars

* auto detection

* cleanup

* update refs
2022-01-24 15:43:10 -08:00
Adeeb Shihadeh 3e9cb7fa12
remove community features toggle (#23214)
* remove community features toggle

* bump cereal

* little more

* update refs
2022-01-24 14:49:47 -08:00
Dean Lee a4fefdcb94
RawLogger: downscale qcamera before encoding (#23607) 2022-01-24 13:41:44 -08:00
Willem Melching 1a96886dd1 thermald: increase kmsg loglevel to end up in console-ramoops-0 2022-01-24 13:19:48 +01:00
Willem Melching c51561c2ca process replay: disable alive checks for cpp replay 2022-01-24 12:06:43 +01:00
Dean Lee 1e906366f8
ui/setup: check http status code (#23597)
* check resp code

* always cleanup curl and close file

* curl_global_init

* space

* cleaner

* Revert "curl_global_init"

This reverts commit c3f1a7cee8.
2022-01-22 13:49:03 -08:00
Jakob Murko 2e6e566a7d
VW MQB: Add FW for 2015 Golf 7 2.0 TDI (#23603) 2022-01-22 13:21:44 -08:00
Kento Tokuhiro 0a5115d775
Toyota: add fwVersion for 2018 CHR (#23604) 2022-01-22 13:20:04 -08:00
Adeeb Shihadeh 3305a6f5b9 profiler setup 2022-01-21 21:59:40 -08:00
Adeeb Shihadeh 1e955b33ac bringing the android to agnos 2022-01-21 21:25:23 -08:00
Dean Lee 61383dcc42
camerad: cleanup main.cc (#23593)
* cleanup main.cc

* fix  ae_gray_test build errors
2022-01-21 16:19:50 -08:00
Dean Lee bca92a95cc
ui: fix lead vertex coordinates (#23550) 2022-01-21 15:14:18 -08:00
Ryan aa9e635311
Add more type hinting (#23595)
* Add more type hinting.

* Revert joystick_alert changes.

* Add typing to statsd.

* Update selfdrive/statsd.py

* Update selfdrive/test/test_fingerprints.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-21 15:11:16 -08:00
Robbe Derks 0f95e605f5
save dongleid as value to limit cardinality (#23594) 2022-01-21 17:10:43 +01:00
Willem Melching d3d10e014a
Ensure controlsd can engage again in process replay (#23556)
* hacks to make process replay engage again

* dont change that

* enable engagement check again

* chmod +x

* first working regen

* proper logMonoTime

* fix video framerate consistency

* mpc is valid again

* proper alive checks

* revert loggerd change

* ensure engaged in regen, fix managerState, peripheralState

* ubloxRaw is unused

* add submaster config for gm

* regen all services we can run without HW

* fix loggerd

* loggerd: matroska without the extension

* update ref
2022-01-21 13:13:34 +01:00
Adeeb Shihadeh 6a9514570c
NEOS 19 (#23586)
* NEOS 19

* prod manifest
2022-01-21 00:12:33 -08:00
Adeeb Shihadeh a4f4d4c2cd androidd: track system_server too 2022-01-20 14:37:15 -08:00
Harald Schafer 920829875f Update refs for PR:#23584) 2022-01-20 14:24:36 -08:00
Jason Young d898cccaa7
VW MQB: Update steering angle and actuator delay (#23584) 2022-01-20 14:00:05 -08:00
Adeeb Shihadeh fc8d402713 androidd cloudlogs are errors 2022-01-19 23:48:02 -08:00
Adeeb Shihadeh 5b2d2f31ef Honda: use Pilot DBC for Ridgeline 2022-01-19 22:11:21 -08:00
cydia2020 f85a75cf54
Toyota: LKAS_HUD expansion (#23573)
* bump opendbc

* add lkas_hud messages

* Remove duplicate

* bump opendbc

* fix comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 17:05:24 -08:00
Dean Lee 22d43211d9
loggerd: make test_loggerd.py run on PC (#23574)
* run on PC

* set frameId

* remove todo

* rawlogger: remove suffix mkv

* remove unused import PC

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 13:55:02 -08:00
cydia2020 783db0cf33
Toyota: unify Sienna, Avalon, Highlander Lexus NX, Lexus RX into single DBC (#23577)
* remove sienna dbc

same as avalon

* rx and nx are also the same as avalon

* highlander can also use avalon's dbc

* bump opendbc

* rename avalon to tnga-k

* pt

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 11:46:07 -08:00
cydia2020 f32f53540e
Toyota: use single DBC for Lexus NXH, Lexus RXH, HighlanderH, Rav4H (#23576)
* use rav4h dbc for nx

also bump opendbc

* remove from release file

* same with highlander

* bump opendbc

* rav4h -> tngakh

also rxh

* bump opendbc

* bump again

* remove from release files

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 11:06:34 -08:00
Adeeb Shihadeh 7a0e9d5b4e fix suffix 2022-01-19 10:55:41 -08:00
Adeeb Shihadeh 14e45df1c3 these dbcs are the same 2022-01-19 10:47:13 -08:00
Adeeb Shihadeh 22d6c054e3 bump opendbc 2022-01-18 19:34:40 -08:00
Dean Lee d3505fb8c7
dmonitoringd: remove duplicate call on update when driver engaged (#23539) 2022-01-18 18:27:21 -08:00
Michael Honan f239a50f4e
FW for Toyota Highlander 2021 Hybrid (#23571) 2022-01-18 17:55:17 -08:00
Willem Melching d31ff2cf49
dmonitoringd: make real-time process (#23554)
* dmonitoringd: make real-time process

* Update selfdrive/monitoring/dmonitoringd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-18 13:39:11 -08:00
Erich Moraga acb17e2e01
Add missing ALPHARD_TSS2 f/w (#23567) 2022-01-18 13:37:21 -08:00
Jonathan Frey 0681474840
work on acados lateral MPC (#23558)
* lat_mpc: make v_ego, rotation_radius parameters instead of states

* lat_mpc: remove rotation_radius argument, since it is part of the parameters

* lat_mpc: use qp_solver_cond_N = 1

slightly faster and in line with case study in Fig. 2/ 3 in Frison2016 - https://cdn.syscop.de/publications/Frison2016.pdf
An Efficient Implementation of Partial Condensing for Nonlinear Model Predictive Control

* adapt test_lateral_mpc to formulation with parameters

* lat_mpc: set parameters in reset() and copy values

* acados_ocp_solver_pyx: make options_set useable

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-01-18 09:49:48 -08:00
Willem Melching 5b385c34a4 thermald refactor seems to have lower CPU usage 2022-01-18 16:17:54 +01:00
Dean Lee 498d54be9c
boardd: move main() to main.cc for test cases (#23564)
* move main() to main.cc

* move includes back
2022-01-18 14:59:42 +01:00
Willem Melching f76328b426
Log MPC solver time (#23566)
* add solve time to plan output

* add to process replay ignore list

* print in CI
2022-01-18 14:51:03 +01:00
Dean Lee e6a73e400c
camerad: return 0 from main() (#23565) 2022-01-18 14:21:30 +01:00
Erich Moraga 14bb145532
Add missing COROLLA_TSS2 ESP f/w (#23562)
`@Dom#5007`  2022 Corolla ICE  DongleID/route 2517a9ee480ef37f|2022-01-15--09-20-12
2022-01-18 10:42:00 +01:00
Adeeb Shihadeh 59894a6666
clear no entry alerts if engaged (#23559)
* clear no entry alerts if engaged

* fix test
2022-01-17 13:57:53 -08:00
Adeeb Shihadeh 3f89834e4e master and forks aren't dirty 2022-01-17 13:51:30 -08:00
Dean Lee f7932f874d
ui/networking: async dbus calls (#23535)
* async dbus calls

* simplify get ip address

* Revert "simplify get ip address"

This reverts commit 7ade7ec57d.

* cleanup getConnectionPath()

* remove unused functions

* cleanup

* rename to getIp4Address

* clenup class definition
2022-01-17 12:12:58 -08:00
Erich Moraga e38564b154
Add missing CAMRY_TSS2 engine & fwdCamera f/w (#23555)
`@Koda(Sleepy)#4682`  2021 Camry LE (ICE)  DongleID/route  3653e5d0dbd0d7ed|2022-01-16--21-15-20
2022-01-17 18:07:52 +01:00
Dean Lee 5cd103c3d4
controlsd: remove extra space (#23553) 2022-01-17 13:51:44 +01:00
Willem Melching 850a2307d6
thermald: move dbus and other slow calls into thread (#23525)
* split thermald in threads

* small cleanup

* type

* already done that

* add none check

* fix sleep

* shut down on exception
2022-01-17 12:06:37 +01:00
Willem Melching fe0f9aaa4f test_logcatd_android.py: catch unicode decode error 2022-01-17 11:33:26 +01:00
Dean Lee 1221d8887c
swaglog: Fix random test failure (#23546)
* print info

* retry zmq_recv on errors

* get line no from __LINE__

* cleanup

* renmae msg to thread_id
2022-01-16 09:36:52 -08:00
Cameron Clough a6e8d31602
Toyota: fix typo (#23548) 2022-01-16 09:35:53 -08:00
Adeeb Shihadeh cf89ded041 sentry: rotate keys 2022-01-15 10:13:11 -08:00
Adeeb Shihadeh 345c48abbb sentry: rename release environment to release 2022-01-15 09:15:46 -08:00
Dean Lee 6bd0e4b087
ui: fix invalid line vertices on startup (#23541) 2022-01-15 09:09:24 -08:00
Adeeb Shihadeh b63bc89bc9
sentry fixups (#23249)
* set env

* do init in same place

* no sentry for forks

* start session

* start session

* remove that

* val
2022-01-14 15:25:16 -08:00
George Hotz 7e83d9a618
camerad: Out of bounds memory write (#23534)
* parens were totally wrong

* cleaner
2022-01-14 15:22:28 -08:00
Adeeb Shihadeh c6b892fe58 shutdownd is non essential 2022-01-14 11:59:04 -08:00
Dean Lee 43a2674ffc
ui/networking: simplify dbus calls with a helper function (#23531)
* simplify d-bus calls

* move template function to source file
2022-01-14 11:46:45 -08:00
Adeeb Shihadeh 308a6f1730
manager: log exit reason (#23532) 2022-01-14 08:55:51 -08:00
Dean Lee 39d904d2aa
ui/networking: combine connect functions into one (#23522) 2022-01-14 08:42:29 -08:00
Dean Lee 75be1223f8
ui/WifiManager: inherit from QObject instead of QWidget (#23523) 2022-01-14 08:40:39 -08:00
Dean Lee 785180d234
MainWindow::eventFilter: add static keyword for evts (#23521) 2022-01-14 15:28:38 +01:00
Willem Melching b75e410779
boardd: panda_state_thread run closer to 2 Hz (#23529)
* boardd: panda_state_thread run closer to 2Hz

* make explicit
2022-01-14 15:08:39 +01:00
Willem Melching 53ca036006
thermald: let manager handle shutdown (#23528)
* thermald: let manager handle shutdown

* add warning so its actually sent
2022-01-14 14:13:32 +01:00
Willem Melching ed23177898
thermald: remove panda disconnect logic (#23526)
* thermald: remove panda disconnect logic

* keep that
2022-01-14 14:13:18 +01:00
Willem Melching e72eb1d472
thermald: remove brightness setting on ui crash (#23527) 2022-01-14 14:06:21 +01:00
Willem Melching ef3a549fac
thermald: remove modem version log (#23524) 2022-01-14 12:20:12 +01:00
Adeeb Shihadeh 610b99fd68
Log android system shutdown to param (#23520)
* Log android system shutdown to param

* comment

Co-authored-by: Comma Device <device@comma.ai>
2022-01-13 22:40:35 -08:00
Adeeb Shihadeh 8c53adf4ab
swaglog: add daemon name to context (#23518)
* cleanup first

* add daemon name

* add test

* fix

* daemon name
2022-01-13 20:23:08 -08:00
Dean Lee feae37541f
swaglog.cc: add test case. fixed the ctx of the first message is empty (#23226)
* test case

* add to selfdrive_tests.yaml

* fix ctx_j is empty

* check return value too
2022-01-13 20:03:07 -08:00
Dean Lee fd042a5924
controlsd: cleanup parsing android log (#23421)
* cleanup parse android log

* global CSID_MAP

* use generator express

* cleanup

* no walrus

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-13 19:43:22 -08:00
cydia2020 9f4fd73b52
Toyota: DBC signal renames (#23452)
* rename signals

bump opendbc

* bump opendbc

* bump opendbc

* bump opendbc

* bump opendbc

* bump opendbc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-13 19:37:39 -08:00
Dean Lee 6dbae9593e
UI: reset interactivity timeout on PC (#23508)
* reset interactive timeout on pc

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-13 19:20:22 -08:00
Jason Young 57156c4482
Chrysler: remove standstill exception for gas disengage (#23515)
* Chrysler: remove standstill exception for gas disengage

* remove test exception

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-13 16:06:56 -08:00
Adeeb Shihadeh 2c94f15584
linter: don't allow implicitly concatenated strings (#23513)
* linter: don't allow implicitly concatenated strings

* fix hyundai
2022-01-13 14:19:38 -08:00
Drew Hintz 6d5dce2ed5
Subaru: fix missing commas in fingerprints (#23512) 2022-01-13 14:07:00 -08:00
Willem Melching 15380139ef
pandad: only reset pandas on first run (#23511) 2022-01-13 15:52:59 +01:00
Willem Melching 6d16b0c02b can_printer.py: default no ascii 2022-01-13 15:50:50 +01:00
jonjander fcfea4cadc
Kia Niro EV - replace \000 by \x00 (#23509)
Co-authored-by: Jon Jander <jon.jander@ptj.se>
2022-01-13 15:14:28 +01:00
Dean Lee 48b6dfa15d
controlsd: check self.enabled out of the any() (#23507) 2022-01-13 11:53:04 +01:00
Willem Melching 9e1428fd84
Do not disable loggerd when below 5% space (#23440) 2022-01-13 10:31:37 +01:00
Vivek Aithal f808b174af
use roll std from locationd (#23449)
* use roll std from locationd

* cleaner

* add todo

* new ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-01-12 21:37:09 -08:00
Dean Lee e5f9af4a6e
calibrationd: Don't repeatedly call get_valid_idxs() (#23473)
* optimize

* rpy_init should be np.array

* rename to rpys
2022-01-12 15:34:17 -08:00
Dean Lee de572c3755
calibrationd: fix indentation (#23502) 2022-01-12 14:40:02 -08:00
Adeeb Shihadeh 9941c99f7c process replay: handle inf and nan in absolute tolerance 2022-01-12 13:34:46 -08:00
Shane Smiskol eb9f35946d
Toyota: Support Avalon 2022 (TSS2.5) (#23381)
* Add AVALON_TSS2

* Is TSS2 now!

* Add Avalon to CARS.md

* add to test_routes

add to test_routes
2022-01-12 09:41:07 -08:00
Jason Young b1a226b28b
VW MQB: Add FW for 2022 Volkswagen Atlas (#23501) 2022-01-12 17:23:53 +01:00