Adeeb Shihadeh
cd2756da23
don't run ublox procs without ublox ( #26965 )
...
* pigeond: don't run if ublox missing
* same for ubloxd
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6861c99991
2 years ago
Adeeb Shihadeh
400c294670
remove dead libdiag.h ( #26951 )
...
old-commit-hash: c91679c2d4
2 years ago
Dean Lee
2023a4de21
sensord: add helper function verify_chip_id to I2CSensor ( #25830 )
...
old-commit-hash: 6acf4e26b8
2 years ago
Dean Lee
f54d8b9f04
Sensord: remove unused pm_mutex ( #26705 )
...
remove unused mutex
old-commit-hash: f84b1f2d9f
3 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
Kurt Nistelberger
c2225a4943
QuectelGPS: add supl server ( #26259 )
...
add supl server
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 8f70a84a41
3 years ago
Kurt Nistelberger
5b90a8ce15
quectel no sim GPS support ( #26227 )
...
* add no sim gps support
* address comments
* remove xtra assistance enabling
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 16b7d726b3
3 years ago
Kurt Nistelberger
31c9cdd5a0
remove null effect assert
...
old-commit-hash: 8809116a26
3 years ago
Kurt Nistelberger
cadd6be7a1
rawgpsd: log + skip unknown responses ( #26043 )
...
* skip DIAG_EVENT_REPORT_F events
* .
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 549452f84d
3 years ago
Kurt Nistelberger
76f9a1487c
GPS test station first unittests ( #25950 )
...
* init gps test
* gps test v1
* add static signal gen script
* update readme
* remove LD_PRELOAD by using rpath, update values after testing
* remove LD_PRELOAD
* update fuzzy testing
* address comments
* cleanup
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 54d667aa15
3 years ago
Kurt Nistelberger
52e592ddc1
add extra logging for rawgpsd opcode crash
...
old-commit-hash: 182c5c4810
3 years ago
HaraldSchafer
549a65d51e
rawgpsd: publish ephemerides ( #25931 )
...
* add svpoly parsing
* Publish poly
* add source check
* add safety check for invalid gpsWeek values
* address PR comments
* add qcom ephemeris source type
* bump cereal and laika
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 57a82ced28
3 years ago
Adeeb Shihadeh
c31c77668f
safer modem manager commands ( #25999 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1f5187892f
3 years ago
Adeeb Shihadeh
3e2f436d4c
auto-detect pigeon or quectel ( #25991 )
...
* auto-detect pigeon or quectel
* persistent
* fix sim
* fix process replay
* fix locationd unit tests
* fix that
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 01d05f66fe
3 years ago
Adeeb Shihadeh
946a603f32
rawgpsd: more robust + simple test ( #25977 )
...
* rawgps cleanup
* wait for modem manager
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e59008bf93
3 years ago
Adeeb Shihadeh
a7b67fec01
pigeond: prevent locking up a CPU core ( #25979 )
...
old-commit-hash: 6a8a38b1a1
3 years ago
Adeeb Shihadeh
fa3e33b8e8
agnos 6.1 ( #25973 )
...
* agnos 6.1
* staging manifest
* no casync
* prod manifest
old-commit-hash: ef24c0b2ce
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
Lee Jong Mun
5020d45b57
update system.hardware import path ( #25889 )
...
old-commit-hash: d997d40f17
3 years ago
Kurt Nistelberger
eaca9b10b7
pin sensord and lsm interrupt to core 1, for better timing ( #25867 )
...
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 755f24885a
3 years ago
Kurt Nistelberger
29d15e1f3b
sensord: move sensors in lowest power mode on exit/kill ( #25787 )
...
* add low power modes
* add sleep to lsm gyro init
* bmx055 gyro has a 30ms wakeup time from deep suspend
* Sensord skip init values, first 500ms (#25775 )
* remove lsm gyro sleep, handled by general cut
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: bcf31aea07
3 years ago
Dean Lee
b750859d52
sensord: remove unnecessary brace pair ( #25816 )
...
Remove unnecessary brace pair
old-commit-hash: 1a7d6665de
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
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
3 years ago
Robbe Derks
78881cf731
Pigeond ( #25561 )
...
* split out pigeond from boardd
* also want to turn off power
* fix manager calls
* move to sensord folder
* release files:
* add assistnow code
* no bare except
* add test script to test TTFF
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 13489d092e
3 years ago
HaraldSchafer
b3dd79b720
Qcom use laika timestamp ( #25344 )
...
* Qcom location: use laika to generate unix timestamp
* bump laika
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 54e54fb585
3 years ago
HaraldSchafer
21ccf4a6fd
Quectel unix timestamp ( #25329 )
...
* Use laika
* Fix bug
* Better timestamp name
* Better name
* bump cereal
old-commit-hash: 32201bbbbd
3 years ago
HaraldSchafer
0fcd3d4e51
Gather quectel GPS data ( #25300 )
...
* bump cereal
* Use old name
* back to default
old-commit-hash: 98146f5858
3 years ago
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
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
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
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
Dylan Herman
2dfba97175
add mypy check for return-any ( #24379 )
...
* add mypy check for return-any
* remove unused import
* typing
* remove unnecessary variable typing
* cleanup
* cleanup
* bump submodules
* small fixes
* only a problem on mac
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
3 years ago
George Hotz
1dc3805193
rawgps: add oemdre support ( #24059 )
...
* oemdre works
* fast receive
* parse oemdre
* parsing dre
* parsing oemdre
* unused import
* remove unparsed msgs
* import, don't redefine
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5af52627de
3 years ago
Comma Device
071c9f585d
rawgps: add comments to satelite struct
...
old-commit-hash: c095e7b153
3 years ago
Comma Device
a014a4b18e
rawgps: fix crash, disable DPO
...
old-commit-hash: 98cde5848e
3 years ago
George Hotz
e929e32bc7
sensord: add support for Quectel raw gps ( #24027 )
...
* connecting to rawgps
* dumping rawfps packets
* this works, but it might be useless
* fix parsing
* parsing 0x1476
* compare
* compare better
* refactoring
* parsing and broadcasting GPS packet
* glonass support
* compare using submaster
* fix compare for glonass
* update cereal
* make linter happy
* other linter issue
* last mypy complaints
* add support for publishing gpsLocationExternal
* set flags to 1 to match ubloxd
* ready to ship
* qcomdiag
* use unused variables
* last one
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1df3c86999
3 years ago
Willem Melching
efa265a720
Make BMX055 optional if MMC5603NJ present ( #22698 )
...
old-commit-hash: b078d8e425
4 years ago
Greg Hogan
a61f2a8362
fix cd in process scripts ( #21806 )
...
* ui: fix cd in launch script
* do the rest
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3a578cb5b5
4 years ago
arfy slowy
63b3d6024b
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f8
4 years ago