Commit Graph

136 Commits

Author SHA1 Message Date
George Hotz
6fbcde48e5 Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 1295cfe06cd80a2c2f40e0af97697ee818037f08
2020-05-02 12:07:34 -07:00
George Hotz
1a5a6640d5 add simple usage example to window.py
old-commit-hash: c4592e854767e635e4e1f6a75e74f1453043c8c4
2020-04-30 15:31:01 -07:00
George Hotz
75590c1f95 improve printing in profiler
old-commit-hash: 42fb2b47378b74c77245a1b3d2cb189ee7be7050
2020-04-27 12:12:40 -07:00
Willem Melching
f225102747 run coordinate tests
old-commit-hash: 9e2db91cddc8cb8ad910117b0f8398d96fbe7a1e
2020-04-24 13:55:20 -07:00
Willem Melching
70d8000b08 remove geocode
old-commit-hash: f856c99279df580d262d698704b91accfdc79d83
2020-04-24 13:53:56 -07:00
George Hotz
376c18b3b2 delete more unused, now under 40k lines of python. framereader needs to be ported to C++
old-commit-hash: abad49110e07cdfc0861978bacb44527c28fdfcf
2020-04-24 13:45:34 -07:00
George Hotz
cc6477015a delete unused code
old-commit-hash: 8b448a7c16d832567f0d3644cc54828ab951b8db
2020-04-24 12:10:35 -07:00
George Hotz
c236ccdc3a more unused code
old-commit-hash: c5b16df7728fcb520d79cfb6962d7220d7fd30c7
2020-04-24 09:24:29 -07:00
George Hotz
676e0d5428 remove unused code
old-commit-hash: da5cb1842ae4bd0f57dff9e0d0b9cd7e04aa09e3
2020-04-24 08:58:28 -07:00
Willem Melching
790d0a9cff fix linter
old-commit-hash: 8daef80bd75d48e24611dca0c733da0091ca8e48
2020-04-23 10:46:39 -07:00
George Hotz
80f4a67ca0 transform_img_M
old-commit-hash: aeb0a4af884af690fde10804a527468ba7dca42a
2020-04-22 19:56:53 -07:00
George Hotz
877dbc352a who is ready for big model?
old-commit-hash: 144b37728f24e20a9429b7ffa140d226de147bec
2020-04-21 20:23:49 -07:00
Greg Hogan
915a7c4195 ColumnStoreWriter.add_dict() support for multiple types
old-commit-hash: e23f1fcf0ac89c1e9d3ee6c4a64cf49745b919a4
2020-04-20 16:56:38 -07:00
Greg Hogan
f7f8e976b7 ColumnStoreReader support for intermediate keys of flat dictionaries
old-commit-hash: cf131ee8e92f477992ed087a214c832c76ee4714
2020-04-20 16:25:43 -07:00
Dean Lee
bd0e04ea9c fix UnicodeDecodeError in get_network_strength (#1385)
old-commit-hash: f2ef1f6fd5d81b26d0f9f77aaed99a6b0e42e42f
2020-04-17 11:38:27 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
2020-04-15 16:48:44 -07:00
Greg Hogan
1dd537a7f9 ColumnStoreWriter/Reader support for dictionary of arrays in single file
old-commit-hash: efbb4aac2e36aedbc67500a0bdc91802c547d5f2
2020-04-13 19:04:52 -07:00
Andy
e43b40540d Sidebar Connectivity Status (#1268)
* store athena connected-at time

* refactor

* deref

* dt import

* Athena status based on last ping time param

* upd test for pingtime

* lower error timeout
old-commit-hash: 41bb3ac7ca586b41fa91ad5a6392c88a2c4d5cb3
2020-04-05 11:06:49 -07:00
DeanLee
b3d3be7136 fix AttributeError: 'FakeSpinner' object has no attribute 'close' (#1317)
old-commit-hash: b4641b7392bdde59e3fc8c4e7d9232138ae8597b
2020-04-05 10:54:01 -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
3e9de54726 add low pass filter on cpu temp (#1305)
old-commit-hash: b497a014176def38cc2ccafa55bea9cdefa5983b
2020-04-01 15:58:40 -07:00
Jason Young
40f9c6faa1 Boot-loop testing script for EON/C2 device sensors (#1303)
* Sensor test boot-loop script

* Changing file permissions

* Set executable

* Changing file permissions

* Sensor test boot-loop script

* Changing file permissions

* Set executable

* Changing file permissions

* Bugfix to text_window

* Capture logs during a failure event

* Capture logs during a failure event
old-commit-hash: 0970dd74b705307a0200932cd47a2f85ef90cd8b
2020-04-01 10:51:47 -07:00
Willem Melching
935753357a Add binary to display text (#1301)
* add binary to display text

* fake text needs status too

* Rename to TextWindow

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 202a4c2011d0c4638c454a39718084548b8ba95d
2020-03-31 20:14:26 -07:00
Greg Hogan
e43c0df086 compress option for dict column store writer
old-commit-hash: 415780213fc4009d79381eae738df7bd282874af
2020-03-27 17:49:01 -07:00
Andy Haden
49915461a4 URLFile: include url in bad status code error
old-commit-hash: 8ca12dac278d58fa4486fc6d01a3de8b81fbe1ad
2020-03-23 21:23:42 -07:00
ZwX1616
214512daa3 dm offsetshould only care about the valid counts
old-commit-hash: 05e4365bb6cd62faba181e08b07a92e7fabc3917
2020-03-23 11:50:29 -07:00
Andy Haden
4abb80c9d6 Remove legacy AccessToken param
old-commit-hash: 538ca733c7c1640df2e42c6dad6faf6339363437
2020-03-23 00:22:41 -07:00
Greg Hogan
004c181167 uploader: do not delete files after uploading (#1253)
* cffi xattr function wrapper

* xattr wrapper error handling

* xattr tests

* use xattr for tracking files uploaded

* uploader xattr exception handling

* update uploader tests

* remove unused import

* update release build

* xattrs.py -> xattr.py
old-commit-hash: f21d0f325e1304b08a4e05ccc6b0fe439a7e3928
2020-03-19 18:09:26 -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
Andrew Valish
bde7a63cd7 revise wifi signalstrength dumpsys query (#1224)
* revise wifi signalstrength dumpsys query

* cleaner index search per willems comment

* cleaner index search per willems comment
old-commit-hash: 8eff974a417f58b6c5ce953ef1e903a68feeff70
2020-03-09 18:00:24 -07:00
Andrew Valish
ad3b81b0e0 use unknown networkstrength, not none (#1222)
old-commit-hash: d161584f991dda01ddefa76ac0854ea2886b80e5
2020-03-09 10:48:28 -07:00
Andrew Valish
38d21a2871 add network strength logging to thermal (#1211)
* add network strength logging to thermal

* import get_network_strength

* write networkStrength
old-commit-hash: 6bbbe8f9cf4d32dd1675c78e66fe19c070e928e2
2020-03-07 11:14:04 -08: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
Andy
738c3cca79 Tools: Storage API (#1161)
* filereader

* support URLs in filereader, logreader

* unused

* use route files api; add auth file

* Implement browser auth

* Update readme, fix up cache paths

* Add tests, clear token on 401

* Factor out URLFile

* space

old-commit-hash: c4af05868ba82d4295e3f508e8477f2f6f898834
2020-02-24 21:24:54 -05:00
andyh2
4ff239b312 apk: Fix permission to read /sdcard/
old-commit-hash: ab54a9e2c92791e276017c480789e14847618c4f
2020-02-19 23:26:18 -05:00
George Hotz
0c664a8ad0 Disable Power Down option for desk devices (#1117)
* './params.py DisablePowerDown 1' to use

* fix issues

old-commit-hash: 858c992bda6ac9a8e7ecc0e98354c5c6f79fc3e4
2020-02-18 11:48:04 -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
197c1d92fc Kalman filter compilation cleanup (#1080)
* start cleanup

* create generated dir if not exist

* tests pass!

* everything works again

* also convert live_kf to new structure

* Remove sympy helpers from file list

* Add laika to docker container

* Only build models that are present

old-commit-hash: 47fd50ca60da419b34469dbc293f1a7f0d3d46a9
2020-02-12 09:40:28 -08:00
Willem Melching
8611b1b648 Only show update alert if updater failed once since reboot (#1078)
* Only show update alert if updater failed

* no negetive days in warning message

* Also increase failed count when no internet

* Only set count to zero on actual update

* First run always fails because IsOffroad is not set yet

old-commit-hash: a5bd1d2a88173b28bff872c7635a8e126318029d
2020-02-11 14:59:37 -08:00
Harald Schafer
33a589ba66 comments
old-commit-hash: 6b1506740eb851eeae5f36fe1e6c3a3ddef6f89a
2020-02-04 16:48:45 -08:00
Harald Schafer
b30b89b110 better comments
old-commit-hash: f50e016c12d9dd9ce14c650aeed55bc5874229f1
2020-02-04 14:07:35 -08:00
Harald Schafer
1b62688713 reverse geocoder
old-commit-hash: bc725b98c9d9f59a47aa4665491e77b8df3916b1
2020-02-04 13:44:39 -08:00
Andy Haden
5341e96a9d get_network_type: Sort, correct cell network lookup and fix for pc
old-commit-hash: e8959e6b1a82c97b786989e7301e891b779856d1
2020-02-03 15:52:06 -08:00
Willem Melching
e6c548eff9 Handle get_network_type exception
old-commit-hash: 98f5d30455791718900af69d6c77316322a98974
2020-02-03 11:29:05 -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
George Hotz
b846f88ade Support scons build on Mac (#1034)
* fix clock and add Darwin sconstruct

* it builds, this changes should be simplifications too

* fix boardd build

* that's the real type of EGLClientBuffer

* remove extra lines

* ui needs opencl on phone

old-commit-hash: f72f78f2b9e1028a8421dc8f57bccfa2fab3396a
2020-02-01 23:36:50 -08:00
Andrew Valish
7378238933 Add network_type to thermald (#1030)
* add network_type to thermal log

* move get_network_type to android library

old-commit-hash: 770903520de6345b3d0e0f047352c7b222199bd7
2020-02-01 12:11:10 -08:00
Willem Melching
1dee8638d6 Cache FW query (#1025)
* split fw query and matching

* Read cached firmware versions

* add tests

* this works

old-commit-hash: b7aeb5d64dcbd2a3b9e065fd00ee1039852ab0b2
2020-01-30 17:57:20 -08:00
Andy Haden
dba98c817f logging: imports for stack info
old-commit-hash: 6762447ae7ad5dde9a61ed1e84655074cfdf2f33
2020-01-28 08:35:25 -08:00
Andy Haden
b909c8cd25 logging: Vendor findCaller for correct stack frame info in logs
old-commit-hash: 41e4ad5d1d64a7d57bf83dc44cffe327edcfa991
2020-01-27 21:10:47 -08:00