Commit Graph

222 Commits

Author SHA1 Message Date
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: 68ba1649b91984c106491cf1894c3f44f21a34df
2020-11-06 12:05:24 -08:00
ZwX1616
4dc3fb994e generalize camera assumptions (#2423)
* clean up 1

* complain

* cleanup

* make models api generic

* clean up 2

* cleanup

* remove unused
old-commit-hash: c0946c8bdbaac0029c67e0b2ba4e591f591790eb
2020-11-05 13:22:28 -08:00
Adeeb Shihadeh
f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f598639307994392e96f4d9293b295c7
2020-11-03 19:56:25 -08:00
George Hotz
87fecbdaef sbigmodel, a bigmodel with the size of a smallmodel
old-commit-hash: 85dab89e1ce7a877e48ceb929866b150705bc9cd
2020-10-27 10:46:02 -07:00
George Hotz
8a09c46c38 support for halve in Window
old-commit-hash: bb2e69faf339aaddf04e49d2dfd71367e72957de
2020-10-20 16:07:05 -07:00
Willem Melching
9ecc0d362e store params in ~/.comma on PC (#2369)
old-commit-hash: c0d92516ccf4dcb8a09c972815a6e08326b59105
2020-10-20 13:18:21 +02:00
Willem Melching
651d4ce031 --std=c++17 (#2330)
* switch to c++17

* more 17

* 1z

* use std::clamp

* Fix types in clamp

* bump submodules

* bump laika

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb1e8ca73aeb1f0066a23b0933706ae5
2020-10-17 13:33:12 -07:00
Adeeb Shihadeh
f92c30b164 fix build warnings (#2355)
* fix build warnings

* cython fixes

* cleanup transformations build

* little more
old-commit-hash: 96b637737bd42b334bffb188d278766bd0abe6c6
2020-10-17 12:40:01 -07:00
Adeeb Shihadeh
e7da1b9275 revert apk launch thread
old-commit-hash: 0fe70c6ef4400fd8be080f590aafede8f9533468
2020-10-15 16:40:56 -07:00
Willem Melching
bc62d8c2e2 tici: reboot
old-commit-hash: 3fe3ec79496a39647435d3f5566147aee75ece22
2020-10-15 20:52:27 +02: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: 3dd944898183be0ecf985f389d462e53c3feb8e5
2020-10-15 13:15:22 +02:00
Adeeb Shihadeh
80078ac1b3 set default path for put_nonblocking helper
old-commit-hash: de833ecb067d84b7427710832a99186647b4d579
2020-10-14 13:57:10 -07:00
Adeeb Shihadeh
31ea16e7fa fix params on PC and when reading path from env (#2340)
* fix params when reading path from env

* fix pc
old-commit-hash: 707a670f42dc87c322c6d27eb147ba260b149e23
2020-10-14 13:45:24 -07: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
grekiki
1d6666ef35 Speedup android permissions (#2331)
* get android permissions before setiing them

* cleanup

* add newline

* make code nicer

* simplify code

* str()

* utf-8 and nicer exception handling
old-commit-hash: 8a952cec33f2d4641f9d8a2f7f919204a9f03f26
2020-10-13 15:35:18 +02:00
George Hotz
bf852115bf improve profiler
old-commit-hash: f65f7051c4bfecc1ab0de8e4b1e27a44b5ea19ad
2020-10-09 18:39:54 -07:00
Adeeb Shihadeh
51d59aefca UI cleanup + startup time improvement (#2295)
old-commit-hash: 671183184bd177d697285d397bce10c51afd5395
2020-10-08 19:29:56 -07:00
Willem Melching
37e173acdc Fix MacOS CI (#2145)
* compile flag for cython

* fix more setups

* bump cereal

* reenable mac build

* don't let that fail the build

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e0bb6a7cee869b9aa6a724b20ab8d79141eaad4
2020-10-04 15:03:20 -07:00
Adeeb Shihadeh
ff14d71845 Run all driving processes on cores 2-3 (#2257)
old-commit-hash: 059cf6b43e579b8634090a0ecac4fb1c6c7a205e
2020-10-02 17:18:18 -07:00
HaraldSchafer
a5a15064a0 Update README.md
old-commit-hash: d2539e01d3be542b385de27ac454fe897e5e65cf
2020-09-25 06:33:36 -07:00
Dean Lee
f5ec24f42f Params: use a multiple-reader / single-writer flock to improve concurrency (#2207)
* improve concurrency: multiple readers, single writer locks

* remove lock in read_db_value
old-commit-hash: 4fba3408c41fad12a75533cf189686601f9e49a6
2020-09-24 11:51:36 +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
Willem Melching
d455516765 Tici hardware abstraction layer (#2183)
* rename android hardware

* add tici class

* elif

* read correct serial number

* Update release files

* Get IMEI

* Refactor AT command

* move get_cmdline into base class

* Remove unused import

* Small cleanup
old-commit-hash: c90cb1b529c24580f8351c046f2b5b022a956ba8
2020-09-17 13:36:42 +02:00
Adeeb Shihadeh
bdf52941c8 Improve realtime performance on NEOS (#2166)
* fix setting core affinity

* dmonitoringd doesn't need rt priority

* android only gets two cores

* model and planner get core 2

* log missed cycle count

* neos update

* prod image

* revert NEOS changes

* still need this
old-commit-hash: ef21b83937d25b824018ac1d07fa7759ae6f8128
2020-09-16 15:33:12 -07:00
Adeeb Shihadeh
e4ca9e2c96 handle exception in android service call
old-commit-hash: b857f65de873d94a91aaeac8f16dda5aa3854409
2020-09-11 13:45:41 -07: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
Willem Melching
e5f5cdaccf tici: fix set_realtime_priority (#2124)
* cleanup and pin modeld to core 5

* Unused import
old-commit-hash: 5c058140edb5678cfc31e5103e57cdb5d1c11305
2020-09-02 17:52:41 +02:00
Willem Melching
fffb8042a6 hardware.py: PC is wifi so uploader works
old-commit-hash: c8e0cd3ddd46485c1b70c43a8732001cb6de7f22
2020-08-26 20:12:56 +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
22e0a2474a Pandad: turn on panda power (#2073)
* pandad turn on panda power

* Add gpio.py

* needs bytes

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6bb2630eba1bff2db745e56d639fce8b85ec6d0d
2020-08-24 16:56:29 +02:00
robbederks
bcaf2a36af Car power integrator + power management refactor (#1994)
* wip, ready to test

* tweaks

* fix

* fix

* fix power monitoring

* fix param writing

* no forced charging on high voltage

* reset capacity on reboot

* don't shutdown unless started seen

* fix unused var warning

* fix linting errors

* time is always valid

* QCOM gate

* Local params

* decimate saving

* fix linting

* rename param

* Log car battery capacity

* fix put_nonblocking

* Added some unit tests

* Add test to docker test list

* fix precommit

* cleanup

* run tests in CI

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7555379b2b1da2f800e98963ad4436b7fb91cce9
2020-08-17 11:56:27 +02:00
Adeeb Shihadeh
017b084154 Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
old-commit-hash: 8e63f065400ea1868f077560ae89b2c17f5523f8
2020-08-11 16:23:57 -07:00
Harald Schafer
a6b31a2ec6 makes more sense
old-commit-hash: e704da0c28546fd9fc8ee53ea19793880d042059
2020-08-04 15:30:20 -07:00
Harald Schafer
c199717a71 dont init sound
old-commit-hash: 0a01d88139dd35cd4d979dbac78e2f0ff69a7664
2020-07-31 13:11:59 -07:00
Harald Schafer
82691a0427 needed in pipeline
old-commit-hash: e03f9d7c7370ead66acf84e27e8361c6fd453379
2020-07-28 15:12:16 -07:00
Willem Melching
760044710c update pipfile.lock (#1896)
* update pipfile

* matrix is deprecated

* Numpy almost equal

* sympy 1.6
old-commit-hash: 95b0c69c12cb859025b77d1ba9ed9433c78f1e9f
2020-07-21 21:15:09 +02:00
Willem Melching
9c291968f6 Speedup URLFile (#1888)
* add parallel download support to URLFile

* make python 3.8 happy

* Fix chunk size

* Automatic number of threads

* No daemon threads in unlogger

* Cache length

* dont touch old filereader

* Remove debug info

* remove debug script

* Ignore type
old-commit-hash: c70700758d9e3227a157d2e9fdcb9d3204b433c2
2020-07-20 17:10:08 +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
86d9da50c5 add test for params permissions
old-commit-hash: 2ad9c50e3613674cb6170b46411d7dba0b1edff9
2020-07-18 18:30:29 -07:00
Adeeb Shihadeh
2e066f16e8 fix params permissions after #1890
old-commit-hash: 8db641efec5d3c4df284afd9b8c8e9c2838ccabb
2020-07-18 18:10:46 -07:00
Mufeed VH
9b94e0ae8b Fix insecure temporary file creation (#1890)
* Fix insecure temporary file creation

* minor error fix

tmp_path.name (NamedTemporaryFile().name) is required to return the filename string.
old-commit-hash: a34b9f5cb5a691b2153f6a2ba905e6f1f84af341
2020-07-17 23:49:57 -07:00
Adeeb Shihadeh
370a68623e minor cleanups from LGTM
old-commit-hash: 35a5b057c1ab6d3f77daae6a40d14c9bff28f08b
2020-07-17 23:34:38 -07:00
Adeeb Shihadeh
993eeaf694 Rebuild cython extensions when dependency version changes (#1886)
* rebuild cython extensions when python/cython/distutils version changes

* submodules and boardd

* kalman and transformations
old-commit-hash: 165e14d10384a67777ec5ed787cf1ec82ec61ccb
2020-07-16 13:59:32 -07:00
George Hotz
3a004596e9 add calmodel
old-commit-hash: 4619401bfc8ce4f5a6fac5167e5e386ffbf36409
2020-07-06 11:56:31 -07:00
Adeeb Shihadeh
0d79150606 Sound test (#1820)
* WIP sound test

* it does something

* refactor

* phone only

* update release files

* test sound card init

* add to CI

* check writes

* increase time

* unused

* only build cereal

* small tolerance

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f1afb3e3ae4b95a1de0262d1408c49093c5ada6f
2020-07-05 17:56:24 -07:00
Adeeb Shihadeh
4f4c83a0c3 remove manager_helpers.py after CPU usage test refactor
old-commit-hash: b23d7950e3d38d4b436801e35c76b66657b35c95
2020-07-04 00:10:58 -07:00
Greg Hogan
7ed2fb158c remove duplicate logging context
old-commit-hash: 1206409b2e83f7def11d9b8473fa30e16736f41f
2020-07-03 16:18:29 -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