Commit Graph

112 Commits

Author SHA1 Message Date
HaraldSchafer 122118ccd4 add fall filter and less FP on posenet (#1971)
* add fall filter and less FP on posenet

* add alert

* list

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 490ee5268712c38f738161cab939c02573581ebf
2020-08-03 15:51:56 -07:00
Adeeb Shihadeh 224b7fd34b Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot

* bump cereal
old-commit-hash: 714f8c3f0bf8fa98a4619763d46ecb3ea29bc9f6
2020-07-28 23:52:18 -07:00
Adeeb Shihadeh 6e7fde5d61 Revert "can't directly access sockets anymore", was supposed to be on branch
This reverts commit 1046c572b4e49608137f687263d443eab6c430f8.

old-commit-hash: acb25751b75059a6e212192064528afe0ebd5e03
2020-07-28 18:41:39 -07:00
Adeeb Shihadeh 59ade6c2f6 can't directly access sockets anymore
old-commit-hash: 6acda96a163ad77f2f0b283712ac79b3d3d90d54
2020-07-28 18:37:16 -07:00
Adeeb Shihadeh c374f03187 Revert modeld vipc conflate behavior and alert on dropped frame percent (#1877)
* Revert "Fix modeld dropping frames if processing takes over 50 ms"

This reverts commit fb908877a50d72e20a047bd4138316b12c8a30cc.

* track frame drop

* fix unused

* alert on frame drop perc

* reduce thresholds

* posenet is invalid on non-consecutive frames

* Refactor filter time constant

* Use vipc_dropped_frames for posenet valid check

* Actually set frame drop percentage

* Add explicit cast just to be sure

* Prevent frames dropped to go up to quickly on startup

* bump cereal

* reduce soft disable threshold to 1%

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 58c3b5ba84f6c3da3c660770148cea98c708fce5
2020-07-14 14:23:27 -07:00
Adeeb Shihadeh a1dbb38a0c Alert when modeld is lagging by more than a frame (#1823)
* alert when modeld is lagging by more than 1 frame

* log frameAge in modelData

* set posenet valid

* compute frame_age once
old-commit-hash: 03e824a4b558daa15191408e88b73fee7ab1792f
2020-07-09 17:02:21 -07:00
Adeeb Shihadeh 0d79150606 Sound test (#1820)
* WIP sound test

* it does something

* refactor

* phone only

* update release files

* test sound card init

* add to CI

* check writes

* increase time

* unused

* only build cereal

* small tolerance

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f1afb3e3ae4b95a1de0262d1408c49093c5ada6f
2020-07-05 17:56:24 -07:00
George Hotz 70dbce450c Add an SSH param to disable updates (#1807)
* disable updates with optional param

* dont create the alert

* Revert "dont create the alert"

This reverts commit 7179a6c8b4b4656e0b203b5a590b33d3388aa9c9.

* keep alert, but allow engagement

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cb495bb8c9af8b9347bfe3cf4b59baf1f6d10482
2020-07-01 14:26:35 -07:00
robbederks 4b2775add9 Dos (#1795)
old-commit-hash: df86c476c76f53d385d3c8df63d27588dde3dccd
2020-06-29 12:47:48 +02:00
Adeeb Shihadeh 17fc7e2bec Add alert while in preEnabled state (#1791)
old-commit-hash: ce80684f7ec6a61d8e4f08471611a30562707154
2020-06-28 20:29:42 -07:00
Adeeb Shihadeh 55225dcd56 Block lane change start on blindspot detection (#1712)
* use BSM to block lane change start

* remove duplicate entry

* add approaching
old-commit-hash: c4a3d7afb0a190ea0abcf3deb0ec754b31de2cb3
2020-06-24 17:31:09 -07:00
ZwX1616 9bca4bfb20 recover EON/C2 AF (#1665)
old-commit-hash: 3aa99a01d7a29c69f1b767b3fca30d18a6047425
2020-06-23 14:33:32 -07:00
Willem Melching 6dc1c6e58e cleanup no sensor data alert (#1760)
old-commit-hash: 264015c584a0a010ba5f63af67da2e6bddebbea4
2020-06-22 14:27:07 -07:00
Willem Melching df9cd4dadd Remove kernel check from controlsd
old-commit-hash: 77b7d306834feeba6ac131bfa438465e18d0a3f2
2020-06-19 16:54:42 -07:00
Adeeb Shihadeh e8ced8bee5 Cleanup startup event handling (#1748)
* cleanup startup event

* always show permanent

* lowest

* update refs
old-commit-hash: ccf6b80c7e5aa24b922ed60a519eab91a1d5ec9b
2020-06-19 16:16:48 -07:00
Willem Melching c9e2c38f91 Only show gps event after 1 km (#1747)
old-commit-hash: 24de8174dcb59fea10402060b8dd1db6ecdaf0f5
2020-06-19 14:11:23 -07:00
Willem Melching 390b28cd11 Move kernel check to before creating the submaster, prevent SIGUSR2
old-commit-hash: 2b20479a5c37eeefe6ef6c3b91016c7d5874af30
2020-06-19 13:26:52 -07:00
Adeeb Shihadeh ac0bdce786 catch CalledProcessError when detecting kernel version
old-commit-hash: 0cda65b58e4cb452ac2c3e8a45e3bf7e2905b32f
2020-06-19 12:42:33 -07:00
Adeeb Shihadeh 092cb5a021 NEOS update required alert (#1722)
* NEOS update required

* permanent alert

* bump cereal
old-commit-hash: 6c156d7f45ee21f77fbafcb9867fb0712adb53f5
2020-06-16 12:21:41 -07:00
Willem Melching 415c336c41 no gps warning after 5 minutes (#1692)
old-commit-hash: 684f7b2cc073010eb9e9cebfecbf1205be17d5a8
2020-06-12 16:03:35 -07:00
Adeeb f396864fab Delay alert creation for some events (#1689)
* add creation delay parameter to alerts

* 1s delay for sensorsInvalid and canError

* bump cereal

* update refs
old-commit-hash: 0bbe870b5f90c25427c4d21cabe4a0f78291eee9
2020-06-12 15:32:50 -07:00
Jason Young ebed52527b Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071cde6fa5856d9b68bed63ecb50e03c2a
2020-06-05 17:09:41 -04:00
Adeeb Shihadeh 37a67a2a14 enable flake8 E502: backslash is redundant between brackets
old-commit-hash: 6466ec982aa47bcbbc7c6a3a7cf60cec0163be84
2020-05-31 17:41:18 -07:00
Adeeb Shihadeh 9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c73b47c52b5dd77a8f1f8858005ae18b
2020-05-31 17:21:11 -07:00
Willem Melching 168ac65d9e White panda no longer supported
old-commit-hash: 106cddb49a3c60449a0413ff28dbbe50479c43bf
2020-05-31 13:33:56 -07:00
Adeeb 5e857427ba 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
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
Adeeb Shihadeh 2feaebfc80 break canError into two separate events
old-commit-hash: 916448af25d61a9acf1d35356fafccdfc800c440
2020-05-29 12:00:41 -07:00
Willem Melching 4061f1d530 Add permanent CAN error alert (#1549)
* Add permanent CAN error alert

* canValid needs some time to initialize

* update ref
old-commit-hash: fcf879d783c345ccbf80252de23f649427c35fbd
2020-05-21 16:08:05 -07:00
Willem Melching e57247be9d Sounds available isdir -> isfile
old-commit-hash: 41da10ff38abfb29c42e66250344176da14e2f65
2020-05-21 14:46:18 -07:00
Adeeb Shihadeh 982aacb28d fix possible FileNotFoundError
old-commit-hash: 260e6aff53f5f579298f81e1d3a01a0e1d6dc7fb
2020-05-21 09:59:39 -07:00
Willem Melching b2fb4632cd Fix #1545, sensor alert on startup
old-commit-hash: 9f0eac90895d9fc4cc4ab782d61f31d3b5ab9685
2020-05-20 11:25:55 -07:00
Willem Melching 6e41973c3c Handle posenet and sensor alerts in locationd (#1541)
* handle posenet and senor alerts in locationd

* defaults now set in capnp file

* Cleanup c++ version of params learner

* update ref commit
old-commit-hash: d099e09fb77544eb00d13ba9aea34a0a3374a52e
2020-05-19 16:45:20 -07:00
Andre Volmensky f6c2c72851 Bugfix: Reset saturated_count if angle no longer saturated (#1522)
old-commit-hash: 135385c5fb47ca1b9efaf3ae9e388b44cd6e538d
2020-05-16 01:14:10 -07:00
Willem Melching a6676b8a62 White panda is deprecated (#1516)
* Start white panda deprecation

* Unify alert text

* Add noentry

* Change to no longer supported

* panda is lowercase

* Capitalize

* rerun ci
old-commit-hash: c85b174584b1281ce1f1d168b0b0610d5d540896
2020-05-15 13:00:00 -07:00
Adeeb 48340cc8cb Alerts + Events refactor (#1466)
old-commit-hash: d976233f696040cd5f9a5081c7b21742b7aaef66
2020-05-14 15:21:21 -07:00
Willem Melching ef6640c7c4 Fix controlsd typo in refactor
old-commit-hash: 516fa29738738b73b863597c4fae49cf688b7154
2020-05-12 18:58:18 -07:00
Adeeb fe106e25a3 Controlsd refactor (#1487)
* it's a class

* more refactor

* remove that

* car interface should create that

* that too

* not a dict

* don't create permanent events every iteration

* break up long lines

* fix honda

* small optimization

* less long lines

* dict is faster

* latcontrol less args

* longcontrol less args

* update profiling script

* few optimizations

* create events together

* clean up

* more clean up

* remove comment

* clean up

* simplify state transition

* more clean up

* update comments
old-commit-hash: 08832ff29d20348ebffd0ac3bcce29ad3a479cee
2020-05-12 15:06:48 -07:00
Willem Melching e07d6c35b1 Show relay malfunction alert (#1373)
* show relay malfunction alert

* Remove empty line

* Also immediate disengage

* Forgot noEntry

* Fix name
old-commit-hash: 2b2751c6bdb3a4bf537b14467182c4b5186b30db
2020-04-16 11:38:31 -07:00
Willem Melching adaede6b37 Force decel on soft disable (#1334)
old-commit-hash: 7643b0a51100ab4318dc687545fbc120677ba9b8
2020-04-08 14:59:17 -07:00
Andre Volmensky 613e84efe0 Add angle based steer saturation timer (#1311)
* Add angle based steer saturation timeout

* Fixed saturated check
old-commit-hash: 522dc29b53c29bc800af84ab5a196d226bf924a6
2020-04-05 10:59:54 -07:00
eFini 7d25d238a3 use put_nonblocking when possible (#1288)
* use put_nonblocking when possible

* revert uneeded changes
old-commit-hash: 106be23c4e20f30dbedd3a2cddaec78584d726c5
2020-03-31 12:09:38 -07:00
Willem Melching aa8ca1819d High speed alert (#1295)
* add speed to high alerts

* Add permanent alert

* Two lines

* No permanent alerts

* Less bad alert

* Typo
old-commit-hash: 3cb1568a546426eb36c0e206db9dea23aa7a886a
2020-03-30 18:41:56 -07:00
Willem Melching 0d03fad5b6 Nissan leaf (#1275)
* split out leaf and xtrail

* Add brake pedal

* This should work

* Fix test car models + bump panda

* Combined cruise enabled detection in single message

* Proper frequency checks

* Add doors

* Blinkers and doors

* Seatbelt

* Gear

* Add cancel message

* Unify steering pressed

* Remove angle limit

* Add steer saturation alert for angle based control

* Add set speed

* Change wheel speed factor

* Fix offset in set speed

* Timeout on engage for steer saturated

* Put counter back

* try cancel using seatbelt

* Try different cancel message

* Rename cancel signal

* Add LKAS alert

* Add missing fingerprint values

* Update test car models

* Add some comments
old-commit-hash: 1df6b67511e0872c134edef0eb8535d71e0b2cfd
2020-03-27 21:44:59 -07:00
ZwX1616 a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4176c034c0537293a3cf0753c45daa1
2020-03-26 19:19:47 -07:00
Willem Melching c3d7d8d6af Go to dashcam mode if locked out, fixes #1109
old-commit-hash: d08b56317fe31eadc1cffca8f1076acdd2144943
2020-03-18 11:38:00 -07:00
Shane Smiskol 682c866a55 initialize all messages in 1 line (#1206)
old-commit-hash: 6ff881f7894d0117099787e56ec0966bfc63fa7c
2020-03-05 17:32:52 -08:00
HaraldSchafer 544d198bed Pulse desire (#1172)
* initial

* compilation fixes

* add desire

* pulse desire

* 0d5728f6-a918-40a6-bce3-a9d0f1238180/20

* cleaner

* inject model

* inject model

* test runs

* ah already done I see

* remove useless

* update

* updates, doesnt work

* fix generating new references

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

old-commit-hash: 63d3bb517fdac3d953e67ca4a16f2c742388cdc5
2020-03-04 18:51:45 -08:00
ZwX1616 2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6
2020-01-30 19:12:44 -08:00
Willem Melching 1dee8638d6 Cache FW query (#1025)
* split fw query and matching

* Read cached firmware versions

* add tests

* this works

old-commit-hash: b7aeb5d64d
2020-01-30 17:57:20 -08:00
Adeeb 92a6873977 disable LDW when calibration is incomplete (#984)
old-commit-hash: f13c5d74aa
2020-01-20 21:43:38 -08:00