Commit Graph

365 Commits

Author SHA1 Message Date
Mitchell Goff
151ac4bf76 Combine update_calibration/get_warp_matrix (#29719) 2023-08-30 15:16:29 -07:00
Kacper Rączy
d138a358eb scons: fix multithreaded builds (#29716)
* common_python export

* Single scons call

* transformations_python
2023-08-31 00:01:03 +02:00
Adeeb Shihadeh
6333ff94e7 common/i2c: make thread safe (#29706)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-29 18:34:30 -07:00
Greg Hogan
5058f31908 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
2023-08-29 22:24:37 +00:00
Dean Lee
12073c07af ui/MapSettings: sort destinations by recent activity (#29079) 2023-08-27 15:13:43 +01:00
Dean Lee
c6c6877263 util.cc: remove duplidate #include (#29632)
remove duplidate #include
2023-08-25 14:34:46 -07:00
Dean Lee
2709cd6538 common/tests: combine multiple test binaries into one (#29623) 2023-08-25 10:35:39 -07:00
Dean Lee
7270c64872 common/gpio: use util::safe_ioctl (#29624)
use util::safe_ioctl
2023-08-25 08:20:43 -07:00
Justin Newberry
1ee6ed4b16 Linter: remove pylint (#29611)
remove pylint
2023-08-24 16:30:54 -07:00
Bruce Wayne
e7418cfa39 KF1D: add steady state kalman code 2023-08-24 15:04:47 -07:00
Adeeb Shihadeh
4917e22615 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
2023-08-24 14:58:30 -07:00
Shane Smiskol
54e98fa888 C++ FirstOrderFilter: add initialized flag (#29602)
add initialized flag with default to not change behavior
2023-08-24 14:33:11 -07:00
Dean Lee
20e8170399 common/i2c: remove duplicate #include (#29594) 2023-08-24 16:21:03 +01:00
Dean Lee
9c7bf50703 cpplint: add filter whitespace/tab (#29588) 2023-08-24 08:06:58 -07:00
Dean Lee
21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Dean Lee
8b7004e68d swaglog: remove unnecessary string copy (#29164) 2023-08-23 20:10:23 -07:00
Dean Lee
5480d32bb5 cpplint: add filter whitespace/parens (#29565) 2023-08-23 14:25:05 -07:00
Adeeb Shihadeh
e726505918 bump cereal (#29561) 2023-08-23 13:42:37 -07:00
Dean Lee
2d99521e75 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-23 13:25:17 -07:00
Dean Lee
363740a497 cpplint: add readability/braces filter (#29554) 2023-08-23 10:13:46 -07:00
Willem Melching
e8094affae ratekeeper.h: add missing <cstdint> include (#29523) 2023-08-22 15:21:16 +01:00
mitchellgoffpc
72950cd9bc Add cl_create_context function 2023-08-21 19:32:48 -07:00
Dean Lee
3eef63af9b common: C++ RateKeeper (#29374)
* c++ RateKeeper

* add to files_common

* use util::random_int

* improve monotor_time

* remove ~ratekeeper
2023-08-20 21:27:02 -07:00
Adeeb Shihadeh
a9626f95b6 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
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh
d61f86d339 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
2023-08-20 18:50:58 -07:00
Adeeb Shihadeh
2fa09a9ad7 common/gpio: fix warning on re-export (#29457) 2023-08-17 16:32:23 -07:00
Kacper Rączy
d8bda6feb4 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
2023-08-15 00:05:27 +02:00
Dean Lee
37c3854623 util: fix typo in comment (#29392)
fix typo in comment
2023-08-14 12:05:38 -07:00
Dean Lee
22bc06fdaa common/util: move function random_int to util (#29388) 2023-08-14 09:37:16 -07:00
Adeeb Shihadeh
db287496d8 Fixes for PYTHONWARNINGS=error (#29381) 2023-08-13 17:22:56 -07:00
YassineYousfi
9858754a02 camera transformations: pass intrinsics to get_calib_from_vp (#29323) 2023-08-11 10:24:30 -07:00
Misophist
4cad0a035d 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>
2023-08-11 03:46:47 -07:00
Justin Newberry
8793cbff40 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
2023-08-10 18:58:22 -07:00
Justin Newberry
af3ed37c5c Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
2023-08-10 15:28:51 -07:00
Dean Lee
940954c13e 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>
2023-07-31 17:49:50 -07:00
Adeeb Shihadeh
7a5739c5a4 bump to 0.9.5 2023-07-27 15:30:37 -07:00
Maxime Desroches
922e27fa5a gpio_export return type (#29158)
return type
2023-07-26 16:01:26 -07:00
Maxime Desroches
eec99436c1 hardware: move gpio_export (#29154) 2023-07-26 15:12:01 -07:00
Vivek Aithal
92448012f0 [commabody] Support both self-balancing bodies and the wheeled bodies (#29118)
* add wheeled body support

* add WheeledBody param

* make movement less jerky
2023-07-24 19:49:51 -07:00
Adeeb Shihadeh
5831f9e5a0 common/gpio: switch to lru_cache for 3.8 compatiblity 2023-07-23 11:54:51 -07:00
Shane Smiskol
12ed894362 dmonitoringmodeld: initialize model first (#29080)
* hacky fix

* even better

* ordering

* clean up

* fix model replay

* add comment

* catch sigint
2023-07-23 09:28:22 -07:00
Adeeb Shihadeh
d92c9aef23 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-22 17:15:58 -07:00
Dean Lee
269ceca27a common/swaglog: remove trailing semicolon from macros (#29042) 2023-07-19 19:46:42 -07:00
Robbe Derks
70bbb94dc5 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>
2023-07-19 14:24:57 -07:00
Justin Newberry
ce2708fa67 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>
2023-07-18 21:26:05 -07:00
Dean Lee
32c5e6aafb modeldata.h: convert constants to uppercase (#28769) 2023-07-01 08:26:21 +01:00
ZwX1616
ce2dffe566 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>
2023-06-23 16:49:14 -07:00
Mitchell Goff
ae5bfcf248 Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
2023-06-21 20:02:44 -07:00
James
e81515ba7f Sort parameter list alphabetically (#28594) 2023-06-19 15:26:52 -07:00
Adeeb Shihadeh
f332b4c7bb bump to 0.9.4 2023-06-16 10:56:17 -07:00