Dean Lee
9351c70889
test_util.cc: do not compare file contents in REQUIRE ( #29861 )
...
old-commit-hash: 95ae87659d381360a7a6aa6610d25f8519414a01
2023-09-09 08:47:52 -07:00
Justin Newberry
0043a1f039
Prefix: cleanup more folders ( #29848 )
...
cleanup downloads folders
old-commit-hash: 0adc2f20c250ae7ca9a1d4e205c9560b50309eea
2023-09-08 14:54:15 -07:00
Dean Lee
f48dc2b0ef
common/params: not copyable ( #29834 )
...
old-commit-hash: 7816edda57894c7967fcd931294a31d000e6508c
2023-09-07 21:44:58 -07:00
Adeeb Shihadeh
268337f32b
fix RateKeeper test
...
old-commit-hash: f197decbc901d2bc2320db507aecae3b040fd7ee
2023-09-07 16:47:33 -07:00
Justin Newberry
c7029ea15a
System: cleanup paths to use a common class ( #29816 )
...
* use OP prefix for logmessage
* cleanup paths too
* cleanup the paths too
* add hw.py to release
* fix those issues
* fix unittests
* fix unittests
* fix unittests
* do swaglog_ipc properly across all the files
* fix that
* fix swaglog in c++
* review suggestions
old-commit-hash: bfe990b112a83f245bb5244553c84202aec7d86c
2023-09-07 11:32:47 -07:00
Adeeb Shihadeh
0010c9a986
Revert "params: safe and efficient async writing parameters ( #25912 )"
...
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.
old-commit-hash: ec479322d3d8d789290bee68919d14b040481d53
2023-09-06 13:44:20 -07:00
Dean Lee
08e70aecb2
params: safe and efficient async writing parameters ( #25912 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 0d797f4e8b2552192669d0329c14849f0a970066
2023-09-06 08:50:28 -07:00
Adeeb Shihadeh
53e0f5eb49
pytest: use a clean environment for all tests ( #29788 )
...
* pytest: use a clean environment for all tests
* rm that
* fix pj
* put build back
* fix params
* fix that
* handle no key
* that was removed
---------
Co-authored-by: Justin Newberry <justin@comma.ai >
old-commit-hash: 7b6afbc1623b8c159a92f6a5a951fb4d688045ee
2023-09-05 18:52:40 -07:00
Justin Newberry
3b91610c0b
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
Mitchell Goff
fa770f1ccc
Combine update_calibration/get_warp_matrix ( #29719 )
...
old-commit-hash: 151ac4bf7631a60e05c7490515e58c3309de445b
2023-08-30 15:16:29 -07:00
Kacper Rączy
b580f19448
scons: fix multithreaded builds ( #29716 )
...
* common_python export
* Single scons call
* transformations_python
old-commit-hash: d138a358ebd0e67302a409a346777fc15aeb5b66
2023-08-31 00:01:03 +02:00
Adeeb Shihadeh
92014fc125
common/i2c: make thread safe ( #29706 )
...
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 6333ff94e76376e315ba08b0691b5dea5ec03d3c
2023-08-29 18:34:30 -07:00
Greg Hogan
de996d76bb
rename GPIO pin with ublox in the name that is not ublox specific ( #29702 )
...
* rename UBLOX_PWR_EN to GNSS_PWR_EN
* add schematic label as comment
old-commit-hash: 5058f31908ec10e1dad10fc8f1e9921d6df52efe
2023-08-29 22:24:37 +00:00
Dean Lee
2e4a23510a
ui/MapSettings: sort destinations by recent activity ( #29079 )
...
old-commit-hash: 12073c07afbd0de42ed475c9368ad9f51fd0c631
2023-08-27 15:13:43 +01:00
Dean Lee
4db56c1247
util.cc: remove duplidate #include ( #29632 )
...
remove duplidate #include
old-commit-hash: c6c6877263f66bc55c966fa32d40724a80979cdc
2023-08-25 14:34:46 -07:00
Dean Lee
00f900e8c4
common/tests: combine multiple test binaries into one ( #29623 )
...
old-commit-hash: 2709cd6538363e439b3de39a9f4df05619dfbaa0
2023-08-25 10:35:39 -07:00
Dean Lee
5385263422
common/gpio: use util::safe_ioctl ( #29624 )
...
use util::safe_ioctl
old-commit-hash: 7270c6487237ee56e8a41c593ff7b3d8aa35a92c
2023-08-25 08:20:43 -07:00
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