Commit Graph

133 Commits

Author SHA1 Message Date
Adeeb Shihadeh
86f4d86cd7 make calibrationInvalid a permanent alert 2020-09-04 13:20:48 -07:00
Adeeb Shihadeh
848301b091 UI vision refactor (#2115)
* refactor vision

* don't show slow frame message when in preview mode

* change draws to uint32_t

* set vision_seen=false after destroy

* remove vision_connect_thread

* refactor ui_update

* seelp 30ms when vision is not connected

* remove should_swap

* call ui_update_sizes before ui_draw

* rebase

* start bigger UI refactor

* don't need the touch fd

* fix qt build

* more cleanup

* more responsive

* more refactor

* fix for pc

* poll for frames

* lower CPU usage

* cleanup

* no more zmq

* undo that

* cleanup speed limit

* fix sidebar severity for athena status

* not aarch64

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-03 16:32:55 -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
ZwX1616
9731e7a0d7 not show soft recover alerts 2020-08-27 17:59:26 -07:00
Willem Melching
c7152d5419 Hardware abstraction class (#2080)
* hardware abstraction class

* De Morgan

* Rename pc hardware class

* Fix sound card in controlsd

* Pc get sim info

* fix hardware in test

* two more

* No more random imei on android

* no randomness on android

* Need to return something that looks like imei for registration to work

* Return proper network strength

* Unused import

* Bug fixes + gpsd is only android
2020-08-26 14:57:17 +02:00
Chris
1b52930a52 Kilometers per hour now displayed as km/h (#2032)
Fixes #2031

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
2020-08-17 11:16:52 +02:00
Adeeb Shihadeh
cb5a2996e7 NEOS background updater (#1892) 2020-08-12 11:39:21 -07:00
Adeeb Shihadeh
8e63f06540 Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
2020-08-11 16:23:57 -07:00
Adeeb Shihadeh
ee99b59bad fix missing negative limit in pid controller (#2001) 2020-08-08 11:49:13 -07:00
HaraldSchafer
490ee52687 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>
2020-08-03 15:51:56 -07:00
HaraldSchafer
8e2d344135 Misc locationd improvements (#1714)
* I like this more

* rewind less

* bump rednose

* falling off windshield detectopr

* adjust thresholds

* this is a soft disable now

* move that

* process replay fixes

* update refs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-07-30 15:33:22 -07:00
Adeeb Shihadeh
714f8c3f0b Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot

* bump cereal
2020-07-28 23:52:18 -07:00
Adeeb Shihadeh
acb25751b7 Revert "can't directly access sockets anymore", was supposed to be on branch
This reverts commit 6acda96a16.
2020-07-28 18:41:39 -07:00
Adeeb Shihadeh
6acda96a16 can't directly access sockets anymore 2020-07-28 18:37:16 -07:00
Shane Smiskol
ebadb39e42 Fix hard deceleration after user accelerates above set cruise speed (#1880)
* Fix hard deceleration after user accelerates above set cruise speed

* 2nd required change
2020-07-20 17:04:05 +02:00
Adeeb Shihadeh
5db81f60ca Fix most remaining LGTM alerts (#1893)
* fixups from LGTM

* short globals

* fix spinner and textwindow

* total ordering

* no spinner/text window when import from manager

* not android
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh
58c3b5ba84 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 a8e7a187ca.

* 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>
2020-07-14 14:23:27 -07:00
Adeeb Shihadeh
03e824a4b5 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
2020-07-09 17:02:21 -07:00
Greg Hogan
c458f5a5d3 k-line 5 init fault type (#1821)
* k-line 5 baud fault type

* update name

* bump cereal

* fix name

* add missing event
2020-07-06 09:33:16 -07:00
Adeeb Shihadeh
f1afb3e3ae 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>
2020-07-05 17:56:24 -07:00
George Hotz
cb495bb8c9 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>
2020-07-01 14:26:35 -07:00
Adeeb Shihadeh
64aeb80dcc fix blindspot detection 2020-06-30 13:44:56 -07:00
robbederks
df86c476c7 Dos (#1795) 2020-06-29 12:47:48 +02:00
Adeeb Shihadeh
ce80684f7e Add alert while in preEnabled state (#1791) 2020-06-28 20:29:42 -07:00
Willem Melching
5e254da8b3 fix wrong car mode alert 2020-06-24 18:20:30 -07:00
Adeeb Shihadeh
c4a3d7afb0 Block lane change start on blindspot detection (#1712)
* use BSM to block lane change start

* remove duplicate entry

* add approaching
2020-06-24 17:31:09 -07:00
ZwX1616
3aa99a01d7 recover EON/C2 AF (#1665) 2020-06-23 14:33:32 -07:00
Adeeb Shihadeh
51b7dc0e38 fix engage/disengage sounds 2020-06-23 10:50:24 -07:00
Willem Melching
264015c584 cleanup no sensor data alert (#1760) 2020-06-22 14:27:07 -07:00
Adeeb Shihadeh
cab96374c5 more generic alert text for wrongCarMode 2020-06-19 20:36:10 -07:00
Willem Melching
77b7d30683 Remove kernel check from controlsd 2020-06-19 16:54:42 -07:00
Adeeb Shihadeh
ccf6b80c7e Cleanup startup event handling (#1748)
* cleanup startup event

* always show permanent

* lowest

* update refs
2020-06-19 16:16:48 -07:00
Willem Melching
24de8174dc Only show gps event after 1 km (#1747) 2020-06-19 14:11:23 -07:00
Willem Melching
2b20479a5c Move kernel check to before creating the submaster, prevent SIGUSR2 2020-06-19 13:26:52 -07:00
Adeeb Shihadeh
0cda65b58e catch CalledProcessError when detecting kernel version 2020-06-19 12:42:33 -07:00
Adeeb Shihadeh
fd8514eee3 hwType is in health 2020-06-18 15:37:21 -07:00
Adeeb Shihadeh
e892d6a9d9 if sky visible 2020-06-18 14:40:57 -07:00
Adeeb Shihadeh
b3101998ed update no GPS alert for comma two users 2020-06-18 13:01:28 -07:00
Adeeb Shihadeh
6c156d7f45 NEOS update required alert (#1722)
* NEOS update required

* permanent alert

* bump cereal
2020-06-16 12:21:41 -07:00
Adeeb Shihadeh
25688f36cc Block entry on non-adaptive cruise mode (#1708)
* block entry on non-adaptive cruise mode

* user disable

* toyota
2020-06-15 18:11:50 -07:00
Adeeb Shihadeh
9e34ed4e8c bump cereal 2020-06-15 16:01:35 -07:00
Adeeb Shihadeh
92c29c4269 bump cereal 2020-06-12 20:38:45 -07:00
Willem Melching
684f7b2cc0 no gps warning after 5 minutes (#1692) 2020-06-12 16:03:35 -07:00
Adeeb
0bbe870b5f Delay alert creation for some events (#1689)
* add creation delay parameter to alerts

* 1s delay for sensorsInvalid and canError

* bump cereal

* update refs
2020-06-12 15:32:50 -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
Willem Melching
15dc6044d4 Remove slow down for turns (#1647)
* Remove slow down for turns

* update ref
2020-06-05 16:01:53 -07:00
Jason Young
68531b071c 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>
2020-06-05 17:09:41 -04:00
Adeeb
367155168a Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
Jafar Al-Gharaibeh
73db079199 Fix rounding of minSteerSpeed in events (#1620)
I thought I was missing a rounding in Mazda code, but it turned
out to be a missing rounding after the recent event refactoring

Python3 interpreter:
>>> print(" %d  %d" % (1.6,1.4))
 1  1
>>> print(" %d  %d" % (round(1.6),round(1.4)))
 2  1
>>> print(" %d  %d" % (int(round(1.6)),round(1.4)))
 2  1
>>> print(" %d  %d" % (int(round(1.6)),int(round(1.4))))
 2  1

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2020-06-03 14:01:32 -07:00
Willem Melching
2400417084 vehicle model types (#1631) 2020-06-03 13:47:47 -07:00