Commit Graph

37 Commits

Author SHA1 Message Date
ZwX1616
8574e79fec wider FOV DM on comma three (#22286)
* c3 is straightforward

* c2 transform

* c3 preview

* alpha model

* Revert "alpha model": wrong quantization data

This reverts commit b50e5739735b30d960aca22bcf3cbe23b0121e13.

* yuv looks good

* a55b

* const int

* block top deadzone

* new box alpha curve

* update k

* fix debug

* rhd use same offset

* box shift for rhd

* 7e3e

* set new thresh

* update ref

* explain

* remove e2e

* same metric thresh

* process isocc

* model

* cancel extra policy

* update numbers

* new model

* update cereal

* up cereal

Co-authored-by: Comma Device <device@comma.ai>
2021-10-13 17:00:46 -07:00
ZwX1616
dac8597a08 refactor dm pitch/yaw thresholding (#22191)
* use indiviual pitch/yaw instead of norm

* update process replay
2021-09-13 16:05:42 -07:00
ZwX1616
904f140a6d c3 dm tweak with latest data (#21982) 2021-08-20 10:34:01 -07:00
ZwX1616
00ea7c1c82 DM 0.8.8 (#21897)
* update threshs

* e392

* 40% less

* ref
2021-08-16 12:44:45 -07:00
Adeeb Shihadeh
9e0bbab9ed DM readme (#21926)
* dm readme

* raw logs

* little mroe
2021-08-13 16:18:54 -07:00
ZwX1616
0066523b88 DM model with better noise performance (#21733)
* smooth 3d4f

* update thresholds

* update ref commt

* update
2021-08-05 16:29:37 -07:00
arfy slowy
d74def61f8 fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
YassineYousfi
5cd4ebcc0b DM settings attributes (#21736)
* dm thresholds are instance attributes

* bring back DT_DMON

* use realtime

* rename
2021-07-27 14:03:18 -07:00
ZwX1616
ff573e8c4a move DriverStatus params to class (#21668)
* move to dict

* cleanup

* fix unittest

* use settings class
2021-07-23 21:18:28 -07:00
ZwX1616
751b1cbc53 Tici DM (#21699)
* 3d4 fallback

* update thresholds
2021-07-23 13:20:39 -07:00
HaraldSchafer
2aadf8beb2 Remove DM high std alert (#21501)
* cleaner

* no face and high stds is the same

* change test

* final clean

* need to deprecate
2021-07-07 17:08:55 -07:00
ZwX1616
9c60d8a7cb match wording to reality 2021-05-07 17:14:42 -07:00
Willem Melching
ae094042ad add putBool/getBool wrappers to cython params class (#20611)
* add putBool/getBool wrappers to cython class

* use new API

* some more puts

* fix mockparams arguments

* add get_bool to MockParams

* typo
2021-04-07 15:36:37 +02:00
ZwX1616
0fb00e10b1 also use e2e model output for DM policy (#20526)
* neg mining

* clean up format

* eyes less noisy

* update ref
2021-03-29 19:41:27 -07:00
Adeeb Shihadeh
000bd226aa Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
2021-02-03 19:57:30 -08:00
ZwX1616
8605ba8ab9 pyTorch DM (#19760)
* new model files

* no more rot

* no rot no diag switch

* should be correct and cache aware

* 405d7aeb

* parse new outputs

* change uncertain policy accordingly

* 1bdbd9ed

* adjust

* 0.5 is fine

* 3d4f9cab

* no face prob no loss

* clean up

* clean up test

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-28 14:02:58 -08:00
HaraldSchafer
124100d0fa remove old model packet (#19769)
* remove publisher

* move to V2

* radard new model

* fix plant

* change packety

* need hack here too

* change to new

* this has been wrong all along

* no more model msg

* subscribe to new model

* not needed anymore

* make work

* need to ignore that too

* should pass tests, needs car test

* fix process replay

* no more poly

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-19 17:15:16 -08:00
ZwX1616
88430f12f4 face icon reflects DM policy (#19842)
* send that

* draw icon based on whether active

* Update selfdrive/monitoring/dmonitoringd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-19 15:11:15 -08:00
Adeeb Shihadeh
2ab2ae1fed cleanup DM tests (#19540)
* cleanup first

* more cleanup

* little more

* little more
2020-12-19 15:06:56 -08:00
ZwX1616
d8fea41b2a use enabled flag from controlsState instead of carState (#2518)
* use enabled from controls instead of carstate

* update process replay

* rm

* fix long test

* update reff

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-12 17:30:33 -08:00
ZwX1616
faf8b1fd82 continued: Update DM awareness times (#2527)
* Gets us 6 seconds before making sound (up from 2s; 9s originally)

* Average last two awareness times

* This alert shows up every ~20 seconds, distracting

* Revert "Average last two awareness times"

This reverts commit 2fd7e7a44c708039e1692dcc14ee913ef88bb37e.

* update ref

* update test

* update ref

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2020-11-11 14:24:32 -08:00
Adeeb Shihadeh
818bd8a591 trim trailing whitespace 2020-11-05 14:11:41 -08:00
ZwX1616
21d4ac1eeb Reduced wheel touch time (#2259)
* decrease wheel touch time

* update refs

* fix unittest

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-05 14:39:24 -07:00
Adeeb Shihadeh
ef21b83937 Improve realtime performance on NEOS (#2166)
* fix setting core affinity

* dmonitoringd doesn't need rt priority

* android only gets two cores

* model and planner get core 2

* log missed cycle count

* neos update

* prod image

* revert NEOS changes

* still need this
2020-09-16 15:33:12 -07:00
ZwX1616
a2adfdb155 Cut down unnecessary DM uncertain alerts (#2157)
* cut down high std alerts

* clean comments

* uncertain curve tune

* update test gt

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-14 10:43:19 -07:00
Adeeb Shihadeh
fdbfe52927 tici driver monitoring (#2158)
* use cpu for now on tici

* pin to core 5

* fix driver view

* probably wrong

* correct this time

* RHD too

Co-authored-by: Comma Device <device@comma.ai>
2020-09-12 17:50:22 -07:00
Adeeb Shihadeh
e0004d0981 Reduce paramsd and calibrationd CPU usage (#2119)
* reduce paramsd cpu

* reduce calibrationd cpu usage

* calibration_helpers was mostly unused

* more calibration cleanup

* update refs

* fix thresholds in CPU test
2020-09-10 12:16:29 -07:00
Adeeb Shihadeh
21fbe26980 Reduce plannerd and dmonitoringd CPU usage (#2108)
* fix wasted cycles in locationd and dmonitoringd

* bump cereal

* calibrationd

* Revert "calibrationd"

This reverts commit 580051a33bc96e1e83300629e9c04817928d0851.

* this is cleaner

* calibrationd

* paramsd is driven by liveLocationKalman

* only log params once a minute

* stricter CPU usage test

* revert locationd for now

* revert calibrationd too

* revert thresholds
2020-09-01 16:41:09 -07:00
Adeeb Shihadeh
349040d958 driver monitoring cleanup (#2101)
* read rhd from param

* don't need that anymore

* fix build

* bump cereal

* read param from camerad too

* add read_db_bool helper

* bump model replay ref commit, IsRHD wasn't set
2020-08-29 17:16:00 -07:00
Adeeb Shihadeh
732df68d84 small dmonitoringd cleanup 2020-08-21 14:55:12 -07:00
Adeeb Shihadeh
31f57cb3a3 only check offroad in dmonitoringd on init 2020-08-07 10:48:03 -07:00
Adeeb Shihadeh
a7ee2a53a8 Driver view refactor (#1869)
* quick driver view cleanup

* send at correct freq

* let manager handle that

* don't block starting on driver view

* fix UI hacks

* ui cleanup

* move driver view functionality into dmonitoringd

* dmonitoring thresholds shouldnt be in UI

* remove driver view file from release files

* timeout on frontview

* bump cereal
2020-08-01 17:26:35 -07:00
ZwX1616
2cfa0edb4c EfficientNet driver monitoring (#1907)
* e96f9be6

* bump cereal

* filter sunglasses

* fix unittest

* update refs

* udpate refs

* update refs

* add tolerance for dmonitoringd

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-07-27 20:22:06 -07:00
eFini
75565b0635 gas pressed treats as driver engaged (#1895) 2020-07-20 15:20:24 +02:00
ZwX1616
c2be31c10b Revert "EfficientNet driver monitoring (#1866)"
This reverts commit 2d0e994674.

Need to fix test
2020-07-17 18:20:04 -07:00
ZwX1616
2d0e994674 EfficientNet driver monitoring (#1866)
* e96f9be6

* bump cereal

* filter sunglasses

* fix unittest

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-07-17 15:34:02 -07:00
Adeeb
d4858e5ff5 Move driver monitoring out of controls (#1642)
* move dmonitoring out of controls

* run monitoring unit tests in CI
2020-06-09 13:25:15 -07:00