Commit Graph

127 Commits

Author SHA1 Message Date
Willem Melching 789d5176cb Params path only in one place (#2344)
* fix params paths

* Qcom & qcom2

* This env variable is not used anywhere

* params path in only one place

* fix other PARAMS_PATH references

* absolute path is probably better
old-commit-hash: 3dd944898183be0ecf985f389d462e53c3feb8e5
2020-10-15 13:15:22 +02:00
Willem Melching 498ecbdf3c Params refactor, simplified (#2300)
* always c++

* Create C++ params class

* get works

* tests hang now

* passes tests

* cleanup string formatting

* handle interrupt in blocking read

* fix memory leak

* remove unused constructor

* Use delete_db_value directly

* Rename put -> write_db_value

* filename cleanup

* no semicolons in cython

* Update common/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* add std::string version of delete_db_value

* This is handled

* cleanup encoding

* Add clear method to clear all

* add persistent params

* fix android build

* Should be called clear_all

* only import params when needed

* set params path on manager import

* recusrively create directories

* Fix function order

* cleanup mkdirp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e182e5c574ea1468678b5fd8d0597e34ed5898d
2020-10-13 16:23:23 +02:00
Adeeb Shihadeh 4d329cddfa remove green temp processes (#2286)
old-commit-hash: 87942eea1c7fa6aef9038bae01b3c35261ecff16
2020-10-07 12:11:54 +02:00
Adeeb Shihadeh f27bdfbee7 UI: refactor light sensor (#2129)
* refactor light thread

* qcom low power mode

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 06cb2f963ddd3a1e25d592ac4d2d25358e69c94a
2020-10-03 20:58:46 -07:00
Adeeb Shihadeh d05c8e2a08 Tici updated (#2126)
* run updated on tici

* do this for now

* two didn't like empty string

* fix permissions
old-commit-hash: 38ded9b1e79cc01bf4b8086b543bf0bab689d0fc
2020-10-02 16:36:20 -07:00
ZwX1616 7d522ba870 fix dmonitoringmodeld random high CPU usage (#2216)
* exp attempt1

* attempt2 less hacky
old-commit-hash: da147b2534b78f935704b5838cf967593be2affb
2020-09-22 14:46:47 -07:00
Willem Melching 5ebb082216 Only run rtshield when onroad
old-commit-hash: 39fc171f91238c969d815541a371013267ffe92a
2020-09-18 13:48:58 +02:00
Adeeb Shihadeh 86bb0caf66 Realtime shield (#2194)
* cpu 3 shield

* set priority before affinity

* add to release files

* only run on android
old-commit-hash: b341fdc6444b7dee5c949a67584ed1ab7145b91f
2020-09-17 15:49:14 -07:00
Adeeb Shihadeh 3372b5e878 tici driver monitoring (#2158)
* use cpu for now on tici

* pin to core 5

* fix driver view

* probably wrong

* correct this time

* RHD too

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: fdbfe5292797c5638855fb947ebc5f4eb161353c
2020-09-12 17:50:22 -07:00
Adeeb Shihadeh b24efb35ac run deleter on tici
old-commit-hash: 56c3d8e4d1f336c41ad93724d77533a3e0f29450
2020-09-10 17:21:24 -07:00
Vivek Aithal db0a4ef2dc dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
old-commit-hash: c5dfbe7a72c6f31a0aa3a32b6df3f81409b40faf
2020-09-10 12:14:49 +02:00
Shane Smiskol 628f1808ca TextWindow Enhancements (#2114)
* cause error

* revert for now

* decrease font by 10 pts

* remove unnecessary () for class ;)

* move exit button closer to right corner

* 70% transparency for black background

* cause error

* well that's not right

* try showing more lines

* actually show last three lines

* forgot to join

* debug what we can leave out

* show last four files

* revert

* show 3 lines and one extra for last erroring line

* increase by 5 points

* move text left a bit

* fix

* fix

* two more lines

* add double indentation for formatting

* remove indentation of file lines

* fix

* fix

* try this

* try this

* make lines shorter

* clean up error code in manager

* try one more

* reduce lines altered in PR

* four is good

* this actually isn't required anymore

* can move more left

* and increase size

* slightly less

* slightly less

* try a different error

* try last three with negative

* revert to 75

* fix

* clean up

* remove path hiding

* revert offsets

* revert
old-commit-hash: fb6f6268d3c0b84e9214172b10a75e4e0f7a7bbf
2020-09-03 17:54:49 -07:00
Adeeb Shihadeh f56ab6f4fc clean up old params
old-commit-hash: 6fad82e7105628fe7312a7d47dc1e6ae2286d0f0
2020-09-03 16:37:48 -07:00
Adeeb Shihadeh c3f623e432 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>
old-commit-hash: 848301b091af11e129ba6873f7d297d4890c562b
2020-09-03 16:32:55 -07:00
Adeeb Shihadeh d2cdd7706c UI cleanup (#2091)
* remove unused UI code

* these params aren't used anymore

* this is cleaner

* remove one more timeout

* read that from carParams

* only android needs pm

* fix that

* fix that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 43e3ec1bc1ee0d7b8044c5cabbe4022c5ddc9783
2020-08-27 11:57:31 -07:00
Willem Melching 6c653d4357 apport support for tombstoned (#2087)
* apport support for tombstoned

* Update manager

* Update comment
old-commit-hash: e88edeb051c393d7df84d5cf9b33ad0668bd4e99
2020-08-26 19:06:56 +02:00
Willem Melching 55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae7882a6a8eee0086b9c612c1d276814
2020-08-26 17:09:23 +02:00
Willem Melching 16fe1bb2ad 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
old-commit-hash: c7152d54192605c833912b69cf85514ac2e1b1fc
2020-08-26 14:57:17 +02:00
Willem Melching 90b52344fd Universal clocksd (#2075)
* universal clocksd

* start in manager

* remove android include

* Apple hacks

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e497b95f549b6e6d5a249121804231878c747e90
2020-08-25 10:53:04 +02:00
Adeeb Shihadeh 6af8eb88af update total scons nodes
old-commit-hash: 335aa318953b0ee2d1100a4e7ccc5000b00fd536
2020-08-11 16:24:53 -07:00
Adeeb Shihadeh 792b74f543 Improve update reliability and responsiveness (#1986)
* handle orphaned git lock

* trigger update after going offroad

* git ping
old-commit-hash: a115366dddc076bb186219d33a7565712465b226
2020-08-06 12:49:11 -07:00
Adeeb Shihadeh 069bd4061e Driver view refactor (#1869)
* quick driver view cleanup

* send at correct freq

* let manager handle that

* don't block starting on driver view

* fix UI hacks

* ui cleanup

* move driver view functionality into dmonitoringd

* dmonitoring thresholds shouldnt be in UI

* remove driver view file from release files

* timeout on frontview

* bump cereal
old-commit-hash: a7ee2a53a8a832f3678171403471380a9a72b9cb
2020-08-01 17:26:35 -07:00
Shane Smiskol d9e9e7a23b Update TOTAL_SCONS_NODES (#1938)
old-commit-hash: 247ec73370a2a4675e6abd7bd25510990bbca6ae
2020-07-27 18:23:38 -07:00
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