Adeeb Shihadeh
86b6103657
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
old-commit-hash: c59887c810
11 months ago
Adeeb Shihadeh
cc4f53e6c6
manager: move to system/ ( #32538 )
...
* manager: move to system/
* one more
old-commit-hash: accdade4cf
11 months ago
cl0cks4fe
639a634f7c
Unittest to pytest ( #32366 )
...
* add pytest-asyncio
* switch common
* switch selfdrive
* switch system
* switch tools
* small fixes
* fix setUp and valgrind pytest
* switch to setup
* fix random
* switch mock
* switch test_lateral_limits
* revert test_ui
* fix poetry.lock
* add unittest to banned-api
* add inline ignores to remaining unittest imports
* revert test_models
* revert check_can_parser_performance
* one more skip
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528
11 months ago
Justin Newberry
efaa3ea500
Pytest: default settings on PC improvements ( #30441 )
...
* always multithreaded
* multithreaded
* pkill correct process
* escape more
* load for interfaces
old-commit-hash: 2ad82cbfb0
1 year ago
Justin Newberry
3027a428cb
Pytest: tici mark for skipping on-device tests ( #30412 )
...
* mark tici
* not those ones
* missed that one
* add those
* add pypoetry
* oops
old-commit-hash: aec7cea30d
1 year ago
Adeeb Shihadeh
c3aa58b492
cleanup up old lib64 references ( #30246 )
...
* cleanup sensord
* rm rest
* fix that
* update that
old-commit-hash: f0aa631818
2 years ago
Shane Smiskol
13381ed446
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
old-commit-hash: 7f073483bb
2 years ago
Adeeb Shihadeh
1bbc16633c
sensord: test update for provisioning ( #29942 )
...
sensord: update for provisioning
old-commit-hash: ccc8e099b6
2 years ago
Adeeb Shihadeh
6a3da36632
sensord: test updates for provisioning ( #29768 )
...
* sensord: test updates for provisioning
* fix
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0908be80bd
2 years ago
Adeeb Shihadeh
0ae2523a16
sensord: lower temperature sensor freq to 2Hz ( #29563 )
...
old-commit-hash: 42769345d5
2 years ago
Adeeb Shihadeh
5c213d7a38
sensord: setup per-sensor threads ( #29558 )
...
* sensord: setup per-sensor threads
* revert cereal
* more cleanup
* bump cereal
* update test
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6a66b75556
2 years ago
Adeeb Shihadeh
29977caa45
sensord: rm light sensor ( #29503 )
...
old-commit-hash: f5071411cb
2 years ago
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 db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Adeeb Shihadeh
3dfd770fb0
tici: speedup power save setting ( #29100 )
...
* speedup
* update type
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d92c9aef23
2 years ago
Robbe Derks
8a29a9ca43
Increase expected sensor frequency for LSM6DS3 ( #28863 )
...
expected freq of lsm accel/gyro is 104Hz
old-commit-hash: c0e88991b0
2 years ago
Adeeb Shihadeh
3d9dfbf2bd
tizi: affine IRQ by action instead of number ( #27811 )
...
* tizi: affine IRQ by action instead of number
* do camera irqs
* debug script
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 038d34aa7f
2 years ago
Adeeb Shihadeh
dd59af2a15
sensord: remove hardcoded irq from test ( #27759 )
...
* sensord: remove hardcoded irq from test
* fix linter
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 08be9eed08
2 years ago
Adeeb Shihadeh
47d30174d3
sensord: move to system/ ( #27531 )
...
* sensord: move to system/
* add gitignore to releaes files
old-commit-hash: 6f40f0d442
2 years ago
Kurt Nistelberger
6817dc2abe
sensord: lsm self test ( #25855 )
...
* lsm self test v1
* add lsm6ds3 accel self test
* add self test for lsm6ds3 gyro
* add c variant self test
* code CleanUp
* address PR comments
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: e4cd8a15db
3 years ago
Adeeb Shihadeh
1ade0ce47d
sensord: test fixups ( #25935 )
...
* sensord: test fixups
* fix linter
* check freq
* fp seems reliable
* clean that up
* update refs
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Bruce Wayne <batman@z840-provisioning.internal>
old-commit-hash: 80c40048cb
3 years ago
Kurt Nistelberger
fb06d2769f
Sensor events splitup ( #25714 )
...
* PoC of reading sensors via interrupts instead of polling
* add Gyro and draft for magn
* add more functionality to gpio.cc
* change LSM gyro to interrupt
* resolve rebase conflict
* update BMX accel interrupt impl
* add interrupt collector thread to fetch in parallel
* change get_event interface to return true on successful read
* update BMX gyro interrupt impl
* update gpio.h/.cc according to comments
* address comments, rename Edgetype enum
* Edgetype to EdgeType
* update sensor interrupt interface
* add error handling, and read fd on trigger
* avoid sending empty messages
* fix build
* use gpiochip
* less diff
* gpiochip on both edges, but skip falling edge if rising edge is detected
* init last_ts with 0
* update sensord testcases
* update sensord testsweet
* test for pipeline
* readd with_process
* add null check
* move tests update to seperate PR
* sensord: improve test coverage (#25683 )
* update sensord-interrupt testsweet
* address review comments
* inc stddev threshold
* fix format string
* add version 0 check again
* relax strictness after c3 with bmx tests
* relax strictness after tests
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
* address PR comments
* fix typo
* remove 4ms limit, and skip first 0.5sec of data
* revert disable_interuppt change to destructor
* fix and remove timing skip
* make gpiochip generic
* sensord port
* change from sensorEvents to separated events
* fix gyro usage
* add splitted sensor tests
* modify debug script sensor_data_to_hist.py
* refactor get_event interface to remove sensorEvent message type
* update locationd to non sensorEvent usage
* tmp commit
* fix replay
* fix accelerometer type
* fix sensor to hist debug script
* update sensord tests to split events
* remove rebase artifacts
* port test_sensord.py
* small clean up
* change cereal to sensorEvents-splitup branch
* upate sensorEvents in regen
* fix route generation for splitted sensor events
* regen cleanUp from sensorEvents change
* .
* remove light and temp from locationd
* add generic init delay per sensor
* .
* update routes
* move bmx gyro/accel to its own channel
* adopt sensor tests to bmx channel
* remove rebase artifacts
* fix sensord test
* handle bmx not present
* add bmx sockets to regen
* .
* .
* code cleanUp
* .
* address PR comments
* address PR comments
* address PR comments
* lsm clean up
* readd sensorEvents
* rever regen.py
* .
* update replay refs
* move channels
* fix artifact
* bump cereal
* update refs
* fix timing issue
Co-authored-by: Bruce Wayne <batman@workstation-eu-intern2.eu.local>
Co-authored-by: gast04 <kurt.nistelberger@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 29d3ed2ce6
3 years ago
Adeeb Shihadeh
ca3d5d61e2
test_sensord: get 10s of events
...
old-commit-hash: 51e296733d
3 years ago
Adeeb Shihadeh
6731c6b61c
sensor tests: bump light sensor threshold
...
old-commit-hash: 2a30da6698
3 years ago
Adeeb Shihadeh
4deed0c449
sensor test fixups ( #25818 )
...
* sensor test fixups
* fix that
* little more
* seems reliable now
* kill old instances
* unused
* cleanup
Co-authored-by: Bruce Wayne <batman@z840-provisioning.internal>
old-commit-hash: 10f08a94dd
3 years ago
Kurt Nistelberger
2f8c53ff87
sensord test: stop sensord if interrupts not enabled ( #25792 )
...
* stop sensord if interrupts not enabled
* move to tearDown
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 03314b3ddf
3 years ago
Kurt Nistelberger
2b335169b2
Sensor tests speedup ( #25776 )
...
* speed up sensor test
* remove sensord dependency
* address comments
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 3058437dd1
3 years ago
Kurt Nistelberger
94e586ccf7
add hardware init to sensor tests
...
old-commit-hash: 467bbffa0f
3 years ago
Kurt Nistelberger
c3d7152d38
make test_sensord executeable
...
old-commit-hash: c64230c4a8
3 years ago
Willem Melching
7451db46cf
sensord: use interrupts to improve LSM6DS3 timing accuracy ( #24525 )
...
* change LSM6DS3TR(-c) gyroscope and accelerometer to interrupt
* add pthread for linking
* add interrupt collector thread to fetch in parallel to non interrupt based sensors
* change get_event interface to return true on successful read
* fetch sensor interrupts via gpiochip
* avoid sending empty messages (interrupt only, non interupt magn can leave a gap in the orphan block)
* add verifier script to sensor interrupts (sensor_data_to_hist.py)
* add/update sensord testsweet (test_sensord.py)
* add poll timed out check
* unexport interrupt gpio pins
* gpiochip on both edges, but skip falling edge if rising edge is detected, this is handled in the sensor as the status flag is checked if new data is availble
* add test to sensord to verify 100Hz interrupt frequency
* add sensor shutdown/low power mode functionality on sensord exit
* relax test, will be readded in the splitup PR
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 84a3c355e5
3 years ago
Adeeb Shihadeh
3308e740ea
pigeond tests ( #25630 )
...
* start pigeond tests
* sm checks
* add some types
* little more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4bb399ba3c
3 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Willem Melching
95bbb74c81
Add sensord test to Jenkins ( #24524 )
...
* Add sensord test to Jenkins
* add second configuration
* add other configs too
* rename
* move into existing HW tests
old-commit-hash: 822ea1fbd9
3 years ago