Commit Graph

438 Commits

Author SHA1 Message Date
Justin Newberry c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16e2ade0dd887c0687243aee769043e5
2023-08-24 16:30:54 -07:00
Bruce Wayne d334798141 KF1D: add steady state kalman code
old-commit-hash: e7418cfa397ec2185e4b12baaa481017b7b23322
2023-08-24 15:04:47 -07:00
Adeeb Shihadeh 61cf541322 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
old-commit-hash: 4917e22615adbfcc9b3c3ec89b00d240e0b48883
2023-08-24 14:58:30 -07:00
Shane Smiskol 8cbc68a3be C++ FirstOrderFilter: add initialized flag (#29602)
add initialized flag with default to not change behavior
old-commit-hash: 54e98fa888c9e28eb93513bada8371a63a54bb55
2023-08-24 14:33:11 -07:00
Dean Lee e14a6bdda2 common/i2c: remove duplicate #include (#29594)
old-commit-hash: 20e81703995e74877248ac28fd653f059bc44e34
2023-08-24 16:21:03 +01:00
Dean Lee 228d30d5a9 cpplint: add filter whitespace/tab (#29588)
old-commit-hash: 9c7bf50703e4da45163e175766b4bdfabcb9916c
2023-08-24 08:06:58 -07:00
Dean Lee 0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216fc8f5269d2deedc538c2f543a1c270a
2023-08-24 15:42:17 +01:00
Dean Lee 7e6be3378c swaglog: remove unnecessary string copy (#29164)
old-commit-hash: 8b7004e68dfad516adbdecc9925bd7fc954cc8d4
2023-08-23 20:10:23 -07:00
Dean Lee db211ce617 cpplint: add filter whitespace/parens (#29565)
old-commit-hash: 5480d32bb5d98d57100fd709b9ffe7bfcc6e020a
2023-08-23 14:25:05 -07:00
Adeeb Shihadeh 6b2ffe9490 bump cereal (#29561)
old-commit-hash: e726505918bfbaa4ee75714bd6ea391d7fff7fb8
2023-08-23 13:42:37 -07:00
Dean Lee 97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e7500902070d0aacce69528bcfd8b9964
2023-08-23 13:25:17 -07:00
Dean Lee 004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
Willem Melching 4bb83c6849 ratekeeper.h: add missing <cstdint> include (#29523)
old-commit-hash: e8094affae0d7f49bc2b7136882dd1dad9e8dcdb
2023-08-22 15:21:16 +01:00
mitchellgoffpc faa3ee050d Add cl_create_context function
old-commit-hash: 72950cd9bc6bc09edb2a5e0a8f6ef38af83e7881
2023-08-21 19:32:48 -07:00
Dean Lee 97631ec362 common: C++ RateKeeper (#29374)
* c++ RateKeeper

* add to files_common

* use util::random_int

* improve monotor_time

* remove ~ratekeeper
old-commit-hash: 3eef63af9b4f4a25bc4c3a0d6ad450bba9f62205
2023-08-20 21:27:02 -07:00
Adeeb Shihadeh 16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh 51634f52dc replace custom clock helpers with time module (#29499)
* replace custom clock stuff wtih time module

* fix double

* fix release

* bump cereal

* update type

* fix one more
old-commit-hash: d61f86d3398900ef01423d24cfdf897392a8efbb
2023-08-20 18:50:58 -07:00
Adeeb Shihadeh 5530871c0e common/gpio: fix warning on re-export (#29457)
old-commit-hash: 2fa09a9ad7cc4d1dc47c45e12189968d42d69998
2023-08-17 16:32:23 -07:00
Kacper Rączy 7f02996102 replay: increase file descriptor limit macOS (#29346)
* Increase file descriptor limit for replay on macos

* Reword comment

* Move set_file_descriptor_limit to common/util.cc

* Include resource.h header
old-commit-hash: d8bda6feb491f571acf476314ce7de81a431453f
2023-08-15 00:05:27 +02:00
Dean Lee 06cc9b5c7b util: fix typo in comment (#29392)
fix typo in comment
old-commit-hash: 37c3854623dc2df58469ac5d0b9e97375f57ca1f
2023-08-14 12:05:38 -07:00
Dean Lee c622a4cac5 common/util: move function random_int to util (#29388)
old-commit-hash: 22bc06fdaab24b8aa3aba2513a32ae828f6d589e
2023-08-14 09:37:16 -07:00
Adeeb Shihadeh f50fedb647 Fixes for PYTHONWARNINGS=error (#29381)
old-commit-hash: db287496d82be87971a619b2659c47737142a385
2023-08-13 17:22:56 -07:00
YassineYousfi ba4c0b9487 camera transformations: pass intrinsics to get_calib_from_vp (#29323)
old-commit-hash: 9858754a02d27bef0c7b9d4175c1fe57ba85bf41
2023-08-11 10:24:30 -07:00
Misophist df4dbac04c util: random_string is now more entropic (#29312)
* random_string now returns a significantly higher entropy random string

sizeof(char*) is going to be 8 on a 64-bit system, not the length of the
string. Before, only strings of integer values [0-6] were being generated. Also
switched to C++ constructs for simplicity.

* Update common/util.cc

* maintain repo style

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4cad0a035dd8c78e0c44dc346708f2166cccb6c7
2023-08-11 03:46:47 -07:00
Justin Newberry 715f028a0e Ruff: enable flake8-builtins (#29315)
* enable flake8-builtins

* replace any with contains

* fix typo in pack

* fix type

* format is from the parent module, has to be enabled

* item_id

* fix item_id

* disable for id since that's what the remote server returns
old-commit-hash: 8793cbff40662a92bff16d75b51479c80517305a
2023-08-10 18:58:22 -07:00
Justin Newberry 7d6d3dc9ea Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
old-commit-hash: af3ed37c5cd8823f793aec60e1c74760cf795bd9
2023-08-10 15:28:51 -07:00
Dean Lee b80325aa04 swaglog: enable type-checked against format string (#29096)
* check&fix fmt

* bump rednose

* correct format string

* bump rednose

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 940954c13e4fb352618448e435b5c1a722fdc3aa
2023-07-31 17:49:50 -07:00
Adeeb Shihadeh 8f45717ed6 bump to 0.9.5
old-commit-hash: 7a5739c5a4328fb42479fa2eb4471e7090350cc0
2023-07-27 15:30:37 -07:00
Maxime Desroches 80101b0e20 gpio_export return type (#29158)
return type
old-commit-hash: 922e27fa5a7b3bf282191f9e91e6eeaaa76adf20
2023-07-26 16:01:26 -07:00
Maxime Desroches 8ceef4903b hardware: move gpio_export (#29154)
old-commit-hash: eec99436c1c5489e2e49dc0760725f6fc6b9e47d
2023-07-26 15:12:01 -07:00
Vivek Aithal 3b18903574 [commabody] Support both self-balancing bodies and the wheeled bodies (#29118)
* add wheeled body support

* add WheeledBody param

* make movement less jerky
old-commit-hash: 92448012f05a505d09f4c083e116a20e9f5b106d
2023-07-24 19:49:51 -07:00
Adeeb Shihadeh fe6b4d26f3 common/gpio: switch to lru_cache for 3.8 compatiblity
old-commit-hash: 5831f9e5a0d74a03a1b6ebc7b87f6d76d0fc38ae
2023-07-23 11:54:51 -07:00
Shane Smiskol 0a6b589f23 dmonitoringmodeld: initialize model first (#29080)
* hacky fix

* even better

* ordering

* clean up

* fix model replay

* add comment

* catch sigint
old-commit-hash: 12ed894362dd22513a21de6689a31511b791e37b
2023-07-23 09:28:22 -07:00
Adeeb Shihadeh 3dfd770fb0 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d92c9aef23fc789d50bfd03ae09a3abbf23a8429
2023-07-22 17:15:58 -07:00
Dean Lee 05b2a0b884 common/swaglog: remove trailing semicolon from macros (#29042)
old-commit-hash: 269ceca27a5fedc1eadd71503cf13450a061b382
2023-07-19 19:46:42 -07:00
Robbe Derks f305305754 Panda logs (#28511)
* log in pandaStates

* Revert "log in pandaStates"

This reverts commit 87ee283ac45c2eeed94d9a958927e3072ec4460f.

* log to param

* dumps datetime

* cloudlog instead

* add truncation

* fix

* try isotimestamp

* duh

* more fixes

* should be __class__

* add some time to account for log gathering

* use new fast interface

* Revert "add some time to account for log gathering"

This reverts commit 2c08ad48052dfc0546530059a0cda03b04c4939a.

* cleanup

* simple test

* fix wrong serial

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 70bbb94dc56a62f82a96254b0c08f043a87c8718
2023-07-19 14:24:57 -07:00
Justin Newberry f465c3f3ac Updated: fix setting update time (#29004)
* sleep in launch

* set time loop

* log

* try longer delay + logging

* try longer delay + logging

* fix order of update

* fix order of update

* fix order of update

* revert panda

* also don't show connectivity error without failed checks

* slightly cleanup updated

* fix type error

* init overlay first

* minimal diff

* comment

* minimal diff

* minimal diff

* explicit parameter to make it clear

* explicit parameter to make it clear

* use finally

* dont use finally

* PR cleanup

* reduce frequency

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ce2708fa67e9f2b7117e710054e25ed631fa1816
2023-07-18 21:26:05 -07:00
Dean Lee 235235b2d9 modeldata.h: convert constants to uppercase (#28769)
old-commit-hash: 32c5e6aafb702a5a17ca7b43c9062ce9e4462d34
2023-07-01 08:26:21 +01:00
ZwX1616 6e547a2748 Modeld: send confidence class (#28625)
* 0.7

* magic

* faster magic

* more simple

* up

* empty

* more mid bits

* naive

* flatten

* dz

* that can stay

* this is fine

* what the

* what the

* giRevert "what the"

This reverts commit 1619ba68e6098dc581fe9b82e7ecb74562b619cc.

* Revert "what the"

This reverts commit 0037dd368290497a6d0009ca34adb2184b584d2e.

* 1x fine

* that was fine

* combined

* independent cum

* 0 is fine

* use metrics

* up cereal

* process and publish from modeld

* cleanup

* use s.output

* bg

* a greener approach

* dns

* serial

* update ref commit

* rebase

* ref

* cereal master

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ce2dffe56689615597766652576e3711efdb8e61
2023-06-23 16:49:14 -07:00
Mitchell Goff 31834eac4c Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
old-commit-hash: ae5bfcf248e20036998331d5db3cf44c323fe802
2023-06-21 20:02:44 -07:00
James 5f219a3bf9 Sort parameter list alphabetically (#28594)
old-commit-hash: e81515ba7f9f189cba00256da8482834fbe7aa8a
2023-06-19 15:26:52 -07:00
Adeeb Shihadeh dbe747f9de bump to 0.9.4
old-commit-hash: f332b4c7bbddc796ccf8ff85ad359ba924d42ae2
2023-06-16 10:56:17 -07:00
Adeeb Shihadeh df13f240b3 thermald: save last offroad status packet on onroad transition (#28563)
* thermald: save last offroad status packet on onroad transition

* update param

* write every time

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7d6897fa38be4bc6f82f35b902052b12efd47af3
2023-06-15 15:04:22 -07:00
Adeeb Shihadeh 4ab84b5dc1 thermald: common min date (#28457)
* thermald: common min date

* add to release files
old-commit-hash: d96361970b32a76422dc1acc7a78e5bdd55a4bed
2023-06-12 13:50:38 -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
Shane Smiskol aef0c54a26 params: make ForcePowerDown persistent (#28460)
old-commit-hash: 6bb61780ab48973c65086bd34185ee811eb6f0ec
2023-06-08 19:36:23 -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
Cameron Clough bdb92e691c UI: remove comma points (#28303)
* UI: remove comma points

* remove param
old-commit-hash: e875bcfaeec9a4bfab2d8e4e4bb5b7ee978eb047
2023-05-30 18:18:47 -07:00
Shane Smiskol afe7825130 Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit ee6df0ef025d95c495248e46d53de2842363058e.
old-commit-hash: 21f88f997d80430dac16513c9dafb358ce3494ae
2023-05-25 19:23:50 -07:00
Shane Smiskol 33ddd8eb44 ui: smooth wide cam transition (#28277)
* horribly messy

* bit simpler

* is this right?

* simpler and should work?

* used to be int/frames, but added easing so treat as float

* end slow (start fast)

* little faster

* clean up

* not needed

* try ease in/ease out and fix

* remove debugging print

* fix

* revert to previous curve

* based on speed

* not right

* fix

* fix

* this kinda works

* Revert zoom by speed

Revert "this kinda works"

This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.

Revert "fix"

This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.

Revert "fix"

This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.

Revert "not right"

This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.

Revert "based on speed"

This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.

Revert "Revert "not right""

This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.

* better curve

* revert

* use constants and fixes

* up here too

* feels more intuitive to make zoom_transition=1 be zoomed in

* rm line

* fix

* cmt

* better handling

* better name

* zoom if ANY other stream is requested

* Update selfdrive/ui/qt/widgets/cameraview.cc
old-commit-hash: 26064196d0362d7719ce7b1ee835eb2193a3dc57
2023-05-24 17:28:33 -07:00