Dean Lee
599c07e027
panda: refactor can_recv ( #22977 )
...
* refactor
* use macro
* rebase master
* fix incorrect chunk_len
* cleanup
* type fix
* lines
* while
Co-authored-by: Igor Biletksyy <bs@privacy.im>
4 years ago
Igor Biletskyy
65ca9be82a
boardd: split usbprotocol unittest and fix paren order in data length assert ( #23065 )
4 years ago
Dean Lee
c77354009c
panda: add unit tests for usb protocol (pack/unpack) ( #22955 )
...
* prepare for unit tests
* add to selfdrive_tests.yaml
* test header
* test chunk count
* rename test function
* continue
* don't check chunks count
* test recv_can
* continue
* small cleanup
* merge master
* cleanup
* rename functions
* test different packet size
* fix operator precedence problem
* refactor unpack_can_buffer
* cleanup test
* cleanup unpack_can_buffer
* add test for multiple pandas
* rename to test_panda
* restore test_boardd
* rename to test_boardd_usbprotocol
* fix typo
* bus_offset = [0,4]
* change src
* use USBPACKET_MAX_SIZE
4 years ago
Adeeb Shihadeh
e13630dfee
faster jenkins ( #22973 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
841fb93def
boardd/can_recv_thread: improve caching for can_frame ( #22944 )
...
* better cache
* use emplace to remove copy&realloc
* rebase master
4 years ago
Adeeb Shihadeh
e8598f7455
add multipanda to loopback tests ( #22900 )
4 years ago
Adeeb Shihadeh
93d87cdc6f
test_boardd: don't modify environment at import time
4 years ago
Adeeb Shihadeh
b5960b9dc8
move nose tests to unittest ( #22665 )
...
* move to unittest
* boardd loopback
* no more nose
* phone only
* fix panda decorator
4 years ago
Robbe Derks
91987f38d4
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
4 years ago
Willem Melching
a60f3c6a35
move acados deps out of devpackages ( #22376 )
...
* move acados deps out of devpackages
* fix new pylint errors
4 years ago
Adeeb Shihadeh
f9a961f6fb
delay controls start ( #20761 )
...
* delay controls start
* shouldn't need this stuff anymore
* only delay board
* bail after 2s
* fix loopback test
* fix process replay
* update refs
* bump cereal
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Robbe Derks
935b9ceb05
Add back replay_many script for unlogging over jungles
4 years ago
Adeeb Shihadeh
6e70baa306
actually wait for boardd to start
4 years ago
Adeeb Shihadeh
144227d3d3
wait for pandad to start boardd
4 years ago
Adeeb Shihadeh
59f4ea9fe5
fix boardd loopback test after #19880
4 years ago
Adeeb Shihadeh
e6478c6b35
better can replay script
4 years ago
Adeeb Shihadeh
6c86afee16
Qt spinner ( #2494 )
...
* move android spinner
* qt spinner
* rotation
* nothing by default
* spin spin
* fix rotate
* style
* spinner for all
* -2
* unused
5 years ago
Willem Melching
3dd9448981
Params path only in one place ( #2344 )
...
* fix params paths
* Qcom & qcom2
* This env variable is not used anywhere
* params path in only one place
* fix other PARAMS_PATH references
* absolute path is probably better
5 years ago
Willem Melching
c7152d5419
Hardware abstraction class ( #2080 )
...
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
5 years ago
Willem Melching
80acb32825
Panda abstraction layer in boardd ( #1919 )
...
* start on panda abstraction layer
* handle bulk transfer in library
* Safety model abstraction
* Abstract hw type into library
* Handle disconnect
* RTC stuff
* Fan control
* Health
* Panda fw version
* Read serial
* Power saving
* Power mode
* Cleanup pigeon thread init
* Rename safety setter variable name
* Remove comment
* Unused global cleanup
* malloc -> new
* whitespace
* Use std::thread
* Use std::thread for safety setter
* Cleanup igntion_last global
* Heartbeat
* logd
* More global cleanup
* Put back sleep
* ir pwr
* Always broadcast health
* init struct with zeroes
* Fix eon build
* fix race condition
* fix Adeebs comments
* abstract can send and receive
5 years ago
Willem Melching
0ac2f6c470
make sure boardd loopback test can run standalone
5 years ago
Adeeb Shihadeh
3ff373ed0d
add UI for boardd loopback test
5 years ago
Adeeb Shihadeh
3ab0b49656
Boardd loopback test ( #1840 )
...
* start boardd loopback test
* let's try this in CI
* fix jenkinsfile
* remove old
* rename
* check msgs
* should be reliable now
* send more
5 years ago
Willem Melching
843a64c72f
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
5 years ago
Adeeb Shihadeh
f3dcf861c7
enable flake8 E303: too many blank lines
5 years ago
Adeeb Shihadeh
27754a277c
enable E261 in flake8: two spaces before inline comment
5 years ago
Adeeb Shihadeh
efd5dffb1e
enable flake8 E231: missing whitespace after comma
5 years ago
Adeeb
d9bf9f0a40
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
5 years ago
Willem Melching
23363890cd
We need that to filter out loopback bus
5 years ago
Willem Melching
559e3aa8a0
replay many update
5 years ago
Willem Melching
fc10fe69bf
handle nak error in replay many
5 years ago
Shane Smiskol
6ff881f789
initialize all messages in 1 line ( #1206 )
5 years ago
Adeeb
e8cb6ea06a
Abstract common events + event cleanup ( #1129 )
...
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
5 years ago
George Hotz
ef93a715e1
selfdrive/boardd
5 years ago