Commit Graph

146 Commits

Author SHA1 Message Date
Adeeb Shihadeh
5362097b37 fix loggerd after bootlog split (#19840)
* fix loggerd after bootlog split

* logger handles that

* unused

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e64049ea4
2021-01-19 14:27:19 -08:00
Dean Lee
57b1b4c456 loggerd: split bootlog to a separate program (#19831)
* bootlog

* blank lines

* move file_exists to util.h

* src = ['loggerd.cc']

* log_init_data

* Revert "src = ['loggerd.cc']"

This reverts commit 18a587023d75b3a3a54f1ceaf9cb31a51640a067.

* add bootlog to .gitignore

* use s->has_qlog instead of true

* add blank lines & remove extern C
old-commit-hash: f973c56a36
2021-01-19 12:16:12 -08:00
Adeeb Shihadeh
ee06788cf9 only run logcatd while onroad
old-commit-hash: 94b2818b22
2021-01-06 12:10:38 -08:00
Comma Device
a8a05ce4fb sensord is only a persistent process for C2
old-commit-hash: cd35e3c2fe
2020-12-30 09:28:14 +00:00
Adeeb Shihadeh
5bbe4f3d52 manager tests + make all processes exit cleanly (#19595)
* manager tests

* logcatd exits cleanly

* sigint

* boardd

* multiple dbus connections hangs for some reason

* clocksd proclogd

* network type from thermal

* fix tests

* fix android logcatd

* fix mac

* fix mac proclogd

* move on device athena tests

* build first

* build first

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ffa7e0cbdb
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh
eb0fd3eaac fix startup spinner for non-C2 (#19536)
* limit build progress

* cleanup

* types

* comment
old-commit-hash: 71d317872a
2020-12-18 14:47:25 -08:00
Willem Melching
c81ac2c800 Only register when needed (#19526)
* only register when needed

* block for imei

* Api already imports jwt, so no need for late import

* Small cleanup

* oneliner

* Add spinner to regestering

* Keep trying
old-commit-hash: 00620575d9
2020-12-18 13:17:23 +01:00
Adeeb Shihadeh
ba7036a9f9 fix unkillable reboot logging on tici
old-commit-hash: 6a0e9044c1
2020-12-17 17:53:03 -08:00
Adeeb Shihadeh
c4bff3f93b manager cleanup (#2634)
* start cleanup

* add uninstall to hw abstraction layer

* cleanup

* litte more

* don't build at import time

* fix tests

* don't build by default

* sync
old-commit-hash: 220853730d
2020-12-17 11:45:41 -08:00
Adeeb Shihadeh
b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023ba
2020-12-16 21:30:23 -08:00
Adeeb Shihadeh
762eda95cd Set GPU priorities + improved modeld priorities (#2691)
* give gpu threads rt priority

* modeld gets highest prio on core 2

* fix frame stream

* lower prio of cal thread

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c57ee16e86
2020-12-15 19:22:03 -08:00
Adeeb Shihadeh
b882046c76 close spinner when manager fails to start
old-commit-hash: 631059d931
2020-11-26 16:25:44 -08:00
Adeeb Shihadeh
470966fdf5 no spinner if not main
old-commit-hash: cb9bf8df23
2020-11-21 00:33:01 -08:00
Willem Melching
2d2ff5733b use HARDWARE.reboot() when unkillable process doesnt stop
old-commit-hash: 3289de0aa3
2020-11-20 13:18:33 +01:00
George Hotz
c5282bf173 clear both possible places for the scons cache
old-commit-hash: 599f000cde
2020-11-18 09:36:53 -08:00
Adeeb Shihadeh
3a05f06ced Qt spinner (#2494)
* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
old-commit-hash: 6c86afee16
2020-11-06 18:44:04 -08:00
Adeeb Shihadeh
57de41eae5 Qt text window (#2489)
* qt text window

* auto size

* real text

* this is cleaner

* fix android build

* exit on pc

* tici fixes
old-commit-hash: 68ba1649b9
2020-11-06 12:05:24 -08:00
Comma Device
bf54c5bf5c fix manager crash when sending signal to a dead proc
old-commit-hash: 87d7f51e3e
2020-10-30 11:40:22 -07:00
Adeeb Shihadeh
1d27baabcb update total scons nodes
old-commit-hash: d2a9617f9c
2020-10-20 21:28:24 -07:00
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: 3dd9448981
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: 2e182e5c57
2020-10-13 16:23:23 +02:00
Adeeb Shihadeh
4d329cddfa remove green temp processes (#2286)
old-commit-hash: 87942eea1c
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: 06cb2f963d
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: 38ded9b1e7
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: da147b2534
2020-09-22 14:46:47 -07:00
Willem Melching
5ebb082216 Only run rtshield when onroad
old-commit-hash: 39fc171f91
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: b341fdc644
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: fdbfe52927
2020-09-12 17:50:22 -07:00
Adeeb Shihadeh
b24efb35ac run deleter on tici
old-commit-hash: 56c3d8e4d1
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: c5dfbe7a72
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: fb6f6268d3
2020-09-03 17:54:49 -07:00
Adeeb Shihadeh
f56ab6f4fc clean up old params
old-commit-hash: 6fad82e710
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: 848301b091
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: 43e3ec1bc1
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: e88edeb051
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: 5782efe3ae
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: c7152d5419
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: e497b95f54
2020-08-25 10:53:04 +02:00
Adeeb Shihadeh
6af8eb88af update total scons nodes
old-commit-hash: 335aa31895
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: a115366ddd
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: a7ee2a53a8
2020-08-01 17:26:35 -07:00
Shane Smiskol
d9e9e7a23b Update TOTAL_SCONS_NODES (#1938)
old-commit-hash: 247ec73370
2020-07-27 18:23:38 -07:00
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