Commit Graph

186 Commits (spacecruft)

Author SHA1 Message Date
Adeeb Shihadeh d204d87b95 enable flake8 F error codes 2020-06-22 14:00:32 -07:00
Willem Melching 29262db5d6 add getter for LocalCoord transformation matrices 2020-06-10 11:35:45 -07:00
Willem Melching c18e7da3c2
Write orientation & transform in C++ (#1637)
* locationd at 20hz

* update ref

* bump cereal

* dont modify global state

* add scons files

* ecef2geodetic and geodetic2ecef

* Finish local coords class

* Add header file

* Add orientation.cc

* cleanup

* Add functions to header file

* Add cython wrapper

* y u no work?

* This passes the tests

* test rot2quat and quat2rot

* Teste euler2rot and rot2euler

* rot_matrix

* test ecef_euler_from_ned and ned_euler_from_ecef

* add benchmark

* Add test

* Consistent newlines

* no more radians supported in geodetic

* test localcoord single

* test localcoord single

* all tests pass

* Unused import

* Add alternate namings

* Add source for formulas

* no explicit tests needed

* remove benchmark

* Add release files

* Typo

* Remove print statement

* no access to raw transform matrix

* temporarily add tolerance

* handcode quat2euler

* update ref
2020-06-09 16:44:26 -07:00
Greg Hogan 3b180240d5 mkdirs_exists_ok more specific URL detection 2020-06-09 08:56:16 -07:00
Greg Hogan 7bf9b04570 ensure mkdirs_exists_ok is not called for URLs 2020-06-08 19:29:33 -07:00
HaraldSchafer 5106117525
More rigorous definition of calibration 2020-06-05 21:52:58 -07:00
Jason Young 68531b071c
Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
2020-06-05 17:09:41 -04:00
Adeeb ab83e48ec4
Add pre-commit hooks (#1629) 2020-06-03 12:54:49 -07:00
Willem Melching 843a64c72f
Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
Willem Melching b042ac034e
Turn Jenkins CPU test back on (#1617)
* run cpu test again

* Update cpu values

* Locationd can be more too

* Give some updater allowance

* Just remove updated
2020-06-01 18:57:04 -07:00
Harald Schafer 56e155d41c better name 2020-06-01 12:09:09 -07:00
Adeeb Shihadeh 6466ec982a enable flake8 E502: backslash is redundant between brackets 2020-05-31 17:41:18 -07:00
Adeeb Shihadeh ebed2d1dcc enable flake8 E251: unexpected spaces around keyword / parameter equals 2020-05-31 17:34:47 -07:00
Adeeb Shihadeh f3dcf861c7 enable flake8 E303: too many blank lines 2020-05-31 17:21:11 -07:00
Adeeb Shihadeh 27754a277c enable E261 in flake8: two spaces before inline comment 2020-05-31 14:07:29 -07:00
Willem Melching a0adc44821 Enable new params learner for improved vehicle model estimation 2020-05-31 13:36:27 -07:00
Willem Melching 0e7d509415 fake text window has no close 2020-05-31 12:50:43 -07:00
Adeeb Shihadeh efd5dffb1e enable flake8 E231: missing whitespace after comma 2020-05-31 12:49:11 -07:00
Adeeb 6051061ff8
Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
2020-05-31 00:48:47 -07:00
Adeeb d9bf9f0a40
Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
2020-05-30 20:14:58 -07:00
Adeeb Shihadeh 6230f366c5 Revert "minor LGTM fixes"
This reverts commit f10c2eff7d.
2020-05-29 11:10:48 -07:00
Adeeb Shihadeh f10c2eff7d minor LGTM fixes 2020-05-29 00:44:27 -07:00
Willem Melching ba2ac1207a
Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
2020-05-28 15:40:48 -07:00
Willem Melching 3d08dcc3b2
Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
2020-05-28 15:05:04 -07:00
Willem Melching 29aaa44740
flake8 in pre-commit(#1583) 2020-05-27 20:33:05 -07:00
Willem Melching bd06434243
pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
2020-05-27 20:00:14 -07:00
HaraldSchafer 7c8d6cbdef
pure init (#1569) 2020-05-26 20:49:14 -07:00
Willem Melching 5870b48210 Locationd actually runs in jenkins now. Give more cpu allowance 2020-05-20 14:23:57 -07:00
Harald Schafer e864d1af2f update 2020-05-18 14:37:47 -07:00
HaraldSchafer 81686547cc
Locationd cleanup (#1517)
* way cleaner take 2

* cleanup

* be more relaxed

* just let it be

* don't drive backwards or upside down

* do this more

* vNED sometyimes invalid

* use reasonble stds

* stability in nonlinear zone

* previous metrics were without publishing
2020-05-17 20:59:53 -07:00
Willem Melching d08c2d084f Lower modeld cpu threshold thanks to thneed 2020-05-15 15:48:48 -07:00
George Hotz 1295cfe06c
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>
2020-05-02 12:07:34 -07:00
George Hotz c4592e8547 add simple usage example to window.py 2020-04-30 15:31:01 -07:00
George Hotz 42fb2b4737 improve printing in profiler 2020-04-27 12:12:40 -07:00
Willem Melching 9e2db91cdd run coordinate tests 2020-04-24 13:55:20 -07:00
Willem Melching f856c99279 remove geocode 2020-04-24 13:53:56 -07:00
George Hotz abad49110e delete more unused, now under 40k lines of python. framereader needs to be ported to C++ 2020-04-24 13:45:34 -07:00
George Hotz 8b448a7c16 delete unused code 2020-04-24 12:10:35 -07:00
George Hotz c5b16df772 more unused code 2020-04-24 09:24:29 -07:00
George Hotz da5cb1842a remove unused code 2020-04-24 08:58:28 -07:00
Willem Melching 8daef80bd7 fix linter 2020-04-23 10:46:39 -07:00
George Hotz aeb0a4af88 transform_img_M 2020-04-22 19:56:53 -07:00
George Hotz 144b37728f who is ready for big model? 2020-04-21 20:23:49 -07:00
Greg Hogan e23f1fcf0a ColumnStoreWriter.add_dict() support for multiple types 2020-04-20 16:56:38 -07:00
Greg Hogan cf131ee8e9 ColumnStoreReader support for intermediate keys of flat dictionaries 2020-04-20 16:25:43 -07:00
Dean Lee f2ef1f6fd5
fix UnicodeDecodeError in get_network_strength (#1385) 2020-04-17 11:38:27 -07:00
ZwX1616 133b1a20b4
RHD support for driver monitoring (#1299) 2020-04-15 16:48:44 -07:00
Greg Hogan efbb4aac2e ColumnStoreWriter/Reader support for dictionary of arrays in single file 2020-04-13 19:04:52 -07:00
Andy 41bb3ac7ca
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
2020-04-05 11:06:49 -07:00
DeanLee b4641b7392
fix AttributeError: 'FakeSpinner' object has no attribute 'close' (#1317) 2020-04-05 10:54:01 -07:00
Willem Melching dae19a284d
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>
2020-04-02 15:04:01 -07:00
Willem Melching b497a01417
add low pass filter on cpu temp (#1305) 2020-04-01 15:58:40 -07:00
Jason Young 0970dd74b7
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
2020-04-01 10:51:47 -07:00
Willem Melching 202a4c2011
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>
2020-03-31 20:14:26 -07:00
Greg Hogan 415780213f compress option for dict column store writer 2020-03-27 17:49:01 -07:00
Andy Haden 8ca12dac27 URLFile: include url in bad status code error 2020-03-23 21:23:42 -07:00
ZwX1616 05e4365bb6 dm offsetshould only care about the valid counts 2020-03-23 11:50:29 -07:00
Andy Haden 538ca733c7 Remove legacy AccessToken param 2020-03-23 00:22:41 -07:00
Greg Hogan f21d0f325e
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
2020-03-19 18:09:26 -07:00
Andrew Valish 5ba6beed17
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
2020-03-09 19:13:32 -07:00
Andrew Valish 8eff974a41
revise wifi signalstrength dumpsys query (#1224)
* revise wifi signalstrength dumpsys query

* cleaner index search per willems comment

* cleaner index search per willems comment
2020-03-09 18:00:24 -07:00
Andrew Valish d161584f99
use unknown networkstrength, not none (#1222) 2020-03-09 10:48:28 -07:00
Andrew Valish 6bbbe8f9cf
add network strength logging to thermal (#1211)
* add network strength logging to thermal

* import get_network_strength

* write networkStrength
2020-03-07 11:14:04 -08:00
Willem Melching 3d2696c60b
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
2020-03-02 10:40:47 -08:00
Andy c4af05868b
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
2020-02-24 21:24:54 -05:00
andyh2 ab54a9e2c9 apk: Fix permission to read /sdcard/ 2020-02-19 23:26:18 -05:00
George Hotz 858c992bda
Disable Power Down option for desk devices (#1117)
* './params.py DisablePowerDown 1' to use

* fix issues
2020-02-18 11:48:04 -08:00
Andrew Valish 45718d9294
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>
2020-02-14 15:24:59 -08:00
Willem Melching 47fd50ca60
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
2020-02-12 09:40:28 -08:00
Willem Melching a5bd1d2a88
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
2020-02-11 14:59:37 -08:00
Harald Schafer 6b1506740e comments 2020-02-04 16:48:45 -08:00
Harald Schafer f50e016c12 better comments 2020-02-04 14:07:35 -08:00
Harald Schafer bc725b98c9 reverse geocoder 2020-02-04 13:44:39 -08:00
Andy Haden e8959e6b1a get_network_type: Sort, correct cell network lookup and fix for pc 2020-02-03 15:52:06 -08:00
Willem Melching 98f5d30455 Handle get_network_type exception 2020-02-03 11:29:05 -08:00
George Hotz c42e2ecc50
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
2020-02-02 12:15:02 -08:00
George Hotz f72f78f2b9
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
2020-02-01 23:36:50 -08:00
Andrew Valish 770903520d
Add network_type to thermald (#1030)
* add network_type to thermal log

* move get_network_type to android library
2020-02-01 12:11:10 -08:00
Willem Melching b7aeb5d64d
Cache FW query (#1025)
* split fw query and matching

* Read cached firmware versions

* add tests

* this works
2020-01-30 17:57:20 -08:00
Andy Haden 6762447ae7 logging: imports for stack info 2020-01-28 08:35:25 -08:00
Andy Haden 41e4ad5d1d logging: Vendor findCaller for correct stack frame info in logs 2020-01-27 21:10:47 -08:00
Andy Haden e400aa0205 Remove unused logging_es 2020-01-27 19:59:52 -08:00
andyh2 79122ae662 apk lib: Grant offroad access to TelephonyManager 2020-01-19 18:05:31 -05:00
George Hotz c26d893a77 allow non android to be identified differently 2020-01-17 17:38:31 -08:00
Harald Schafer e4472d0d46 deprecated 2020-01-17 16:24:40 -08:00
George Hotz e8d888c45b common folder 2020-01-17 10:28:44 -08:00