Commit Graph

104 Commits

Author SHA1 Message Date
Willem Melching
8581c25600 fix spinner
old-commit-hash: 7a1e229a9a692421fc038eec5be376b7f6bebc6d
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: 5db81f60ca8fbc0ef28924b7e93f25a1d4bb3764
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh
77fd84b99a openpilot isn't capitalized
old-commit-hash: 3983186700b85d5619adc8497de37dcd423b6451
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: 6db7fa8c033841c82d1139119aad8a20645449f4
2020-07-03 15:40:13 -07:00
Adeeb Shihadeh
10be5dad65 flippening is only for android
old-commit-hash: ec8b69cb14fa83c90e9f5388d52ced603613e9bf
2020-06-30 14:01:40 -07:00
Willem Melching
dacbb1a388 make sure everything runs before ending test (#1741)
old-commit-hash: 5198457ca0364b011d5a34e81b459be52fe4e55d
2020-06-18 17:50:01 -07:00
Adeeb Shihadeh
d231b3a7ec don't clear scons cache in CI
old-commit-hash: cf72a4eb34287218f385e75849902755203d55ec
2020-06-10 17:49:34 -07:00
Adeeb Shihadeh
dec3861197 don't reboot on PC
old-commit-hash: dc68b4defd0e9a100e117504c869f18f1c881105
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: d4858e5ff5753f8a800f3e90cb4c0f69213b87f3
2020-06-09 13:25:15 -07:00
Willem Melching
c8d5b49a44 Paramsd can now be killed normally
old-commit-hash: e3ffdf3647075ce7415a9ba6b808b5021931acc1
2020-06-03 11:11:06 -07:00
Willem Melching
adc846c1fd run deleter when offroad
old-commit-hash: 6e0bb25ab4659db306df10ba90fdc18562b2cc4f
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: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Willem Melching
5fb17dc296 Enable new params learner for improved vehicle model estimation
old-commit-hash: a0adc4482108a3b89b6e4cb3fe27b8f51291bc08
2020-05-31 13:36:27 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
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: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
Willem Melching
207dff6092 turn locationd back on
old-commit-hash: ed5284f9b3768df8693b7e14e5e5285c9c64d10f
2020-05-15 13:53:45 -07:00
George Hotz
d7fcbc9c4b remove locationd from car started processes for now
old-commit-hash: 7c71a14a89484ff713019c0a7983baeec7582061
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: aef01f4bdfc03929a7ad046e867ef975f81b7b59
2020-05-08 18:08:11 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
2020-04-15 16:48:44 -07:00
Willem Melching
cb2fe8277d fix import spinner start position
old-commit-hash: 9e5bac70614f44d709f22cea6e4516469a5b2697
2020-04-08 16:21:51 -07:00
Shane Smiskol
b5b05334f4 few small spinner updates (#1319)
old-commit-hash: 10331b1cf86659a6ad32137debc43374e4feece8
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: dae19a284d20a81432c57f99be8ac69bb3c2454a
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: c95134defe6734dcffeff6f9a1563f9ca8475722
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: daba092038c6759698565face52a32b3f341fd3b
2020-03-29 12:31:27 -07:00
ZwX1616
458faf51b1 move changes to PR
old-commit-hash: 2992806235469b2175acbe7cd104ce369e80bb9a
2020-03-27 11:54:34 -07:00
ZwX1616
f5bc4d79e7 cleanups
old-commit-hash: 4bcfe54efd5474ac857d5720f83af7fc15a06f0c
2020-03-27 11:44:06 -07:00
Andy
a1c67df499 Replace usages of datetime.now() with datetime.utcnow() (#1267)
old-commit-hash: 54f34abdb36cbf7a43b3de1ba8765a972413179d
2020-03-26 19:49:58 -07:00
ZwX1616
a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4176c034c0537293a3cf0753c45daa1
2020-03-26 19:19:47 -07:00
Andy Haden
4abb80c9d6 Remove legacy AccessToken param
old-commit-hash: 538ca733c7c1640df2e42c6dad6faf6339363437
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: 992be20d633fbd75ead240a5aeeb86451d42c3c2
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: 5ba6beed17baf17081169d2e1d5b144df00cda76
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: 3d2696c60b80e4d2125af931c74f385c3bafbd4d
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: 9d8d7ade3e607a1e8fea3279a3a0bf1f33ec1d94
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: e8cb6ea06a2470dd89a6ad8fd17bd1d1b62034cc
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: ff91c6f9d47a37e2475570bc4d370221379f49be
2020-02-17 18:07:23 -08:00
Willem Melching
77159c1522 Revert "Run locationd"
This reverts commit 52b4e199766af146133e5a3828962f98645654aa.

old-commit-hash: dfad0b173f58239b2e284470ec45699ca9a524db
2020-02-17 17:28:02 -08:00
Willem Melching
7a5786af0e Run locationd
old-commit-hash: 03dbafb1056bfbdc780afad5cb68476665f65fcd
2020-02-17 17:19:43 -08:00
Willem Melching
19cdbf3578 Update scons nodes
old-commit-hash: 5721e4cd9ed741198bb1950786ebba99a791a2a2
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: 909efef6af6d8d396ea9c8e1122455231a062682
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: 45718d929468a1f6cd1b362bf169988e545241e1
2020-02-14 15:24:59 -08:00
Willem Melching
3e6a21d695 Revert "add locationd to manager"
This reverts commit 1da2a77948fe9bd5156cd7aeda945f4d60ea3cf9.

old-commit-hash: 86674c9497144316b55f0d5c0cf674e32ab3dd82
2020-02-13 16:26:01 -08:00
Willem Melching
f148eda0bb add locationd to manager
old-commit-hash: 28a7481f2540a0737e89fe94433e8883c5e979f3
2020-02-13 16:05:04 -08:00
Andy Haden
3a17e9d4b9 manager: verify daemon process cmdline
old-commit-hash: 9b1f2d5c64320a9b6eca378d4b1876850504c525
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: c42e2ecc50d72947719219e20a5e91ed9bf5fbf4
2020-02-02 12:15:02 -08:00
ZwX1616
2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6d6f4f638706cce95421517306940cc
2020-01-30 19:12:44 -08:00
George Hotz
a7fa20b566 selfdrive/*.py
old-commit-hash: 2f9379a139e8f7e479bd7baaa0a85cb872c2eb4d
2020-01-17 11:03:42 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3878e1d8c8a9db600dd44d188f02c87
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c600ec653c16606239364ab9324fd98
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a15640ee4d6e4d513fada6ed101afe5
2019-12-13 13:03:08 -08:00