Commit Graph

224 Commits (latency_logging)

Author SHA1 Message Date
Lukas Petersson c4fdcb6f8d frame id in context 2022-03-23 19:19:30 -07:00
Comma Device c6f082ca74 bug fixes 2022-03-23 11:37:08 -07:00
Comma Device 08c0896f6a bug fixes and debug level 2022-03-22 11:11:17 -07:00
Lukas Petersson 852702311d bug fixes 2022-03-21 18:23:49 -07:00
Lukas Petersson 419da793af add frame id 2022-03-21 17:39:46 -07:00
Lukas Petersson 932778e21b c++ cloudlog 2022-03-21 17:04:28 -07:00
Lukas Petersson 37925ac9f6 cloudlog timestamp 2022-03-21 14:50:11 -07:00
Lukas Petersson 2d7726a82b graph json 2022-03-19 16:55:25 -07:00
Adeeb Shihadeh 5c3f3e44bc
break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
George Hotz 3573a3043b
fix in window for xmonad with SDL2 (#23786) 2022-02-17 12:14:27 -08:00
Gregor Kikelj 12b48dcfb0
remove unused int_rnd function (#23717)
* testing

* revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-07 14:12:54 -08:00
Willem Melching ed23177898
thermald: remove panda disconnect logic (#23526)
* thermald: remove panda disconnect logic

* keep that
2022-01-14 14:13:18 +01:00
Robbe Derks 4ff9ee8902
monkeypatch os.link (#23480) 2022-01-10 16:57:05 +01:00
Harald Schafer dbef0a1cd4 Camera transforms: denormalize with no bounds at all 2022-01-06 18:23:40 -08:00
Harald Schafer ce998be706 Camera transforms: denormalize with no bounds 2022-01-06 16:37:34 -08:00
George Hotz dc96d4bee7
Add More Types for mypy (#23268)
* 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>
2021-12-28 18:07:00 +01:00
Ewout ter Hoeven 55390d273f
Convert format strings strings to f-strings (#23241)
* 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>
2021-12-16 14:58:17 +01:00
mitchellgoffpc 921656e9d7 Added sbigmodel frame transformations 2021-12-09 16:15:24 -08:00
Willem Melching f7c46c6949
Do not run code on version.py import (#23063)
* Do not run code on version.py import

* fix athena
2021-11-29 19:38:55 +01:00
Adeeb Shihadeh 08f9316b56 remove dead + duplicate python code 2021-11-28 14:02:06 -08:00
mitchellgoffpc 53e095343d Added bigmodel_frame_from_calib_frame to transformations/model 2021-11-08 17:10:57 -08:00
Mayfield 1aebe6ff6e
ui: render markdown in release notes (#22754)
* 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>
2021-11-04 16:12:39 +01:00
Dean Lee 2773ff5ace
params: code cleanup (#22744)
* cleanup params

* apply review

* continue

* use c_str

* cleanup filelock

* don't check return code of close()

* remove call_once

* cleanup params_pyx

* cleanup comment
2021-11-01 11:22:34 +01:00
Dean Lee 92682cb8e0
params: remove params_pxd.pxd (#22723) 2021-10-28 19:10:55 +02:00
George Hotz cb01ef0919 transformations: preserve dtype in denormalize 2021-10-19 19:46:35 -07:00
George Hotz 9b61072690 fix param setting 2021-09-13 17:35:05 -07:00
Willem Melching c15a616ac4
Continuously update offset between TSS2 angle sensors (#21943)
* Continuously update offset between TSS2 angle sensors

* add comment

* less lines

* only when initialized

* init to None

* update ref
2021-09-01 15:00:52 -07:00
Willem Melching dddab597bc
Less open file permissions (#21922)
* Less open file permissions

* add test back

* remove params test for permissions

* remove umask

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-28 18:25:05 -07:00
Dean Lee 3b752a307f
params: remove persistent params (#21975)
* cleanup constructors

* remove persistent_param

* remove test_persist_params_put_and_get
2021-08-20 16:57:45 -07:00
Willem Melching 28823917ea
athena: return current upload status in listUploadQueue (#21903)
* return current upload item in listUploadQueue

* update progress on read

* move to file helpers

* use dict instead of global
2021-08-13 11:51:08 +02:00
Willem Melching 267a0b343b
api_get: keep same api (#21838) 2021-08-03 15:33:41 +02:00
Dean Lee 543e019f71
api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
2021-08-03 13:49:49 +02:00
sshane c900bce1b0
Use first order filter (#21411)
* 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>
2021-08-03 13:47:46 +02:00
Greg Hogan d0c079d810 only log errors once 2021-07-15 14:34:55 -07:00
Willem Melching 2f759893ca
Release GIL when calling C++ params functions (#21257)
* Release GIL when calling C++ params functions

* small cleanup
2021-06-15 12:36:01 +02:00
ShaneSmiskol 36beaf0d68
Add CLEAR_ON_IGNITION_OFF param type (#21121) 2021-06-03 15:21:53 -07:00
Josh Smith 77321dbac4
Add type hints, small cleanups (#21080)
* 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
2021-06-03 12:21:04 +02:00
Adeeb Shihadeh 8fdbbdef73
remove oneplus camera params (#21047)
* remove oneplus camera params

* align
2021-05-26 17:46:43 -07:00
HaraldSchafer 0a34900fec
clip arcsin to prevent locationd orientation NaN (#20868)
* clip arcsin

* can of course be negative
2021-05-10 20:21:20 -07:00
Adeeb Shihadeh b4447993c1
add CLEAR_ON_IGNITION param type (#20810) 2021-05-04 11:32:40 -07:00
Dean Lee 27d3f820bf
Params: move keys from cython to cc (#20814)
* move keys from cython to cc

* consistency

* passes tests

* more consistency

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-04 10:49:26 -07:00
Adeeb Shihadeh f9a961f6fb
delay controls start (#20761)
* delay controls start

* shouldn't need this stuff anymore

* only delay board

* bail after 2s

* fix loopback test

* fix process replay

* update refs

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
2021-04-30 13:55:17 -07:00
Joost Wooning 3420707ad5
convert locationd to c++ (#20622)
* 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
2021-04-20 11:56:43 +02:00
Adeeb Shihadeh 2eac604993
lte toggle (#20683) 2021-04-14 21:19:06 -07:00
Willem Melching 74aa6e29c9
Params: new class FileLock (#20636)
* 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>
2021-04-09 16:35:44 +02:00
Willem Melching 1fc7bcca43
ecam toggle (#20597)
* 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>
2021-04-07 19:12:35 +02:00
Willem Melching ae094042ad
add putBool/getBool wrappers to cython params class (#20611)
* add putBool/getBool wrappers to cython class

* use new API

* some more puts

* fix mockparams arguments

* add get_bool to MockParams

* typo
2021-04-07 15:36:37 +02:00
Dean Lee 98e55996f6
Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
2021-03-30 12:54:59 +02:00
Dean Lee 5cd676797a
Qt: show username for current SSH keys (#20508)
* Show username for current SSH keys

* Update ssh_keys.cc

* Update ssh_keys.cc

* Update selfdrive/ui/qt/widgets/ssh_keys.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* rename param

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-28 22:32:33 -07:00
Greg Hogan 1e3f8b014e
logging cleanup (#20502)
* switch some uploader messages to debug log

* use allow_sleep

* log when not request or response

* test both with params and without params
2021-03-26 17:36:01 -07:00