* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc96d4bee7
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f
* convert release notes from markdown to html
* fall back to previous behavior if utf8 decoding or markdown parsing throws
* make simple markdown parser to avoid needing a library
* add unit test
* move markdown parser to common. add unit test
use `markdown-it-py` instead of `markdown` dependency for test comparison since it's already in Pipfile.lock
* test (almost) all release notes and add some extra html encoding
* update lock
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1aebe6ff6e
* Less open file permissions
* add test back
* remove params test for permissions
* remove umask
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dddab597bc
* return current upload item in listUploadQueue
* update progress on read
* move to file helpers
* use dict instead of global
old-commit-hash: 28823917ea
* Use first order filter in INDI
* use first order filter in LP as well
* Update selfdrive/controls/lib/lane_planner.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* RC->rc
* division safe
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c900bce1b0
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl
* unpack more efficiently
* minor improvements
* agnos.py match spec better
* manual_ctrl test missing queue arg
* fix incorrect type annotation
* queues are generic
* varname reuse resulting in incorrect type inference
* bytes().hex() rather than bytes.hex(bytes())
* a bit of type hinting stuff
old-commit-hash: 77321dbac4
* live_kf to c++
* first locationd code
* Running in process_replay
* locationd handle cam_odo and live_calib
* log event handlers
* working message receiving
* compiling message sending
* correctly sending some messages
* correct receiving and sending
* update ref_commit with some all_alive_and_valid being false, minor fixes
* fix std abs
* linking on device fix
* fix cpu usage test
* generate kf constants and defines
* fix replay test
* replay without acks, cleanup
* operate on bytearray messages
* cleanup
* send msg fix
* small sleep, less flaky test
* remove python locationd
* review feedback
* bump rednose
old-commit-hash: 3420707ad5
* new class LockFile
* lock->try_lock
* rebase master
* close if fd_ >=0
* rename try_lock to lock
* keep tryring if flock() return EINTR
* throw exception on error
* keep trying if open() gets interrupted by a signal
* close fd_ before throw flock exception
* add macro HANDLE_EINTR
* HANDLE_EINTR for open & write
* add errno in exception
* add destructor
* don't throw exception,log err and return
* Revert "don't throw exception,log err and return"
This reverts commit 6e1ba4a1bd82de3d4d07db5238a82184fd2ec9b4.
* add lock file name in exception
* cleanup exception text
* use lock_guard in function put
* anonymous namespace
* use do-while(0) instead of goto
* cleanup read_db_all
* cleanup FileLock
* remove fchmod 0666 for apks
* Revert "remove fchmod 0666 for apks"
This reverts commit b389c31762417c4465d73be2453efcf7bc693aee.
* log instead of runtime error
* keep libs
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 74aa6e29c9
* use ecam in ui
* needs reboot
* use in modeld
* typo
* effective FL is longer in center
* normalize zoom by focal dist
* read param before init
* make 2x as wide
* review comments
* more explicit
* fix camera offset
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
old-commit-hash: 1fc7bcca43
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
old-commit-hash: ae094042ad
* switch some uploader messages to debug log
* use allow_sleep
* log when not request or response
* test both with params and without params
old-commit-hash: 1e3f8b014e
* log to file and send through athena
* rename logging level
* pass thru log formatter
* logMessage is TEXT
* send queue always strings
* switch to xattr and lower priority queue
* enable cloud logging for devices
* time or size based log rotation
* basename -> dirname
* remove HARDWARE.get_cloudlog_enabled
* fix errors
* fix another exception
* xattrs need to be bytes
* sending works
* cleanup files at start
* add id and adjust formatting
* do not send active log file
* better names
* separate log formatters
* fix formatter super init
* fix log file order
* ensure file always has file formatter
* i see why there was no formatter
* apply same formatting to cpp log msgs
* apply same formatting to cpp log msgs
* update queue names in tests
* strip deprecated keys in STATUS_PACKET
* strip DEPRECATED from dict recursively
* athena log queue test
* instanceof instead of type
* isinstance instead of type
* use super
* remove logentries
* last_scan param unused
* comment about special log msg attr names
* add dict_helpers.py to release files
* use monotonic time and counter for log rotation
* update for adjusted log file naming
* use monotonic clock for tracking last log file scan
old-commit-hash: 3d48bd934d
* New model: 0bf38240-6b55-42b0-bcfb-da08ff5cd0b9/650
* laneless baby
* hardcode model difference for now
* kale toggle
* kale emoji
* sensible description
* make clear it is not just for ui
* emojis dont work yet
* 9671a8fe-539f-4a04-a163-54571df21139/650
* new model
* only read param on rising edge of ignition
* update toggle text
* fix that
* update refs
Co-authored-by: mitchell <mitchellgoffpc@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7ee79c9923
* record front lock
* only if set
* add to internal installer
* move that
* change that bck
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b60cd8d0a0
* Impose a max rate for updating spinner progress
* fix import
* Show spinner until offroad is started
* no need for time
* Fix ROOT_DIR
* Fix fb include
* fix relative path
* don't touch these files
* Close spinner after all procs have started
* don't touch file
* Move up
* Revert changes to spinner, and only sleep on final progress update
* add this back
* revert time
* test sending 100
* test sending 100
* revert makefile changes
* rm 2nd 100% update
* pass spinner to thread function
* pass ignore list
* Default to None
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a3556410de
* also shutdown on tici
* force powerdown
* bump panda
* abstract out shutdown and thermal config
* add comment on tici shutdown
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ad1c793d1