Commit Graph

6085 Commits

Author SHA1 Message Date
Adeeb Shihadeh fe13487ad8 update release notes
old-commit-hash: 2ab57c29b7d67fff55edca5393498adaef1ed5b1
2021-12-16 14:07:25 -08:00
Willem Melching 686a38aea4 Abstract classes inherit from ABC (#23246)
old-commit-hash: 14bf834fefc136bec817a69e066c325055841474
2021-12-16 15:31:53 +01:00
Ewout ter Hoeven a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
Willem Melching 7b3e330def Log actuators after applying rate limits in CarController (#23230)
* return actuators from carcontroller

* log it

* pass to latcontrol

* chrysler

* gm

* honda

* more brands

* rest of the brands

* gm cleanup

* hyundai cleanup

* update ref

* rename field

* fix subaru

* add types

* more subaru fixes #23240

* consistent whitespace

* bump cereal
old-commit-hash: 4f1eb4278a83a3abebebef67a081961e27594d90
2021-12-16 13:08:20 +01:00
Adeeb Shihadeh 0386f99c1f boardd: add controls heartbeat (#23185)
* boardd: add controls heartbeat

* bump panda

* bump again

* bump panda
old-commit-hash: a793b949bea7308051448924e0f3a97c396e39e8
2021-12-15 17:58:16 -08:00
Dean Lee 20c50f8f51 framereader: use the same alignement as visionbuf (#23208)
* aligned rgb buffer

* fix yuv stride
old-commit-hash: 768cfdb92a70f30435cf4c4ab1de083d8fbe6491
2021-12-15 16:19:07 -08:00
Adeeb Shihadeh 24c730f083 model replay: more consistent replay (#23237)
* first cleanup

* don't send calib and desire

* should always be valid

* little more
old-commit-hash: 66ee3e9ef98f240f424228953c307be8daaf5597
2021-12-15 16:12:24 -08:00
martinl b99c359d61 Subaru: Add Impreza/Crosstrek 2020 (#21011)
* Add Subaru Impreza/Crosstrek 2020

* Update selfdrive/test/test_routes.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7fd98757b46b384fba00aaa91612f66f3de2f020
2021-12-15 15:13:31 -08:00
Adeeb Shihadeh ab783fe661 soundd: back to onroad only (#23236)
old-commit-hash: 3bdb445c84383768d365315abdeab5dad43ccfb5
2021-12-15 14:29:32 -08:00
Jason Young e4b396864d VW MQB: Add FW for 2018 Škoda Superb (#23233)
old-commit-hash: a11259929ba4d6f18892ae31844501d4db1eaa36
2021-12-15 11:18:40 -08:00
Dean Lee d5e9c7ecf1 UI: always clear CameraView background (#23231)
* fix background

* gate that with Hardware::EON

* always call glclear
old-commit-hash: 5810583d573af004120e6339a5597bf39cd6d331
2021-12-15 11:13:50 -08:00
Adeeb Shihadeh 85ff2fe9cb Revert "Qt/SetingWindow: faster initialization and painting (#21764)"
This reverts commit 720e3a73e7befe597bb94f93e41f8f294431ba65.

old-commit-hash: 472177e2a8a1d002e56f9096326fd2dff62e54f9
2021-12-15 09:58:25 -08:00
Willem Melching 4b13d224bd manage_athenad.py: add daemon argument to launcher
old-commit-hash: d09cc197d11efa2181ce68ef4212cb9df5ee285c
2021-12-15 17:03:12 +01:00
Dean Lee 0e0c8c9941 modeld: make valid variable thread safe (#23228)
old-commit-hash: 7c4855a609887038ace5930ab54f4739a1f9b28c
2021-12-15 14:01:11 +01:00
Dean Lee b547e87f17 driving.h: remove obsolete poly_fit function prototype (#23229)
old-commit-hash: f20d53b15cbeccb44916434a25b187414d65af3f
2021-12-15 14:00:46 +01:00
Dean Lee f0eb7a5402 qt/util: new function scaledPixmap (#23103)
* new function scaledPixmap

* rename to loadpixmap
old-commit-hash: 75687169eb978a7a49f15fb086df87cc959a871a
2021-12-14 22:58:47 -08:00
Adeeb Shihadeh 5e37ac43be selfdrive/version: remove one unnecessary write to .git/ (#23183)
old-commit-hash: 13b4ff504d7dc7bbdc0648df1711ce7a160a127f
2021-12-14 22:35:18 -08:00
Dean Lee 1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5dd7ad586a92b62b2ef5bc8f9094f262
2021-12-14 22:28:12 -08:00
martinl 14c8689bab Subaru Pre-Global: Rename ES_CruiseThrottle to ES_Distance (#23024)
* Rename preglobal ES_CruiseThrottle to ES_Distance

* bump opendbc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 345fe48338fe4d95a88d9f001484a56e4a146ac4
2021-12-14 21:55:14 -08:00
Adeeb Shihadeh 6fc218503c cloudlog: add daemon name to context for python daemons (#23225)
* python

* manager is a daemon too

* Update selfdrive/manager/process.py

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b27a19e9d1cfe9e9f94ccb4978338ebe4a898bc3
2021-12-14 20:43:26 -08:00
Adeeb Shihadeh ea2dcf9d37 modeld: start publishing before calib seen (#23190)
old-commit-hash: fa62b9d3f9882ec33559ceb7377fa991be1d4fb5
2021-12-14 17:04:40 -08:00
Kevin Robert Keegan 7a55ba0175 Toyota: Display Blue Barriers When Engaged, Matches OEM Design (#23150)
old-commit-hash: 245b4d910c287d75f0c26eeed3a135683699b9f9
2021-12-14 16:42:31 -08:00
HaraldSchafer 4de7b45d40 Calibrationd: check size of valid_blocks without current (#23223)
old-commit-hash: cd190dc85d3b917137bd3d7efa8032fe3045dc84
2021-12-14 15:14:14 -08:00
HaraldSchafer 22ec491d1f Calibrationd: don't use noisy current block (#23222)
old-commit-hash: 40dcc6382343df687f8304fe48a27d60c09f5d11
2021-12-14 14:09:38 -08:00
HaraldSchafer 4708268c7d Revert "Dont use erratic current block (#23211)" (#23221)
This reverts commit 5c76900f565c8e55f5738efb8fdf5d6a846dbe0e.
old-commit-hash: 837823ff58b57d49bc079a5d7f9ea8db55dc7d76
2021-12-14 13:59:39 -08:00
HaraldSchafer 6a7849aea3 Dont use erratic current block (#23211)
old-commit-hash: 19335bb6a48f0e3558c837557a1ae7c66b8b8587
2021-12-14 13:58:42 -08:00
Harald Schafer 8d8b61e73f Update ref with minSpeedCAN removed
old-commit-hash: c25ed45437b7b216a3df528915c7cab56f09e198
2021-12-14 12:31:30 -08:00
Shane Smiskol c413152da3 seems to be flipped (#23213)
old-commit-hash: c84310c94ccab023e36d02e9b85430ad7d878868
2021-12-14 12:17:02 -08:00
ZwX1616 f464a02782 DM: more adaptive pose policy (#23184)
* rename and add dep

* proto thresholds

* tweak vk

* update natural offset and clip offsets

* 95th looks good

* no punish for being relaxed

* yaw laplace only

* some pay more attention

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: af5a418fa65347fb9215ce28c86c85cd3c4d9b0a
2021-12-14 12:13:59 -08:00
Shane Smiskol 91ff6918e5 Remove minSpeedCan (#22991)
* Remove minCanSpeed

Remove minCanSpeed

* it actually only goes out to 2.5 seconds, this is okay to remove

* test to see if this preserves behavior

add minSpeedCan

* Revert "test to see if this preserves behavior"

This reverts commit 31b11f017f7e9da7654fc8064b5983d4a6cc22e5.

* preserve behavior (don't enter stopping as early)

* vEgoStopping needs to be less than or equal to vEgoStarting to avoid state oscillation
old-commit-hash: 2799ef52928126d4b704a6ad83e25a35d0b56da3
2021-12-14 12:09:32 -08:00
Dean Lee 01eb405677 put logcat in bootlog (#23217)
* put logcat in boot log

* continue

* use std::unique_ptr

* Revert "use std::unique_ptr"

This reverts commit c671f8ca7160691791bade508c4a8eb5cdb73fb8.
old-commit-hash: f042962933837dbe612d4eb0f9bf5c0a0e0fb6f3
2021-12-14 11:54:54 -08:00
Willem Melching 0574f0f774 comma two: remove lens sag compensation (#23113)
old-commit-hash: 36db473babe445f0bae08065fb9d37197d5cd575
2021-12-14 13:29:59 +01:00
Devin Leamy 20a2b9d0a2 athena: persist upload queue to disk (#22659)
* revert submodules

* lowercase

* addressed comments

* add test for cancelled uploads

* formatting

* catch all exceptions

* handle empty param

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 8cb83b29a6b0cb1e5081651e96745c425e7e31f9
2021-12-14 13:29:17 +01:00
Shane Smiskol ef38c36435 version.py: make function names more clear (#23216)
* rename a few version functions

* and is_prebuilt

* and some formatting 😊
old-commit-hash: b745a14ff71622fe1fe4c9c043c7d7694d23dc08
2021-12-14 12:15:13 +01:00
Dean Lee 31bf68c622 C2: display ip address in network panel (#23215)
* display ipv4 address

* refactor to class

* only display ip address
old-commit-hash: 084ef394891360d05b272f502029f9e7e23886db
2021-12-14 12:14:51 +01:00
Dean Lee c031c1a8d4 UI: add timeout to close settings window while onroad (#22980)
* refactor updateWakefulness

* don't hide sidebar

* rename reset->reset_timeout

* move related variables and functions into class Device

* reset timeout in ctor

* set timeout to 10s if ignition is on

* cleanup

* remove unused QTimer *timer

* check getTimestamp

* keep socket reading in update_state

* keep filtering

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c5dbee4e58aad2efca6d91baa4c7c4171ee8953f
2021-12-14 11:22:16 +01:00
Dean Lee b462e5584f move LayoutWidget,ClickableWidget to controls (#23207)
old-commit-hash: d4b8cba0f6614138a7a836559712baeb894f7163
2021-12-14 11:00:01 +01:00
Adeeb Shihadeh 87ca19c8fd bump version to 0.8.13
old-commit-hash: 4a936bb2e51dda50041c3ba7cc3db744411193fa
2021-12-13 22:24:03 -08:00
mitchellgoffpc a485d7a2d1 Updated release notes
old-commit-hash: 57871c99031cf597ffa0d819057ac1401e129f32
2021-12-13 20:39:39 -08:00
Adeeb Shihadeh e1eef1ed65 update contributing.md
old-commit-hash: 5aa701b029516b62618be8a30cdf372c86d407a3
2021-12-13 20:30:24 -08:00
Adeeb Shihadeh 0a43e415cc androidd: reduce cloudlog spam
old-commit-hash: 8a229826cf395cb2e8f7ab31a72738dc4abfbc4b
2021-12-13 17:42:15 -08:00
Adeeb Shihadeh 0bcb3936ad add small minimum time between taps to onboarding (#23212)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: df5b374033cd89a7cffaddb12a7650c895f84cea
2021-12-13 17:38:19 -08:00
Dean Lee b7e08ff8fd Qt/SetingWindow: faster initialization and painting (#21764)
* reduce init time from ~520ms to ~350ms

* faster init toggle

setfixedheight in ctor

delay init TogglesPanel,reduce init time to ~180ms

cleanup

* precise style, reduce to ~100ms

* revert 'faster toggle

* fix horizontal_line

* fix background

* cleanup
old-commit-hash: f482354e4e2ce5d96f5b0c96f7ba923611dc199d
2021-12-13 15:57:04 +01:00
Dean Lee 88e6b990d4 LapConv: remove hardcoded FULL_STRIDE_X (#23200)
* fix wroing stride_x

* remove hardcoded rgb_stride
old-commit-hash: b519acd37bc4b160fc367bd690a326459f70109f
2021-12-13 15:53:44 +01:00
Dean Lee 066528dc2b replay: use std::unique_ptr to manage memory, reuse events buffer. (#23049)
* reuse events buffer

* Trigger Build
old-commit-hash: 8a84263c2d20484d83c30f1928c0312d7fa8a350
2021-12-13 15:22:31 +01:00
Dean Lee 4754da9fbc common_process_driver_camera: same parameters as process_thread_cb (#23202)
old-commit-hash: 5c6229f3df7ab499fa0a6121a327d9d538a2c847
2021-12-13 15:07:31 +01:00
Dean Lee ad8ab75ede commonmodel.h: move global model size into class ModelFrame (#23193)
* move to class ModelFrame

* remove defines in dmonitoring as well

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 13ad02bc064e87516539cb42d3e7e41bc3b56b28
2021-12-13 14:58:21 +01:00
Dean Lee 3e72a81dac Use std::unique_ptr to manage memory (#23168)
* use unique_ptr

* trigger ci

* move down loggerdstate
old-commit-hash: 4aa291c406752169f4d836e952708eeccbb36c5d
2021-12-13 14:16:53 +01:00
Dean Lee a88eb06773 RawLogger: fix wrong pts (#23205)
old-commit-hash: cfad1f35e8a763a7ae15244966c925c751e684b9
2021-12-13 11:46:52 +01:00
Dean Lee dd7c226097 util: move all functions into util namespace (#23203)
old-commit-hash: 9decd3d8a20167de684322a458e28c8d1f746f83
2021-12-12 14:42:23 -08:00