Commit Graph

38 Commits

Author SHA1 Message Date
Adeeb Shihadeh
b249f40f0c move clocksd to system/ (#24761)
old-commit-hash: ca682b389d75f433d28063c8d774460df0c0fa83
2022-06-06 13:27:45 -07:00
Adeeb Shihadeh
3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade7723d87a15fa6c5f5de59734897f51
2022-06-02 17:02:25 -07:00
Willem Melching
753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/hardware/hw.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/hardware/base.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2100a4f1401a93d88064ddbbbd935c1
2022-06-02 15:20:51 +02:00
Willem Melching
2c343d2fe3 navd: rewrite in python (#24621)
* navd: start python rewrite

* use enum

* send empty instruction packet

* parse banner

* cleanup

* switch to coordinate class

* add segment transition logic

* add recompute logic

* cleanup old navd code

* split out helpers

* cleanup release files

* fix typo

* fix docs

* add typing to helpers

* small fixes

* move outside of ui

* get last pos from param

* add ui restart detection

* check running

* send route

* set navInstruction to invalid with no active route

* whitespace

* do not overwrite response and use ratekeeper

* reuse params object

* remove navd exception
old-commit-hash: e72d6b5689dd95f5fd7a6558c72c2e02b37f8b12
2022-05-30 15:15:51 +02:00
Willem Melching
e45155f592 sim no encoderd, move to BLOCK env variable
old-commit-hash: 85b07bf3e878d3e430b5a857b86065588fc2d1fb
2022-05-30 11:49:15 +02:00
Gijs Koning
3947af88e8 Remove encoderd service from PC. Fixes Sim (#24676)
* Disable encoderd completely in sim
old-commit-hash: 44bffc1b3b2c8a3f661d8ab28ee8765a1bc2219c
2022-05-30 02:36:11 -07:00
George Hotz
a053d070be encoderd: enable (#24492)
* enable encoderd

* correct enable line

* fix loggerd tests

* fix power draw and cpu tests

* correct cpu for encoderd

* fix a bug, video_writer is shared

* fix issue with not recording dcam

* add recording state

* wooo tests pass. encode id keeps counting

* core 3

* loggerd then encoderd

* stop loggerd first

* core 3 always online

* see the camera when we see encoder packet

* encoderd on small core uses 37%

* remove encoder logic from loggerd

* delete unit test that doesn't really make sense anymore

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 94b9972eb798408a3c412716b8d9eb8ddb9354bc
2022-05-13 17:56:02 -07:00
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: d2eef1955c777ef6110c7a74d2a9ca9e4e1d958c
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh
5e42de3e36 body: opt-out logging (#24423)
* body: opt-out logging

* wait a bit

* little better

* fix that too

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2466233b1cf5195bc4005c647d00408c838fe1a8
2022-05-04 14:57:39 -07:00
Adeeb Shihadeh
9424f67e19 body: opt-in logging (#24416)
old-commit-hash: 670126cbf15ceecb03279e6fa9779798d905cb99
2022-05-03 23:46:59 -07:00
Adeeb Shihadeh
d097c4df26 manager: start process by callback (#24417)
old-commit-hash: cdf6338388c4f2e054de0e76eb1401a2993360ce
2022-05-03 23:30:35 -07:00
Willem Melching
b9fb3cb647 updated: only run offroad & disable automatic git garbage collection (#24269)
* updated: disable automatic git garbage collection

* set gc.autoDetach false

* add gc cloudlogs

* trigger updated

* handle exception

* trigger updated

* only while offroad

* no trigger needed

* trigger updated

* check if git gc was interrupted

* trigger updated

* dont set params when shutting down

* let manager clear params

* no offroad check anymore

* event is nicer to parse

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3063c70ff1b6277b002639679e18e2990b2296d2
2022-04-22 14:43:44 -07:00
Willem Melching
373ac5ce3d manager: cleanup ensure_running (#24270)
* manager: cleanup ensure_running

* make notcar a blocking condition

* invert last conditions

* duplicate

* always run daemon process

* comment

* typo

* make notcar like driverview
old-commit-hash: 207df4742f7eaa534cb472412bfe2621a0b8ce18
2022-04-21 16:23:39 +02:00
Adeeb Shihadeh
ae71ecf8b8 manager: start bridge and web joystick for notcars (#24212)
* manager: start bridge and web joystick for notcars

* fix that

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 76a83381977f9dd3d5b223e0dfb8e1617e2c7237
2022-04-19 14:13:05 -07:00
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: 5c48e7bc86a621dd35f4ff25da7a26ee506bac76
2022-04-18 17:55:23 -07:00
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: 1df3c869994f733579be4ff6df7e8bddf8c46c56
2022-03-24 23:07:26 -07:00
Adeeb Shihadeh
ec7f17d288 move pandad to boardd/ (#23958)
old-commit-hash: 8ac30fea24e3816622d854615b55a24440c4e53f
2022-03-13 21:21:30 -07:00
Adeeb Shihadeh
2f87bde2ff Log android system shutdown to param (#23520)
* Log android system shutdown to param

* comment

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 610b99fd6821ba1f6010659f5d65bf4863d21e36
2022-01-13 22:40:35 -08:00
Robbe Derks
323febbf37 Statsd (#23413)
* device side of statsd

* need to start it

* enable in manager

* add sleep

* cleanup

* remove aggregates for now and standardize on industry terms

* manager needs main

* need to have a try/except

* atomic_write_on_fs_tmp does not work

* cleaner

* use dump

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* one file at a time

* limit amount of files

* move to influx line protocol and cleanup

* needs to be a list

* fix timezone bug

* actually rate limit

* add to release

* normalized origin

* also log deviceType

* more stats

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1b49ce6ec401966b0c56f62ea2b71209e9d4075b
2022-01-10 15:21:48 +01:00
Adeeb Shihadeh
19b6dd15bd Revert "soundd: back to onroad only (#23236)"
This reverts commit 6709810ab7604e6fe996708278a816d13a6deb80.

old-commit-hash: c70fc7dbe5dd87f949eec7a3482ff73ce3ef3bbe
2022-01-03 16:37:35 -08:00
Adeeb Shihadeh
ab783fe661 soundd: back to onroad only (#23236)
old-commit-hash: 3bdb445c84383768d365315abdeab5dad43ccfb5
2021-12-15 14:29:32 -08:00
Adeeb Shihadeh
c142416931 soundd: configure as persistent process (#22878)
* soundd: configure as persistent process

* update c2 test

* fix that

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed8e6f857ca45a1d814dd9a98ddf5c40c6d08c20
2021-11-12 15:04:57 -08:00
Dean Lee
c1a3683ccb soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0ed548bda23b9f76458a102bf7ccf5a
2021-11-09 14:18:29 -08:00
Willem Melching
dc3075790e Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
old-commit-hash: bef686f2752bcad4bb3116c2be63157ee01eab73
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh
67a7abb492 android health daemon (#21965)
* androidd

* three strikes

* better logging

* persistent

* add to release files

* cleanup

* no cpu usage

* colon

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c8ca56dddd0ccf06bc85ed5e67b1b36f39006105
2021-08-19 16:00:05 -07:00
Adeeb Shihadeh
13b3649211 add that back
old-commit-hash: 8aafbc78f65a398b7d354a68453df15c1324eb9d
2021-08-06 15:48:16 -07:00
Harald Schafer
d55933a0dd Revert "add boardd as a managed process for tests"
This reverts commit ea7dee7a7f9bda827aab4cfe7c84f067e4608473.

old-commit-hash: fd53169adea4fb720c9cc4073bea3a8a82457115
2021-08-06 15:20:32 -07:00
Adeeb Shihadeh
0380acffc0 add boardd as a managed process for tests
old-commit-hash: fcae1997237bf982a8b2e8c49f315c0921e56157
2021-08-06 11:47:30 -07:00
Adeeb Shihadeh
65ec97ad2d watchdog: restart while onroad (#21636)
old-commit-hash: 09291b99bcd1304fb87478218b82297aa51655c9
2021-07-17 14:52:05 -07:00
Adeeb Shihadeh
6eea281a19 soundd (#21619)
* refactor alerts

* doesn't go here anymore

* soudd

* handle controls unresponsive

* same check

* fix path

* update sound test

* nice

* fix c2

* add script

* update tests

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 12948e661a6b6424739082ee614d81b4549c2753
2021-07-16 17:30:00 -07:00
eFini
777b84a064 two minor bug fixes (#21134)
old-commit-hash: 5c450026efedd7551accb542b33aeba4c76d0086
2021-06-04 21:20:02 -07:00
Joost Wooning
c0ac9bb63c convert locationd to c++ (#20622)
* live_kf to c++

* first locationd code

* Running in process_replay

* locationd handle cam_odo and live_calib

* log event handlers

* working message receiving

* compiling message sending

* correctly sending some messages

* correct receiving and sending

* update ref_commit with some all_alive_and_valid being false, minor fixes

* fix std abs

* linking on device fix

* fix cpu usage test

* generate kf constants and defines

* fix replay test

* replay without acks, cleanup

* operate on bytearray messages

* cleanup

* send msg fix

* small sleep, less flaky test

* remove python locationd

* review feedback

* bump rednose
old-commit-hash: 3420707ad58b060333246eb43db09474bb336d39
2021-04-20 11:56:43 +02:00
Adeeb Shihadeh
743535abd2 only restart crashed UI on tici
old-commit-hash: 3ecfc169e450ff13bff5c0b0170f724f485d3129
2021-03-14 20:39:48 -07:00
Willem Melching
4d6c98aa6b Add watchdog check to manager (#20277)
* this should work but doesnt

* Only offroad

* works

* make it work offorad

* reduce diff

* cleanup

* need util

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a94ba4fb8b704a5462352af4501290f63c987754
2021-03-08 19:17:46 -08:00
Willem Melching
c993097393 Process config cleanup (#20276)
* add enabled flag

* remove hack

* only prepare when enabled
old-commit-hash: 476558b547a4747119819f9684baa81c61c86e97
2021-03-08 12:18:58 +01:00
Adeeb Shihadeh
22b96822d1 also skip ubloxd in sim
old-commit-hash: 8541ac8449bc27ea2f75fe03ebbb03374a004836
2021-03-07 22:14:25 -08:00
Adeeb Shihadeh
6696320745 don't run dmonitoringmodeld in sim
old-commit-hash: a9f8fe7dca7455ed433643046c802dc5cc550f35
2021-03-07 22:02:08 -08:00
Willem Melching
c0098cec09 Manager cleanup (#20231)
* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5a3b51130649356b14b24e3c82e014b3a0be95a8
2021-03-05 11:03:23 +01:00