Commit Graph

7554 Commits

Author SHA1 Message Date
Cameron Clough
2a0ce3e8b8 direct model feedback issues to GitHub discussions (#25953)
* add links to give model feedback in github discussions

* use correct link
2022-10-03 13:10:35 -07:00
Shane Smiskol
6393d29b04 pre-commit: test translations (#25695)
* add test translations to precommit

* fix test translations pre-commit hook

* revert

* fix that

* add to release files

add to release files

* fix

* don't run test on stripped dir

* fix
2022-10-03 12:26:12 -07:00
Jason Young
50b8fc19b6 VW PQ: Use correct brake signal (#25952) 2022-10-03 11:48:56 -07:00
Dean Lee
379b7cf8b6 proclogd: fix wrong type for rss (#25923)
rss is long
2022-10-03 10:16:38 -07:00
Adeeb Shihadeh
cd40652e64 updated: don't show failed alert with no internet (#25948) 2022-10-02 16:13:28 -07:00
Cameron Clough
f611960391 networking: add unmetered cellular toggle (#25902)
* add metered toggle to UI

* add GsmMetered param

* add NMMetered constants

* change LTE connection settings: connection.metered

* change to GsmUnmetered override

* update translations

* debug ui

* remove comment

* Revert "debug ui"

This reverts commit 2ad9e65ea229b814782be9f30cc7664125d7e908.

* 'Force Unmetered Cellular' toggle

* update translations

* remove description

* update translations

* change unmetered to metered
2022-10-01 14:47:06 -07:00
Shane Smiskol
68cc53a085 VIN query: switch to functional address (#25933)
* stash

* go in defined order

* \n feels cleaner
2022-09-30 20:29:54 -07:00
Shane Smiskol
86f0632afd Use tx_addr/sub_addr from query 2022-09-30 17:44:48 -07:00
Shane Smiskol
4d7f4b4c9d IsoTpParallelQuery: don't return rx_addr (#25934)
* revert isotpparallelquery returning rx addr for functional special case

* we don't really use the tx addr (and soon won't make sense with fun querying)
2022-09-30 16:01:22 -07:00
Shane Smiskol
4bd146ee7a Longitudinal planner: clip a_desired to cruise limits (#25928)
* Clip a_desired to cruise limits

* Update selfdrive/controls/lib/longitudinal_planner.py

* fix

* update refs

* explicit
2022-09-30 15:43:04 -07:00
Shane Smiskol
bea960675f IsoTpParallelQuery: process all functional responses (#25939)
* stash

* process all functional addrs (stash)

* clean up

* rm

* simplify

* let user pass in tx for rx addrs

* revert panda

* simplify

* comment

order

* need to go by rx_addr now

* Revert "need to go by rx_addr now"

This reverts commit 1197ecfbc5b9e5df20b523a0623f644cd8cae1ef.

* stash

* should also work

* this seems pretty clean

* not used

* properly use

* comment

* some fixes

* some fixes

* send consecutive frames on physical addrs

* bump panda

* looks better

* setup_only

* Revert VIN changes

* rev

* bump panda to master

* Update selfdrive/car/isotp_parallel_query.py
2022-09-30 15:15:13 -07:00
Shane Smiskol
75735675bd process replay: rename second HYUNDAI entry 2022-09-30 14:49:27 -07:00
Adeeb Shihadeh
80c40048cb sensord: test fixups (#25935)
* sensord: test fixups

* fix linter

* check freq

* fp seems reliable

* clean that up

* update refs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Bruce Wayne <batman@z840-provisioning.internal>
2022-09-30 12:25:11 -07:00
Adeeb Shihadeh
a75e85045e build_devel: only fetch target branches (#25941) 2022-09-30 12:24:56 -07:00
Adeeb Shihadeh
5d33199905 sim: fix sensor freq and timestamps (#25937)
* sim: fix sensor freq and timestamps

* 100hz

* fix that too
2022-09-29 22:36:09 -07:00
Shane Smiskol
9e2cca23cf Revert "IsoTpParallelQuery: process all functional responses (#25930)"
This reverts commit c5514f3440.
2022-09-29 21:15:34 -07:00
Shane Smiskol
c5514f3440 IsoTpParallelQuery: process all functional responses (#25930)
* Revert "VIN: query physical addresses (#25122)"

This reverts commit 0697ca2239.

* try sending tester present

* do CAN fingerprinting first

* looks like we can get rid of this!

* remove import

* no cache for testing

* revert

* revert

* move function to fw_versions

* Exception

* Revert fp order, sleep to let PubSocket connect

* comment

comment

* space

* Update selfdrive/car/car_helpers.py

* at 0.06 is where it becomes more consistent

* treat functional addrs like physical addrs (process all responses)

* fixes and debugging

* fix

* revert other changes

* Update selfdrive/car/isotp_parallel_query.py

* caps
2022-09-29 19:07:28 -07:00
Vivek Aithal
4bc175bb9c Live torque fix (#25868)
* fix np empty array quirk

* reset to offline values if saved values were not valid live

* edit cloudlog text
2022-09-29 16:36:43 -07:00
Kurt Nistelberger
29d3ed2ce6 Sensor events splitup (#25714)
* PoC of reading sensors via interrupts instead of polling

* add Gyro and draft for magn

* add more functionality to gpio.cc

* change LSM gyro to interrupt

* resolve rebase conflict

* update BMX accel interrupt impl

* add interrupt collector thread to fetch in parallel

* change get_event interface to return true on successful read

* update BMX gyro interrupt impl

* update gpio.h/.cc according to comments

* address comments, rename Edgetype enum

* Edgetype to EdgeType

* update sensor interrupt interface

* add error handling, and read fd on trigger

* avoid sending empty messages

* fix build

* use gpiochip

* less diff

* gpiochip on both edges, but skip falling edge if rising edge is detected

* init last_ts with 0

* update sensord testcases

* update sensord testsweet

* test for pipeline

* readd with_process

* add null check

* move tests update to seperate PR

* sensord: improve test coverage (#25683)

* update sensord-interrupt testsweet

* address review comments

* inc stddev threshold

* fix format string

* add version 0 check again

* relax strictness after c3 with bmx tests

* relax strictness after tests

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>

* address PR comments

* fix typo

* remove 4ms limit, and skip first 0.5sec of data

* revert disable_interuppt change to destructor

* fix and remove timing skip

* make gpiochip generic

* sensord port

* change from sensorEvents to separated events

* fix gyro usage

* add splitted sensor tests

* modify debug script sensor_data_to_hist.py

* refactor get_event interface to remove sensorEvent message type

* update locationd to non sensorEvent usage

* tmp commit

* fix replay

* fix accelerometer type

* fix sensor to hist debug script

* update sensord tests to split events

* remove rebase artifacts

* port test_sensord.py

* small clean up

* change cereal to sensorEvents-splitup branch

* upate sensorEvents in regen

* fix route generation for splitted sensor events

* regen cleanUp from sensorEvents change

* .

* remove light and temp from locationd

* add generic init delay per sensor

* .

* update routes

* move bmx gyro/accel to its own channel

* adopt sensor tests to bmx channel

* remove rebase artifacts

* fix sensord test

* handle bmx not present

* add bmx sockets to regen

* .

* .

* code cleanUp

* .

* address PR comments

* address PR comments

* address PR comments

* lsm clean up

* readd sensorEvents

* rever regen.py

* .

* update replay refs

* move channels

* fix artifact

* bump cereal

* update refs

* fix timing issue

Co-authored-by: Bruce Wayne <batman@workstation-eu-intern2.eu.local>
Co-authored-by: gast04 <kurt.nistelberger@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:31:54 -07:00
Kurt Nistelberger
784246cf54 Gps test Setup, PoC (#25919)
* first ignore

* init gps test

* make LimeGPS git clone

* revert ignore

* .

* remove prebuilt bins

* Update README.md

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:24:19 -07:00
Lee Jong Mun
7df0e3efcf remove blank whitespace (#25921) 2022-09-29 13:52:41 -07:00
Adeeb Shihadeh
74f741d0be agnos updater: set timeout on download (#25927) 2022-09-29 13:18:01 -07:00
Dean Lee
badecfd060 boardd: remove global variable pigeon_active (#25926) 2022-09-29 11:30:12 -07:00
Adeeb Shihadeh
391780551a UI: remove imu tap detection (#25924) 2022-09-29 11:02:27 -07:00
Adeeb Shihadeh
03977a8783 Revert "update replay refs"
This reverts commit 683096e309.
2022-09-28 21:42:58 -07:00
Kurt Nistelberger
683096e309 update replay refs 2022-09-28 21:38:31 -07:00
Adeeb Shihadeh
51e296733d test_sensord: get 10s of events 2022-09-28 20:19:47 -07:00
Adeeb Shihadeh
47de20ffb5 update release notes 2022-09-28 18:56:23 -07:00
Dean Lee
2e5b50c2d7 test_proclog: add cmdline check in buildProcLogerMessage (#25891) 2022-09-28 17:35:55 -07:00
Adeeb Shihadeh
4e32387ce5 updated: clean untracked nested git repos (#25917)
* updated: clean untracked nested git repos

* ff all the cleans
2022-09-28 16:33:42 -07:00
Adeeb Shihadeh
17ed8dd0e9 updated: configure branch upstream (#25916) 2022-09-28 16:08:32 -07:00
Adeeb Shihadeh
2384a9ee67 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
2022-09-28 15:45:15 -07:00
Shane Smiskol
42210a9910 multilang: nav instructions (#25102)
* Try Chinese nav

* try this

* not sure what does what

* read language setting in navd

* probably not used

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-09-28 14:44:05 -07:00
Shane Smiskol
685533a3a1 Subaru: Add missing FW for 2021 Legacy (#25914)
Add missing 2021 Legacy FW from 9936b4bbf75a5fe4|2022-09-26--20-29-47
2022-09-28 14:06:34 -07:00
Shane Smiskol
0ec8546042 vin and ecu_addrs: add more argparse options (#25913)
* add bus options

* use debug

* add timeout and try

* fix

* don't need keywords

* log this too

* fix
2022-09-28 14:01:17 -07:00
HaraldSchafer
1007df874f Minor ACC fixes (#25911)
* Change cruise accel limits

* Long tuning script looks good

* Cap cruise slowdown aggression in e2e mode

* Revert atau change

* Cleanup

* Update ref

* fix ref
2022-09-28 13:27:07 -07:00
Cameron Clough
b944a22b9b exclude opendbc and xx from mypy pre-commit 2022-09-27 22:55:05 -07:00
Adeeb Shihadeh
1c6dc12a04 camerad: improved frame sync and skip tests (#25904)
* camerad: cleanup frame sync and skip tests

* fix linter

Co-authored-by: Comma Device <device@comma.ai>
2022-09-27 21:32:21 -07:00
Cameron Clough
4e310b807f configure mypy outside of pre-commit environment (#25892)
* add mypy config matching precommit

* use local mypy, add files to config

* excludes too

* fix config

* pylint is sad now... did it get updated?

* fix typing hints

* ignore

* this should be a regexp

* mypy doesn't like Deque despite inheriting MutableSequence

* more excludes

* Revert "pylint is sad now... did it get updated?"

This reverts commit 250c632f18ecb3d33ffb931e15425f9314a0964b.
2022-09-27 20:43:05 -07:00
Kurt Nistelberger
96ed5aa581 Sensor events regen (#25903) 2022-09-27 20:33:45 -07:00
Shane Smiskol
ba1c3cda41 Log more FW/VIN errors in qlogs (#25901)
* log VIN query errors

* Update fw_versions.py

* use exception

* post-commit
2022-09-27 20:17:42 -07:00
Shane Smiskol
12998520b9 bump panda 2022-09-27 18:56:25 -07:00
Shane Smiskol
870c5f383d IsoTpParallelQuery: extend timeout for each ISO-TP frame (#25897)
* raise timeouts

* extend timeout for each message/frame (not multi-frame full response)

* bump panda

* 100 ms timeout between frames (max I've seen is 20, should be good)

* bump panda

* remove unused

* Add tester present to HKG queries (temp)

* send tester present to all ecus first

* vin and fw_versions.py sleep, should figure out why sendcan drops packets

* None is wildcard (some ecus respond with negative code, that's fine)

* typing

* try bus 0

* revert brand-specific changes

* Update selfdrive/car/isotp_parallel_query.py
2022-09-27 18:13:13 -07:00
Adeeb Shihadeh
2a30da6698 sensor tests: bump light sensor threshold 2022-09-27 14:23:32 -07:00
Cameron Clough
89768376c0 docs: remove redundant keyword args (#25899)
remove unnecessary keyword args, unnecessary package
2022-09-27 14:00:08 -07:00
Shane Smiskol
26517a0ef9 replay: set CarParamsPersistent 2022-09-26 23:50:49 -07:00
Shane Smiskol
29b9a07393 Log tx addr for IsoTpMessage exceptions 2022-09-26 23:22:50 -07:00
Adeeb Shihadeh
f18773acbe compressed_vipc: add main() 2022-09-26 22:27:30 -07:00
Adeeb Shihadeh
d2869f4779 updated: check overlay mounted 2022-09-26 16:57:21 -07:00
Lee Jong Mun
a124fa22e4 Multilang: kor translation update (#25893) 2022-09-26 12:01:24 -07:00