Justin Newberry
88467a0669
move card to selfdrive/car/card ( #31693 )
...
* more obivous dif
* release
old-commit-hash: bc2407abeb68bce9c0fa94e3c7df1b1d0799e660
2024-03-04 10:45:32 -08:00
Justin Newberry
891b9a1ab4
card: prepare for separate process ( #31660 )
...
* Card
* update ref
* bump cpu
* sub to caroutput
* update ref
old-commit-hash: 8ec0d87de06c265dcb0526b9a3bce8a397248dc9
2024-03-04 09:53:42 -08:00
Justin Newberry
e9ca84c95c
platformconfig and carspecs are now required, carspecs no longer kwarg ( #31667 )
...
* required
* mock can be a platform!
* default is mock
* fix that
* and that one
old-commit-hash: b0eae8c1b7264b2d0c63ee2957689bc1317616f1
2024-03-01 11:31:51 -08:00
Justin Newberry
0f1f246bc0
scons: fix race condition with opendbc ( #31621 )
...
* fix race condition
* add to release
* fix for now
* bump
old-commit-hash: 7cf2b28b7883fdc3e68ad9e0974879103fa3a6ba
2024-02-28 11:41:42 -08:00
Cameron Clough
a09300385b
mypy: use implicit-optional ( #31590 )
...
* mypy: set implicit-optional = true
* find and replace '| None = None' -> '= None' in function args
old-commit-hash: 80da3aee147867e46f566b63a96f4fe199e0628d
2024-02-25 13:29:18 -08:00
Cameron Clough
9bd90112d0
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae4967943ee33a3699a1d89a7a770d95e9
2024-02-24 16:41:23 -08:00
Adeeb Shihadeh
b347145c9f
controlsd: increase initializing timeout ( #31535 )
...
old-commit-hash: d8ce15a86910972bc066aa378a80c499a924de3d
2024-02-21 16:23:43 -08:00
Justin Newberry
1e13249c2a
controlsd: move carParams management to card ( #31534 )
...
* card-manage
* fix
* init params
* reversed that
* can be in the init
old-commit-hash: 00315325a38b4be8a4aaa5db5db81e818c2e31ab
2024-02-21 16:11:00 -08:00
Justin Newberry
8256969d40
Split out can control into new "card" class ( #31529 )
...
* card v1
* fix car events
* fix proc replay
* lets keep that the same
* no extra space here
* move can recv timeouts to card
* organize imports
* organize imports
* slightly bump cpu
* not a card!
old-commit-hash: 837b811f9c78628a1c0ba50f9f287bf96e39144d
2024-02-21 13:18:43 -08:00
Justin Newberry
0d6c16e771
controlsd: sort imports ( #31531 )
...
sort imports
old-commit-hash: 0eba392cf24e5ebbd09d7a3ff4acd9f98daeb3bb
2024-02-21 11:58:04 -08:00
goodchoom
a1ff0696ce
Alerts: fix inconsistent capitalization ( #31514 )
...
fix capitalization
old-commit-hash: 8b5c9e84d2f5ae35925a9187abacd4543c046a8f
2024-02-19 18:18:20 -08:00
Adeeb Shihadeh
8b8677ae63
controlsd: allow mismatch while boardd reads back mode ( #31505 )
...
* controlsd: allow mismatch while boardd reads back mode
* self
old-commit-hash: b28daef34ad213670418bdbf82ae999f38ac9409
2024-02-18 14:43:42 -08:00
Adeeb Shihadeh
b8b4210a68
controlsd: increase initializing timeout
...
old-commit-hash: b218abcaa3015e6c9202550eddbbc0eff7482729
2024-02-16 13:35:45 -08:00
Adeeb Shihadeh
d167a22be5
fix no GPS alert when driving slowly in a tunnel ( #31483 )
...
old-commit-hash: d31269f6639b86405708f05c098ac1fd665c3107
2024-02-15 11:52:57 -08:00
Adeeb Shihadeh
4b8266da05
Reapply "radard: enable avg input service frequency checks ( #31404 )" ( #31468 )
...
This reverts commit d2ca0aba986826f94fc76c670e104980f93820fb.
old-commit-hash: 3cd0e5d43c5cdc00b32d69f021653e3a812427d8
2024-02-14 13:53:33 -08:00
Adeeb Shihadeh
4a713f4ff7
log all startups
...
old-commit-hash: 194bd85905348a66a44ba54a053424dbfcdaeb36
2024-02-14 11:44:19 -08:00
Adeeb Shihadeh
b302e61dcc
Revert "radard: enable avg input service frequency checks ( #31404 )"
...
This reverts commit d979307c058c4ae67a0731f46b7a1a721f890f89.
old-commit-hash: 7f7f1fd21b293901fa003dce8656db89e15726aa
2024-02-13 13:23:27 -08:00
Adeeb Shihadeh
63d5b15a3a
radard: enable avg input service frequency checks ( #31404 )
...
* radard: enable avg frequency checks
* freq
* update cpu
* fix diff
old-commit-hash: 4b004d59f3441f59cc78e6f8494e1e70451cf33e
2024-02-12 15:00:01 -08:00
Adeeb Shihadeh
adcac1f207
SubMaster: improve service aliveness checks ( #31391 )
...
* bump cereal
* fix
* fixes
* single poll
* bump
* bump
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 279d2c3b2319bab73bbc9ed103911b6df3b0dc02
2024-02-12 10:11:37 -08:00
Adeeb Shihadeh
b4c03185d4
bump cereal ( #31392 )
...
* bump cereal
* update those
* update refs
* bump cereal
* bump
* bump cereal
* bump
* fix
* bump
* typo:
old-commit-hash: daceb171bde5aef4ea483e8054456187772afe92
2024-02-09 21:44:23 -08:00
Adeeb Shihadeh
685f29ea56
radard: cleanup init
...
old-commit-hash: ac95838657f060503474e1a4f21ec13f66f2d39d
2024-02-09 17:54:40 -08:00
Adeeb Shihadeh
2da00d3142
controlsd: log initializing timeouts
...
old-commit-hash: 013d4bd4ce0ff7060f4366f504e1bd909d7dc117
2024-02-08 21:26:07 -08:00
Greg Hogan
14e12980f5
simplify git remote is comma check ( #31284 )
...
* simplify git remote is comma check
* cast to str
* eliminate default and always return string
* add type annotation for cache decorator
* fix up default handling
old-commit-hash: 7affba06d89b366d98f42c4ea3a2f904e6ef3357
2024-02-02 21:23:32 -08:00
Vivek Aithal
80195f1432
LatControlTorque: Add more inputs ( #31252 )
...
* add history and state to the ff inputs
* add history
* resolve comments
* remove history, simplify
* don't compute lateral accel, roll comp always
old-commit-hash: 056b330e8bd1ffafdd0bd310782dd140c8f2174d
2024-02-01 04:12:48 -08:00
Justin Newberry
05204fbde3
Create message mocking tools ( #31249 )
...
* add mocking tools
* fix map renderer
* use for power draw
* fix those
* whitespace
* rename to services
* fix the rate
* remove
old-commit-hash: 086c509fde806bb03f89765800d9667f4de6a372
2024-01-31 18:47:49 -08:00
Harald Schäfer
215b346dc0
Los Angeles Model ( #31037 )
...
* 1c888f5b-c213-4c1c-9eba-c587afd047fc/700
* Move to action
* Updates
* Add steer delay
* Update curvature grep
* clip speed
* No car params for now
* Add delay back
* Update
* fix lint
* fix lint
* update model regf
old-commit-hash: 0067cf3eb1fce18a4d9c548a0c136027c87d43aa
2024-01-22 00:58:06 -08:00
Adeeb Shihadeh
f8deefda02
fix test_startup ( #31103 )
...
* fix test_startup
* real fix
old-commit-hash: 139b0ae3b696c16056c065dec626c65ec8282622
2024-01-21 16:55:47 -08:00
Harald Schäfer
66dbadb029
Delete lat planner ( #31089 )
...
* Initial commit
* Fixup
* typo
* ignore lateral plan
* Update cereal
* Remove lateralPlan
* Fix release build
* Fix release build
* give car params
* Add carParams to include_all_types
* Write car param in powerdraw test
* add demo mode
* Update model regf
* proc replay ref commit
* Try
* Move enum definition
* Update cereal
* typo
* Write car param for modeld test
* Update ref
* Update model ref again
---------
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com >
old-commit-hash: e6c97c384671b448f307a7ed91416886f2186d80
2024-01-21 12:09:48 -08:00
Adeeb Shihadeh
972650f0eb
remove dashcam branch ( #31081 )
...
* remove dashcam branch
* fix
* more cleanup
* remove param
* one more
old-commit-hash: 7cd9568423a2e78187d16018b70a78f56c02027d
2024-01-19 14:05:03 -08:00
Harald Schäfer
f2106e0601
No curv rate for lateral control ( #31042 )
...
* No more Curvature rate for lat control
* Update cereal
* Update
* Fix lat control test
old-commit-hash: d36103791c9432155413e1044bcca2ac37bfa852
2024-01-17 16:00:50 -08:00
Adeeb Shihadeh
bf6fc7a24f
more unit test speedup ( #30997 )
...
* that's super slow
* fix startup test
* fix
old-commit-hash: fe6aff01311ca3c5a4a549b0eb5d081fa1740f86
2024-01-13 22:21:43 -08:00
YassineYousfi
01b079c75e
longplanner: expose dt ( #30941 )
...
old-commit-hash: d6cece756cc1fd9c8e6ca6290bdc7b0fd6d69d5b
2024-01-08 19:46:13 -08:00
Adeeb Shihadeh
6315957cf4
remove common.profiler ( #30927 )
...
* remove common.profiler
* cleanup
old-commit-hash: f0ccb84ae3ed890fdf5610573a8b8882f4e29d3e
2024-01-06 16:20:28 -08:00
Adeeb Shihadeh
63b374bd89
Cython KF1D to Python ( #30773 )
...
* Cython KF1D to Python
* cleanup
* set x
* less nesting
* fix release
* Revert "fix release"
This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297396cf16e3d041506f156c1626ded50
2023-12-16 23:45:28 -08:00
Dean Lee
1d7d7b89b2
common/params: support nonblocking write ( #29808 )
...
* 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
* pass prefix to asywriter
* move to params
* assert(queue.empty())
* add comment
* add todo
* test_power_monitoring: remove patch
* rm laikad.py
* fix import
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 3c4c4d1f7f22884f84f0f52ad45ab0412fab1eb5
2023-12-13 20:36:01 -08:00
Adeeb Shihadeh
b48abb9511
read params in a thread
...
old-commit-hash: fe24bdc689f1e3b82e0bec92034a855fd5da78b2
2023-12-13 19:00:22 -08:00
Kacper Rączy
214b38bc69
controlsd: require joystick mode param for the body ( #30680 )
...
* Update joystick mode in step
* Stop putting the body in joystick mode by default
* Toggle JoystickDebugMode by default for notCars in process_replay
* Remove subsection about web joystick
* Update param only in non-cars
* Make joystickDebug non-static event, and add it in a loop
* Add comment
old-commit-hash: e62756596b82e4e40d02a30b34d3f3c9960bffe6
2023-12-12 14:14:51 -08:00
Kacper Rączy
9cf15f3c74
locationd: disable locationd temporary error alert on the body ( #30608 )
...
* Disable locationd temporary error alert on the body
* Disable locationd/paramsd/planner alerts on body with joystick mode
* joystick_enabled param not joystick_mode
old-commit-hash: 7f07f47302229bcc2694f7c53d1e5ed1236494c8
2023-12-07 10:53:33 -08:00
Adeeb Shihadeh
59eb2988de
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
old-commit-hash: 35f819c8239b8ac3a000087a0f791b91ccea5e5e
2023-12-06 17:27:51 -08:00
Shane Smiskol
fd130642b6
joystick: bump max angle ( #30602 )
...
old-commit-hash: 09a9ba6de1603fbcda0f883d5298b3f80f8295e1
2023-12-04 21:16:33 -08:00
Adeeb Shihadeh
f408eb207a
remove unused last_actuators arg from lateral controllers ( #30595 )
...
old-commit-hash: ce4bac8218ebcc8d0480ed09e0c1c6467f705a65
2023-12-03 15:54:18 -08:00
Adeeb Shihadeh
3a3a41741e
add carParams.passive ( #30594 )
...
old-commit-hash: bd0ab957b196694c57b125838622e9d0021ca9c0
2023-12-03 14:09:37 -08:00
Adeeb Shihadeh
1cc4f1a634
new msgs default to invalid ( #30587 )
...
* new msgs default to invalid
* fix lm
* set more valid
* update rest
* update refs
* fix logMessage
* more valids
* cleanup
* fix llk test
* pigeond is also valid
* more valids
old-commit-hash: a1d36961cf9fa0c6a9c41fe92d6504de5d36cbaa
2023-12-03 10:50:17 -08:00
Adeeb Shihadeh
e7d7501670
longitudinal tests: cleanup old hacks ( #30585 )
...
old-commit-hash: 8971e2c177b6bd9ae1006e4dcbfa4246d6d8096a
2023-12-02 10:01:28 -08:00
Adeeb Shihadeh
4394116e5b
clear non-release params on startup ( #30583 )
...
old-commit-hash: 531e62fc033b06b54f11c702dcbde5982bfe41e6
2023-12-01 23:57:54 -08:00
Adeeb Shihadeh
f38648f84b
rename carEvents -> onroadEvents ( #30577 )
...
* rename carEvents -> onroadEvents
* bump cereal
* bump cereal
old-commit-hash: b97e5b0e03a5e22ef0ae6d6f5c2523592ee25540
2023-12-01 22:48:29 -08:00
Adeeb Shihadeh
3d13288326
controlsd: remove old process replay sentinel ( #30581 )
...
old-commit-hash: 8e00ce672d78dcb2445b4bdfa1a9e557bb365233
2023-12-01 22:42:43 -08:00
Justin Newberry
b28343e276
Revert "Pytest: run tests in random order" ( #30469 )
...
Revert "Pytest: run tests in random order (#30134 )"
This reverts commit bdc0624d0320e75b521a8edcf4aebacb6ab96a75.
old-commit-hash: ba3067a560dca8d94ebf2c63b0d5fab7922c56e4
2023-11-15 10:41:11 -08:00
Justin Newberry
586fe682e4
Pytest: run tests in random order ( #30134 )
...
* enable random order
* logprint info
* revert that
* better logging
* go to dfu
* try to flash every panda if not up to date
* revert panda debugging
old-commit-hash: a5d99e0ebbfdad405ec86ca4907325926f3e0bfb
2023-11-15 10:16:51 -08:00
Vivek Aithal
f8dce94688
params: Remove separate CarParams from each daemon ( #30405 )
...
* remove separate previous route carparams from each daemon and add centrally to controlsd
* extract out sigint handler
* make process replay work for torqued
* don't write param if None
old-commit-hash: 2eb487c9a5a905b502433db2e7c5e52a52224f39
2023-11-08 15:25:41 -08:00