Commit Graph

1313 Commits

Author SHA1 Message Date
Maxime Desroches 7be2b51229 simple fuzzing test for all processes (#28584)
* working test

* classmethod

* review

* add to ci
old-commit-hash: bac193bdd518a260bfbbdb4893520c4263ab2be6
2023-06-20 10:57:02 -07:00
Mitchell Goff 77b5e197aa Enable nav features in modeld (#28448)
* Enable nav features in modeld

* Enable mapsd/navmodeld

* Updated model_replay_ref_commit and added mapsd/navmodeld to test_onroad

* fixed process name

* always publish from mapsd
old-commit-hash: aadd9ae269e682b6893557a89a02a7ae357206ee
2023-06-16 21:27:35 -07:00
Mitchell Goff 429a638740 New map model: 917a2539-5e7a-4374-878a-9b356f0f1922/500 (#28579)
old-commit-hash: a9cb25501783bcf2a1e1d7169874481aac897358
2023-06-16 19:31:57 -07:00
Yassine 2fe79435a2 update model replay ref commit
old-commit-hash: fc61209f748bc4fb8f16f537b2adbf740ecfd1ed
2023-06-16 15:04:06 -07:00
Maxime Desroches 6355215f81 test: car interface fuzzy testing + generating capnp structs (#28530)
* random car control

* format

* struct generation

* math

* staying real

* really staying real

* move

* split this

* format

* Revert "format"

This reverts commit a70a73952ee3833c4ae839d7b2729ee2a1e1a85b.

* Revert "split this"

This reverts commit ae96be63cbfbee230101e69a0f84c874f321fafa.

* space
old-commit-hash: 3fc104fb6d9db5f4853b61c4c525b581e0caad72
2023-06-15 17:01:13 -07:00
Harald Schäfer a0628ce816 Disable internet in laikad.py, even in CI (#28535)
* Limit OPENBLAS to 1 thread in manager

* Restrict openblas threads when running openpilot

* print in CI

* Disable internet for laika, even in CI

* update ref
old-commit-hash: 155cab9ec4f75da43cf2f89c51651bf74d11b021
2023-06-13 23:39:11 -07:00
Kacper Rączy 5400564d71 regen: remove support for fake extra vision client (#28520)
* Remove extra client from camera replay

* Fix another device type check
old-commit-hash: 15fcd0d9d4f579265ac8c19c5fd5960c29c9074b
2023-06-13 16:13:20 -07:00
Shane Smiskol a9986892c0 Subaru: use latActive for steer request bit (#28453)
* subaru: use latactive

* Update ref_commit
old-commit-hash: bce19bf187ed9c444bca834f64460f1648abe587
2023-06-12 23:03:04 -07:00
Dean Lee eddc84d104 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
old-commit-hash: 4ae0378f639826df5cc1518574842b61b118f371
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh d2ec950790 test onroad: explicit memory leak check (#28502)
old-commit-hash: 2f117e88b775a0b53a3ae99ae943caaa66f952f2
2023-06-11 14:43:25 -07:00
Kacper Rączy 0541586636 process_replay: deprecated message migration (#28456)
* Move migration code to new file

* Migrate messages in process replay. Remove old code

* Fix old_logtime

* Keep old logtimes on migrated messages

* Update ref commit
old-commit-hash: 838346d8a3a139a160e3cc602ba38d6f3b09a00a
2023-06-09 19:17:50 -07:00
Kacper Rączy d3a3c73b0c process_replay: progress bar support (#28447)
* Add support for tqdm progress bar

* Fix argument name
old-commit-hash: a2e75fdea6465bf41edd46875fb7dd241155aca8
2023-06-07 16:23:40 -07:00
Kacper Rączy 0a3d0b48f7 process_replay: improved support for drained pubs (#28452)
Stop triggering empty update if there're no drained messages in the queue
old-commit-hash: d932aae327fbaaae0c628ecbb571eef85f88f2af
2023-06-07 16:23:02 -07:00
Kacper Rączy 8b4e704df3 process_replay: remove get_car_params_callback when it's not needed (#28451)
* Add assertion for can msgs in get_car_params_callback

* Remove get_car_params_callback from processes that don't need it
old-commit-hash: 02841cede3daed3ac2a8668c9596e0663c889e12
2023-06-07 16:22:48 -07:00
Kacper Rączy 2edd65ad4e process_replay: helpers (#28367)
* process_replay helper

* Refactor

* refactor check_enabled uses

* fix __init__

* noqa in __init__ imports

* Move compare_logs outside of process_replay

* Move save_logs to tools.lib.helpers

* Remove save_log from compare_logs

* fix lint issues
old-commit-hash: 64377a88f94527f56ba8e9cd7c01c97100681455
2023-06-06 10:31:13 -07:00
Harald Schäfer 36aa81cdc3 Driving Personality setting (also changes follow distance) (#24742)
* Skeleton

* Adjustable follow parameter

* fix rebase

* long planner

* typo

* Add ui toggle

* Fix icon

* Improve text

* Better toggle position

* Im a UX engineer now

* add param reader

* CHange jerk to have same crash test performance

* Try reading param

* Unused comment

* translate ui text

* std stoi

* Parametrized buttons

* Empty strings are ints

* Move to generic

* Update translations

* Fix translation diffs

* Release notes

* update refs

* tweaks

* Misc fixes

* No param is standard
old-commit-hash: 205c900742a18ca4662f4535a1a4008624c05995
2023-06-05 22:17:41 -07:00
ZwX1616 f499b6dc64 ci: test sof diffs in onroad test (#27723)
* add diff test

* skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a2e11b2f48c9c77b453f418ebcde3c1454e5bce2
2023-06-02 21:23:32 -07:00
Adeeb Shihadeh 4174ac224d test_onroad: tizi updates (#28379)
* test_onroad: add tizi support

* don't clear params on desk device

* update

* fix mypy

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 80d8dcd22eefb39e44e32127ce3479a50f063e1a
2023-06-02 21:18:51 -07:00
YassineYousfi 4de14c1130 hot coffee model (#28296)
* 1061b1c7-b944-43e3-a940-b56b64d66f54/700

* bump cereal

* bump cereal

* make mypy happy

* write TODO

* read height from written params

* fix certain_if_calib logic and unit tests

* factor moving_avg_with_linear_decay

* remove whitespace

* update model ref commit

* default value for CI

* update process replay ref commit

* update process replay ref commit

* update process replay ref commit

* bump cereal
old-commit-hash: 7925232a349388f3435940c90989f957746d918a
2023-06-02 20:55:13 -07:00
Kacper Rączy 64e8f332dc regen: fix params (#28375)
Fix environment setup for regen
old-commit-hash: 1a0f482d4d3fee441d5473882bf1356a7d02a3e8
2023-06-02 15:39:23 -07:00
Harald Schäfer 4477f8a3a3 Radard: just get relative speed from model (#27493)
* refactor radard

* Revert "refactor radard"

This reverts commit 4b3507ff58e753334969b6ba2c2f6b1b35a200cc.

* May work

* No radar for test

* check length

* no accel for now

* First accel

* Cleaner way

* Re-enable radar

* update proc replay

* This might cause oscillation

* Update ref commit
old-commit-hash: a446c1fa5665086d690a017f453cad3a4c38f00a
2023-06-02 14:38:28 -07:00
Adeeb Shihadeh 7e64d60f4b test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid

* not for all ci
old-commit-hash: cd57b340c1974c52146015b0211bd6ec50388c7e
2023-06-01 10:26:08 -07:00
Mitchell Goff 3dc3978a10 Test navmodel (#28272)
* Test navmodel

* removed comment

* Updated model_replay ref

* read tiles from azure bucket

* updated ref commit
old-commit-hash: 2d34083cd8a507ed06f0139f496930cfe4bde820
2023-05-30 20:33:01 -07:00
Adeeb Shihadeh 00f5fd6079 CI: enable FW query (#28316)
old-commit-hash: 376faefec26f30cf457178cb02cdaff111bdfabe
2023-05-27 15:41:55 -07:00
Kacper Rączy e6855f049f process_replay: fix crash on segments without carParams (#28286)
* Fix crash on segments without carParams

* Add assertion for carParams
old-commit-hash: a075905c4ab04b0e159416ed5068fa2c0069928c
2023-05-27 02:10:10 +02:00
Justin Newberry 8e51174066 Subaru: frequency based messaging (#28066)
* frequency based messaging

* frequency based messaging

* frequency based messaging

* frequency based messaging

* rename better

* use frame in if statement

* syntax

* remove extra space

* put all behind one if statement

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c1909df43716d8e40333b2e587dbc5ac97020b05
2023-05-25 22:33:04 -07:00
Kacper Rączy c63d3378c9 ubloxd: enable satReport parsing (#28037)
* Uncomment satReport parsing. New ublox recv callback logic in process_replay

* Typo

* Update replay ref commit

* Update ref commit again
old-commit-hash: 2bd37acef37f2526c562865eddeaf0b5cd856a05
2023-05-25 07:41:45 +02:00
Kacper Rączy 7ab3f88015 process_replay: use PARAMS_ROOT (#28282)
Use PARAMS_ROOT in process_replay
old-commit-hash: ac0272d0cc1b33893b3fbbea0b9653f68f2e1a82
2023-05-24 13:16:22 -07:00
Adeeb Shihadeh 2aa55ce54a update loggerd and ui cpu
old-commit-hash: 9f3c0a778113313e7d390f672abfe40a0d242b7d
2023-05-24 10:04:53 -07:00
Harald Schäfer 74bb4956ab Calibrationd: allow more pitch angle (#28255)
* Calibrationd: allow more pitch angle

* Update ref_commit
old-commit-hash: 2c65b843a573f260f378489457d32c9061f4a139
2023-05-24 11:41:01 +02:00
Kacper Rączy a48b67f720 process_replay: universal replay mechanism using cereal fake sockets (#28115)
* replay_process_with_fake_sockets implementation

* add missing polled_pubs to configs

* drained_pubs field

* updated cereal

* Remove python/native variations of process replay. Replace with universal one using cereal fake sockets

* Replace old py FakeSocket with DummySocket

* Invalidate and deregister fake sockets after replay is done

* Remove unused import

* Set up new prefix for each replay

* Fixes for radard

* Refactor ReplayContext and ProcessConfig

* Minor fixes

* Reimplement controlsd fingerprinting callback

* time.sleep for sockets to safely reconnect

* Fix fingerprinting for controlsd

* Fixes for regen to work

* Fix replay loop to respect submaster frames

* Fix profiler to use new ProcessConfig fields

* Remove tqdm

* Refactor tests to use new ProcessConfig

* Add FrequencyBasedRcvCallback

* Make tolerance None by default

* Update cereal

* Add get_process_config utility func

* Update cereal. Simplify sync procedure

* Chain context managers

* New sub-socket reconnection procedure

* Fix linter issues

* Revert chaining of context managers

* Init controlsState only when replaying controlsd. Update cereal

* Update cereal

* Update process_replay to use new cereal API

* Update cereal

* Update cereal

* Update cereal

* Simplify radard recv callback

* Update release/files_common
old-commit-hash: e6ac6320ace377657446a1a16ccccd75091f5453
2023-05-23 17:24:16 -07:00
Kacper Rączy dd70d2bdf3 process_replay: drain sockets instead recv_one (#28161)
* Drain the sockets until the next cycle in python process replay

* Add waiting mechanism to native process replay, which mimics the syncing

* Sort logs when comparing them. Drain all the sockets instead of only recv_socks.

* Reverse the retrieval order of FakeSocket

* Change pub order for torqued

* Update ref commit
old-commit-hash: 12b3ffcc49c819bf01ee9c6cadf500d3411aacda
2023-05-23 12:59:09 -07:00
Mitchell Goff 22c5053bbc Nicki Minaj Model (#28218)
* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit
old-commit-hash: 328b5d9d47ef24140b316c375665e1cfd00cef31
2023-05-22 15:11:04 -07:00
Adeeb Shihadeh 1ae2769a72 adjust uploader cpu usage
old-commit-hash: a3d59132283f97faadf0be2ca55264b895e4c232
2023-05-22 10:48:15 -07:00
Adeeb Shihadeh 8de1d811da test onroad: add gpsLocationExternal to gps proc list
old-commit-hash: 1b12f17ee3826b7553b9d907f9d33d58799c4688
2023-05-22 01:10:24 -07:00
Adeeb Shihadeh 532828bd15 remove unused import
old-commit-hash: 9160faf8e554efae57d79517af1cbdf73abcc8fd
2023-05-20 18:11:16 -07:00
Adeeb Shihadeh a3dcc5cd97 time to onroad test (#28242)
* time to onroad test

* run few times

* test on stripped builds

* manager

* cleanup

* split those out

* run first

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 39c5d492bfb4ca1630fed1a4ab6990c171c5e797
2023-05-20 17:59:41 -07:00
Cameron Clough f5563f9049 Ford: longitudinal behind alpha toggle (#28196)
* bump panda

* set safety config/configure experimental longitudinal

* send inactive signals

* bump

* just calculate in function

* already in the variable

* clean that up

* add comment, on ford stock long, prchg seems to be set from the possible future accel

* comment

* this signal didn't have an impact on engaging

* add comment and fix

* worst case while AEB

* and kill ACCDATAs

* this could be dangerous

* need to test this too

* Revert "need to test this too"

This reverts commit 09bba75950fa55d90a82f0109e3138ffe5a1d08c.

* Revert "this could be dangerous"

This reverts commit 323143e84727f1a780bbb600be5f7ceb763516b1.

* Revert "and kill ACCDATAs"

This reverts commit 15f6804bf64d01145daf57a592c2f3fd44ceba27.

* Revert "worst case while AEB"

This reverts commit 85e1aaa8e1af90373c688d1973dbfbb07b1fb8b2.

* bump panda

* Update selfdrive/car/ford/fordcan.py

* move around

* was already here

* rm

* use variable

* update docs

* Update ref_commit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d4dec3ba5e7c68c57c137e15c0a51c903737b8b7
2023-05-18 15:25:24 -07:00
Harald Schäfer f6900301a5 QCOM laikad: add glonass support (#28217)
* QCOM laikad: add glonass support

* reject garbage timestamps

* update ref
old-commit-hash: 703fe85cf5d00fe18e0c8fcef25215b65db59500
2023-05-18 00:19:40 -07:00
Kacper Rączy ca32ac861b process_replay: sort logs before comparing them (#28201)
* Sort logs before comparing them in process replay

* Simplify
old-commit-hash: 504768f92287b47c205798b67894cfcef7206cf9
2023-05-16 15:30:28 -07:00
Adeeb Shihadeh 2bb12fc0fc test_onroad: handle spotty gps in testing closet (#28194)
old-commit-hash: fbcf6ced51aa7ca510293799c3e553095cd4577e
2023-05-15 12:45:19 -07:00
Harald Schäfer 5ddceb553d Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 598343aad18a7896c6b65ff6e19f9e27ba19cc10
2023-05-15 09:29:57 -07:00
Vivek Aithal 4be83d0d57 Lateral Planner: Calibrate model speed with vEgo (#28049)
* calibrate speed in the lateral planner

* make speed err helper fn

* check if trans has values

* clip the vel_err

* update refs
old-commit-hash: a599890feda4fd57bed1bfff947d7092198fd0b7
2023-05-09 14:26:58 -07:00
Vivek Aithal dfa48835a0 RAM 1500 5TH GEN: Reduce friction (#28138)
* reduce ram friction

* u[pdate refs
old-commit-hash: 219b0708f3feb30a8e3d21cb9d473e6dee984510
2023-05-08 18:05:00 -07:00
Adeeb Shihadeh 8cb0a252ae test onroad: ensure 100% engageability (#28132)
old-commit-hash: 984029b6064aff44f2d3b442357b50bd8857afed
2023-05-08 13:48:42 -07:00
Cameron Clough e7a8c65f21 test Ford in process replay (#28112)
old-commit-hash: 51d41a3336683b81acbd764660c523f8d6f3758b
2023-05-04 14:47:39 -07:00
Shane Smiskol e56c2f6ee4 Ford: remove from dashcam (#28103)
* no dashcam 🎉

* update docs

* not these

* update refs

* bump panda
old-commit-hash: d05d9dac045221baeda9c6db398a182f304c8ea6
2023-05-04 06:55:09 +00:00
Vivek Aithal 1bdb1407f9 RAM 1500 5TH GEN: Update offline params (#28099)
* add fric

* no 0 friction offline value

* update refs
old-commit-hash: 3aadad24f0e43b7d1e39286239c3408485d4c2a9
2023-05-03 20:01:48 -07:00
Adeeb Shihadeh e631d24d77 Jenkins tuneup (#28095)
* tuneup

* use service messages

* logmono

* not passive
old-commit-hash: d5a0a4b3e8a52b5a0e1da325c15cdb99d2a71350
2023-05-03 16:52:20 -07:00
Harald Schäfer c8de368187 Laikad: blocking raw_gnss receive (#28083)
* Blocking receive

* redundant

* rm clocks

* timeout irrelevant now
old-commit-hash: bb3388f9d2f573ddd85d8b29a39c2bce472ca7b5
2023-05-03 13:03:25 -07:00