Commit Graph

104 Commits

Author SHA1 Message Date
Willem Melching
8581c25600 fix spinner
old-commit-hash: 7a1e229a9a
2020-07-23 17:51:45 +02:00
Adeeb Shihadeh
cd317b0780 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
old-commit-hash: 5db81f60ca
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh
77fd84b99a openpilot isn't capitalized
old-commit-hash: 3983186700
2020-07-07 14:59:30 -07:00
Adeeb Shihadeh
f74865bedf Refactor CPU usage test (#1802)
* pull CPU usage test out of manager

* remove that

* add to release files

* cleanup

* executable

* this should work

* check if car started procs are running

* debug

* add min cpu usage

* remove debug prints

* adjust min cpu threshold

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6db7fa8c03
2020-07-03 15:40:13 -07:00
Adeeb Shihadeh
10be5dad65 flippening is only for android
old-commit-hash: ec8b69cb14
2020-06-30 14:01:40 -07:00
Willem Melching
dacbb1a388 make sure everything runs before ending test (#1741)
old-commit-hash: 5198457ca0
2020-06-18 17:50:01 -07:00
Adeeb Shihadeh
d231b3a7ec don't clear scons cache in CI
old-commit-hash: cf72a4eb34
2020-06-10 17:49:34 -07:00
Adeeb Shihadeh
dec3861197 don't reboot on PC
old-commit-hash: dc68b4defd
2020-06-09 17:38:42 -07:00
Adeeb
ea0292d86e Move driver monitoring out of controls (#1642)
* move dmonitoring out of controls

* run monitoring unit tests in CI
old-commit-hash: d4858e5ff5
2020-06-09 13:25:15 -07:00
Willem Melching
c8d5b49a44 Paramsd can now be killed normally
old-commit-hash: e3ffdf3647
2020-06-03 11:11:06 -07:00
Willem Melching
adc846c1fd run deleter when offroad
old-commit-hash: 6e0bb25ab4
2020-06-02 17:39:58 -07:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72f
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c
2020-05-31 14:07:29 -07:00
Willem Melching
5fb17dc296 Enable new params learner for improved vehicle model estimation
old-commit-hash: a0adc44821
2020-05-31 13:36:27 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e
2020-05-31 12:49:11 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b2
2020-05-28 15:05:04 -07:00
Willem Melching
207dff6092 turn locationd back on
old-commit-hash: ed5284f9b3
2020-05-15 13:53:45 -07:00
George Hotz
d7fcbc9c4b remove locationd from car started processes for now
old-commit-hash: 7c71a14a89
2020-05-08 20:30:57 -07:00
William
798e1a8908 Shebang Fix (#1477)
* Shebang Fix

Per George's "I'd merge a PR replacing the 4 python3.7 with python3" on Discord. George updated Python to 3.8.2 for webcam tools, which broke manager from launching. Instead of chasing the exact version, it seems more reasonable to fall back to 3.

* More Python3.7's
old-commit-hash: aef01f4bdf
2020-05-08 18:08:11 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b4
2020-04-15 16:48:44 -07:00
Willem Melching
cb2fe8277d fix import spinner start position
old-commit-hash: 9e5bac7061
2020-04-08 16:21:51 -07:00
Shane Smiskol
b5b05334f4 few small spinner updates (#1319)
old-commit-hash: 10331b1cf8
2020-04-06 11:52:15 -07:00
Willem Melching
8c1e437b6e Show manager startup failures using TextWindow (#1310)
* show text window on build failure

* Only show last 10 line

* Fix that

* better layout

* Fix fake text window

* Only show spinner and textwindow on android

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dae19a284d
2020-04-02 15:04:01 -07:00
Willem Melching
e8a8eef872 Direct logentries logging from manager (#1306)
* add function to add direct logentries handler

* Whitespace

* Add manager crash handler

* Log scons build errors

* Add line to format exception

* Small cleanup

* That is now a list

* Read all data from stderr
old-commit-hash: c95134defe
2020-04-02 11:28:20 -07:00
BRose98
173c3ca37d Removed self-assignments (#1283)
* Removed self-assignments

* pulled master version of changed cubmodules

* Corrected the submodules

Co-authored-by: BRose98 <b.roseboom@students.uu.nl>
old-commit-hash: daba092038
2020-03-29 12:31:27 -07:00
ZwX1616
458faf51b1 move changes to PR
old-commit-hash: 2992806235
2020-03-27 11:54:34 -07:00
ZwX1616
f5bc4d79e7 cleanups
old-commit-hash: 4bcfe54efd
2020-03-27 11:44:06 -07:00
Andy
a1c67df499 Replace usages of datetime.now() with datetime.utcnow() (#1267)
old-commit-hash: 54f34abdb3
2020-03-26 19:49:58 -07:00
ZwX1616
a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4
2020-03-26 19:19:47 -07:00
Andy Haden
4abb80c9d6 Remove legacy AccessToken param
old-commit-hash: 538ca733c7
2020-03-23 00:22:41 -07:00
robbederks
b0855ab17c Offroad power monitoring (#1067)
* Untested implementation of offroad power monitoring

* Fixed some syntax errors

* Cast to int

* Fixed pylint

* Wrapped in class

* Put pulsed calc in own thread

* Longer timeout before starting pulse measurement

* Fudge factor + flake8

* Made integration thread-safe and catch charge disable exceptions

* Catch all calculation errors

* Fixed networkstrength removal
old-commit-hash: 992be20d63
2020-03-10 22:18:48 -07:00
Andrew Valish
20816d909d Refactor frame (#1192)
* start drawing new sidebar, add assets

* add thermal to ui, draw network_type and battery

* draw sidebar metrics, add freeSpace and paTemp

* draw static panda metric and network strength, start ubloxGnss messaging

* use array for network_img

* start sidebar touch events

* prevent multiple touch events with touch_timeout

* filter old touches, isolate sidebar events

* add hwType check with timeout for panda metric

* cleanup touch poll, handle vision touch, remove frame and black apks

* cleanup per willem comments

* update offroad, only read active_app from cereal

* tweak sidebar behavior, show active app status

* update offroad apk

* read networkstrength from thermal in sidebar
old-commit-hash: 5ba6beed17
2020-03-09 19:13:32 -07:00
Willem Melching
1076fb3da2 Track CPU usage in CI (#1168)
* run openpilot for 60 seconds and report cpu

* Not passive

* Set training version

* Write cpuset

* Add community toggle

* Formatting

* Refactor

* Reorder processes

* Add max cpu

* Try this

* Try this to exit

* Does this work?

* This should work

* now it should work again

old-commit-hash: 3d2696c60b
2020-03-02 10:40:47 -08:00
George Hotz
67176f1211 Simulator running with keyboard (#1176)
* sim with keyboard

* write calibration

* need recv

* use readchar

* doesn't accelerate

* queue, not zmq

* fix line wrap

* fix physics

* add BLOCK to manager

old-commit-hash: 9d8d7ade3e
2020-02-29 10:51:39 -08:00
Adeeb
65a2c62114 Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref

old-commit-hash: e8cb6ea06a
2020-02-20 16:22:25 -08:00
Willem Melching
e7a1ece98f Run locationd online (#1089)
* add locationd to manager

* add to release files and make linter happy

* Don't ship all models

* Also add locationd.py

* Remove unused import

* Fix import in kalman helpers

old-commit-hash: ff91c6f9d4
2020-02-17 18:07:23 -08:00
Willem Melching
77159c1522 Revert "Run locationd"
This reverts commit 52b4e199766af146133e5a3828962f98645654aa.

old-commit-hash: dfad0b173f
2020-02-17 17:28:02 -08:00
Willem Melching
7a5786af0e Run locationd
old-commit-hash: 03dbafb105
2020-02-17 17:19:43 -08:00
Willem Melching
19cdbf3578 Update scons nodes
old-commit-hash: 5721e4cd9e
2020-02-17 16:26:19 -08:00
Willem Melching
ee238fc125 Fix waiting for unkillable process. Fixes #1087 (#1099)
* Fix waiting for unkillable process. Fixes #1087

* Add bugfix to release notes

* Don't pass in exitcode

old-commit-hash: 909efef6af
2020-02-14 17:31:27 -08:00
Andrew Valish
e46e9ada22 Add LaneChangeEnabled param and settings toggle (#1093)
* add LaneChangeEnabled param and settings toggle

* Read lane change toggle in pathplanner.py

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

old-commit-hash: 45718d9294
2020-02-14 15:24:59 -08:00
Willem Melching
3e6a21d695 Revert "add locationd to manager"
This reverts commit 1da2a77948fe9bd5156cd7aeda945f4d60ea3cf9.

old-commit-hash: 86674c9497
2020-02-13 16:26:01 -08:00
Willem Melching
f148eda0bb add locationd to manager
old-commit-hash: 28a7481f25
2020-02-13 16:05:04 -08:00
Andy Haden
3a17e9d4b9 manager: verify daemon process cmdline
old-commit-hash: 9b1f2d5c64
2020-02-03 12:27:13 -08:00
George Hotz
c20b197bce manager runs on Mac, and other openpilot for PC fixes (#1037)
* use the openpilot/persist directory on PC

* manager runs on mac

* sim runs w/o carla

* fix params location in test

* that rmtree can fail and it's okay

* refactor params clear functionality

* set PARAMS_PATH

old-commit-hash: c42e2ecc50
2020-02-02 12:15:02 -08:00
ZwX1616
2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6
2020-01-30 19:12:44 -08:00
George Hotz
a7fa20b566 selfdrive/*.py
old-commit-hash: 2f9379a139
2020-01-17 11:03:42 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00