Commit Graph

17 Commits

Author SHA1 Message Date
Adeeb
d976233f69 Alerts + Events refactor (#1466) 2020-05-14 15:21:21 -07:00
Willem Melching
516fa29738 Fix controlsd typo in refactor 2020-05-12 18:58:18 -07:00
Adeeb
08832ff29d 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
2020-05-12 15:06:48 -07:00
Willem Melching
2b2751c6bd Show relay malfunction alert (#1373)
* show relay malfunction alert

* Remove empty line

* Also immediate disengage

* Forgot noEntry

* Fix name
2020-04-16 11:38:31 -07:00
Willem Melching
7643b0a511 Force decel on soft disable (#1334) 2020-04-08 14:59:17 -07:00
Andre Volmensky
522dc29b53 Add angle based steer saturation timer (#1311)
* Add angle based steer saturation timeout

* Fixed saturated check
2020-04-05 10:59:54 -07:00
eFini
106be23c4e use put_nonblocking when possible (#1288)
* use put_nonblocking when possible

* revert uneeded changes
2020-03-31 12:09:38 -07:00
Willem Melching
3cb1568a54 High speed alert (#1295)
* add speed to high alerts

* Add permanent alert

* Two lines

* No permanent alerts

* Less bad alert

* Typo
2020-03-30 18:41:56 -07:00
Willem Melching
1df6b67511 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
2020-03-27 21:44:59 -07:00
ZwX1616
a95e61edf4 add webcam to cameras (#1201) 2020-03-26 19:19:47 -07:00
Willem Melching
d08b56317f Go to dashcam mode if locked out, fixes #1109 2020-03-18 11:38:00 -07:00
Shane Smiskol
6ff881f789 initialize all messages in 1 line (#1206) 2020-03-05 17:32:52 -08:00
HaraldSchafer
63d3bb517f 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>
2020-03-04 18:51:45 -08:00
ZwX1616
6322a275d6 dmonitoringd (#1016) 2020-01-30 19:12:44 -08:00
Willem Melching
b7aeb5d64d Cache FW query (#1025)
* split fw query and matching

* Read cached firmware versions

* add tests

* this works
2020-01-30 17:57:20 -08:00
Adeeb
f13c5d74aa disable LDW when calibration is incomplete (#984) 2020-01-20 21:43:38 -08:00
George Hotz
b0260dadba selfdrive/controls 2020-01-17 12:48:30 -08:00