Commit Graph

1447 Commits

Author SHA1 Message Date
Justin Newberry
ca5a2ed942 move getting platform to get_params (#31871)
* better

* string

* not here
2024-03-14 21:58:25 -07:00
Cameron Clough
4dd5fd4619 ui.py fix typo (#31870) 2024-03-14 15:00:16 -07:00
Justin Newberry
a819292073 logreader: fix auto source + interactive modes (#31847)
* interactive modes

* these exceptions don't matter
2024-03-12 20:04:17 -07:00
Michel Le Bihan
8a03884500 simulator: Correctly handle arrival at destination (#31807) 2024-03-11 10:27:32 -07:00
Adeeb Shihadeh
e3589e4b5c refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
2024-03-10 16:56:50 -07:00
Michel Le Bihan
9c8a27ad24 simulator: Increase map size to contain road (#31805) 2024-03-08 15:13:02 -08:00
Shane Smiskol
e964c5944d LogReader: fix sort by time and union types (#31565)
* fix :(

* test_sort_by_time

* this isn't required

* not slow, and just compare sorted

* messy

* works

* clean up

* clean up

* not here

* clean up

* clean up

* clean up

* makes network call

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-03-08 02:49:24 -08:00
Adeeb Shihadeh
fd51bfb27b tools: update replay route parsing for timeless format 2024-03-07 18:57:59 -08:00
Justin Newberry
a919d27afc fix car test routes typing (#31773)
* Fix typing

* and fix test_car_model

* fix
2024-03-07 11:33:40 -08:00
Michel Le Bihan
b4c8e0834d Simulator: Add world status reporting (#31740) 2024-03-06 19:16:21 -08:00
Justin Newberry
25ccb2426c cars: remove CAR_INFO map (#31739)
* no carinfo map

* smaller diff

* not on mock
2024-03-06 11:22:12 -08:00
Adeeb Shihadeh
7cfc571f56 timeless routes (#31119)
* timeless route

* update sort

* update test

* fix param name
2024-03-05 20:43:33 -08:00
Michel Le Bihan
32fb58656a Only print keyboard help on poll start and unknown command (#31710) 2024-03-05 10:36:01 -08:00
Justin Newberry
8ec0d87de0 card: prepare for separate process (#31660)
* Card

* update ref

* bump cpu

* sub to caroutput

* update ref
2024-03-04 09:53:42 -08:00
Michel Le Bihan
87a9445d56 Add simple MetaDrive scenario (#31686) 2024-03-04 08:54:08 -08:00
Adeeb Shihadeh
9b2665f0c1 can_replay fixups for bxcan hw 2024-03-02 12:23:46 -08:00
Adeeb Shihadeh
cfc5faee2a fix compress_vipc width 2024-03-01 21:53:16 -08:00
Justin Newberry
b0496d8294 can_replay: log fingerprint for hardcoding (#31671)
* log

* quotes
2024-03-01 13:28:58 -08:00
Harald Schäfer
85eb221e4c GpsLocation: Rename accuracy to horizontal accuracy (#31629)
* Rename accuracy to horizontal accuracy

* typo in cereal
2024-02-28 19:55:57 -08:00
Justin Newberry
f4a7e8eae6 disable commaCarSegments tests (#31632)
disable this test too
2024-02-28 16:47:08 -08:00
Justin Newberry
edd26acdc3 can_replay: add type hint (#31601)
type hint
2024-02-26 16:26:01 -08:00
Justin Newberry
9d1cafd0fc move with_http_server to selfdrive/test/helpers (#31597)
* move

* fix
2024-02-26 12:53:17 -08:00
Robbe Derks
854e78eaff linux-aarch64 also works for plotjuggler 2024-02-25 18:18:43 +00:00
Cameron Clough
995250ae49 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
2024-02-24 16:41:23 -08:00
Justin Newberry
556f973896 segment range docs update (#31560)
* the format

* cleaner
2024-02-23 11:50:33 -08:00
Greg Hogan
43f64ec500 URLFile: default value test (#31544)
* URLFile: default value test

* cleanup

* fix env

* improvements

* fix GET response

* only delete cache dir if it exists

* env pop

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-22 13:17:02 -08:00
Justin Newberry
3f104f3fbd fix static analysis 2024-02-21 11:26:49 -08:00
Adeeb Shihadeh
e7695c3f32 add power cycling to can_replay 2024-02-21 11:12:56 -08:00
Adeeb Shihadeh
c645feb1aa pj: gpu usage isn't real 2024-02-20 16:55:46 -08:00
Justin Newberry
a51ef41cf8 Simulator: simulate the obd enabled/changed dance (#31519)
obd dance
2024-02-20 12:11:42 -08:00
Shane Smiskol
c5f1f4c676 test_fw_query_on_routes: get first qlog (#31496)
* fast

* this isn't internal

* see
2024-02-16 17:55:15 -08:00
Justin Newberry
16d1339553 test_logreader: test internal scenarios (#31484)
* test source scenario

* test source scenario

* fix
2024-02-15 12:10:56 -08:00
Justin Newberry
8aee0d2af2 test_logreader: test interactive mode + fix typo in AUTO_INTERACTIVE (#31481)
* fix spelling

* test interactive

* remove that

* test taht

* move that
2024-02-15 11:24:27 -08:00
Greg Hogan
e59fe0014a URLFile: add typing and internalize pool manager (#31466)
* URLFile: add typing and internalize pool manager

* cleanup
2024-02-14 14:09:01 -08:00
Justin Newberry
33cf6bda9e LogReader: add typing hints (#31464)
logreader typing
2024-02-14 10:34:17 -08:00
Justin Newberry
1436f576df LogReader: retain old behavior for direct parsing of files (#31419)
* maintain exception

* test that head is not called

* annoying mock

* test with cache
2024-02-14 10:05:25 -08:00
Jason Young
991d02ba27 fix pre-commit install process (#31445)
* fix pre-commit install process

* only install pre-commit from a git repo
2024-02-14 08:19:20 -08:00
Shane Smiskol
796671fe1a SegmentRange: more explicit slice matching (#31451)
* more explicit

* fix it

* use non capturing group

* only needed for regex101

* make test_logreader.py executable

* fix

* stash

* passes test

* none

* type anotate

* test

* fix

* nice for syntax highlighting
2024-02-14 04:36:58 -08:00
Shane Smiskol
8fe9bc7a69 SegmentRange: simplify slice (#31455)
* simplify slicing

* rm
2024-02-14 04:17:03 -08:00
Shane Smiskol
c4f7991bb6 SegmentRange: test API call (#31456)
* test

* better

* better
2024-02-14 03:29:08 -08:00
Shane Smiskol
8276371009 SegmentRange: type annotations (#31453)
* type annotate SegmentRange

* proper formatting

* oops

* numpy?

format test too

* draft

* fixed

* clean up

* rm

* more

* clean up

* clean up

* rm

* not here

* revert
2024-02-14 02:05:55 -08:00
Shane Smiskol
0846175f44 tools/lib: format code (#31454)
easier to read. pylint used to catch all this stuff, but it's mostly missing in ruff :'(
2024-02-14 01:56:17 -08:00
Shane Smiskol
884bd5c7f6 SegmentRange: define __repr__ 2024-02-13 22:58:44 -08:00
Justin Newberry
d6762c3035 live_logreader to its own file (#31436)
own file
2024-02-13 13:29:52 -08:00
Adeeb Shihadeh
e9071f1198 dongle id is only hex (#31426)
* dongle id is only hex

* so is the count
2024-02-13 13:01:25 -08:00
Justin Newberry
0a92c5bf96 LogReader: live_logreader helpers (#31416)
live helper
2024-02-12 12:58:25 -08:00
Greg Hogan
667693b8c2 logreader: skip internal source if not available (#31400)
* logreader: skip internal source if not available

* raise exception

* but only when appropriate
2024-02-10 00:20:43 -08:00
Adeeb Shihadeh
daceb171bd bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
2024-02-09 21:44:23 -08:00
Justin Newberry
664a3c86ba test_caching: use with_http_server (#31393)
use http server
2024-02-09 20:06:11 -08:00
Justin Newberry
f873224235 LogReader: test auto mode fallback (#31390)
* test auto mode

* better

* slow

* better
2024-02-09 15:22:43 -08:00