Commit Graph

158 Commits

Author SHA1 Message Date
Adeeb Shihadeh
af1398268b update scons nodes
old-commit-hash: d9892cceef
2021-02-19 23:52:13 -08:00
Adeeb Shihadeh
35f9355fcc fix apk after cereal cleanup (#20098)
* actually a percent

* update apk

* update refs
old-commit-hash: f28673e8b5
2021-02-19 12:19:29 -08:00
Adeeb Shihadeh
05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
old-commit-hash: 312b681a46
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
af95c26b26 remove gpsd (#20027)
old-commit-hash: fe7f3f0ec6
2021-02-10 16:39:39 -08:00
Willem Melching
17d5446650 Timezoned (#19960)
* untested code

* add to manager

* whitespace

* only save on fix

* cleanup

* fix typo

* add to ignored processes

* import tici

* fix param name

* cleanup

* only run offroad

* use itertools

* wait for thermald

* simpler

* fall back to api call

* add param to override timezone

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4c04e220a1
2021-02-06 11:07:37 +01:00
Adeeb Shihadeh
966945880b Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
old-commit-hash: 000bd226aa
2021-02-03 19:57:30 -08:00
Adeeb Shihadeh
3469fb0c62 shouldn't need that anymore
old-commit-hash: 0a69c92967
2021-02-01 13:13:57 -08:00
Greg Hogan
09f27c5b8e vision-only radar toggle (#19849)
old-commit-hash: 767ada98c7
2021-01-27 14:15:59 +01:00
Willem Melching
9d1220b117 manager.py broadcast process states (#19880)
* broadcast managerstate

* Remove boardd

* show alert

* only trigger on actually receiving a manager state

* add managerstate to simulation exclude for longitudinal test

* broadcast managerState in process replay

* update alert text

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b6a220a133
2021-01-26 14:49:55 +01:00
Adeeb Shihadeh
43d680c9c5 add device type to clouglog ctx (#19890)
* add device type to clouglog ctx

* remove is_eon

* str
old-commit-hash: c9679222ae
2021-01-22 20:02:48 -08:00
Willem Melching
7bf38e240c Don't clean scons build on dirty branches
old-commit-hash: 02e5cd5dd5
2021-01-22 13:13:45 +01:00
Willem Melching
72a7535e1b fix /dev/shm permisisons, fixes offroad
old-commit-hash: 3a13c45c7f
2021-01-20 14:30:59 +01:00
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