Commit Graph

536 Commits

Author SHA1 Message Date
Cameron Clough
07084dcbaf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b3cfe962cf
2022-08-22 21:47:09 -07:00
Cameron Clough
25236f1f79 sim: fix gps message (#25521)
fix gps timestamp field renamed

bug introduced in https://github.com/commaai/cereal/pull/341
old-commit-hash: f65547fbe2
2022-08-22 16:23:36 -07:00
Shane Smiskol
f49bbf60b6 joystick: revert max axes value (#25483)
revert this to 255
old-commit-hash: 16fe10e128
2022-08-18 23:34:48 -07:00
Erich Moraga
00cd70f3e2 ssh docs: corrections and readability improvements (#25482)
* Corrections and readability improvements

* Apply suggestions from code review

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6a3a9944c2
2022-08-18 15:18:50 -07:00
Shane Smiskol
2bd8ee0974 controls: block resume if cruise not previously engaged (#25402)
* see if this works at all

* can revert this

* think adding a no entry conditionally is nicer

* then we can revert this

* 0 makes more sense

* Revert "0 makes more sense"

This reverts commit efc89e8a2389ef58fbc0cec0a2872d24db524867.

* gm CC uses > 70

* bump cereal

* comment

* test on Honda

* whoops

* works

* add exception with todo

* moved button enable events to controlsd

* get rid of that

get rid of that

* different values for now

* car interfaces add enable event, controlsd can block it

* Regen and update refs

* delete if not set

* One place

one place

* regen routes are uninitialized first few frames

* Trim start of segment so it's like original segment

* stash

* regen

* not working

* clean up

* more cleanup

* revert

* bump ceral

* actually check resume button

* whoops

* pcmCruise cars don't use setSpeed, so we're good

* engage correctly in sim

* Update ref_commit

* Update refs
old-commit-hash: 5ed587ebef
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh
6c03a57b85 pj: update torque control layout
old-commit-hash: 76a4daefff
2022-08-16 13:16:23 -07:00
Jason Shuler
2922d5b7aa ubuntu_setup.sh detect base ubuntu version for variant distros (#25433)
ubuntu_setup detect base version
old-commit-hash: 65f230e6f6
2022-08-13 18:53:45 -07:00
grekiki
9e577a7cb0 plotjuggler: Longer max stream buffer size (#25399)
* longer streams

* more consistent

* reduce diff
old-commit-hash: 7f6464d97d
2022-08-10 20:02:45 -07:00
Robbe Derks
99ef2b4d02 don't wait to install plotjuggler
old-commit-hash: 3575142071
2022-08-10 12:22:41 +02:00
grekiki
31260ce863 plotjuggler: route name in window title (#25370)
* Route titles

* minimum version check

* use tuples

* minor clean up

* use check_output

* space

* belongs here

* add prompt

* no f string

* Update juggle.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cac960cb54
2022-08-08 15:10:31 -07:00
Adeeb Shihadeh
18b4b1e73e remove old tools script
old-commit-hash: 49044b5399
2022-08-07 17:10:14 -07:00
Nelson Chen
c824ca1076 Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
old-commit-hash: 4fb318c5be
2022-08-04 15:06:36 -07:00
Adeeb Shihadeh
ee0f5386a1 plotjuggler: add max torque layout
old-commit-hash: 20c140b10e
2022-07-31 15:36:37 -07:00
Jeroen
e215317cf0 sim: role_name attribute used by ScenarioRunner for CARLA (#25315)
old-commit-hash: 26d29d2138
2022-07-31 13:18:02 -07:00
Willem Melching
dfcd3a2910 casync unittests (#25306)
* simple extract test

* add test with loopback

* test for chunk reuse

* test seeding

* add instructions

* cleanup

* install casync

* make more tests work without a loopback
old-commit-hash: 753f4c7fab
2022-07-29 17:46:19 +02:00
Willem Melching
cd9aa86b8a plotjuggler: allow loading ci routes (#25294)
* plotjuggler: allow loading ci routes

* update readme
old-commit-hash: f3be47bc55
2022-07-27 16:19:19 +02:00
Adeeb Shihadeh
5263356958 remove CS.steeringRateLimited (#25251)
* remove CS.steeringRateLimited

* bump cereal

* update refs
old-commit-hash: d462a08056
2022-07-24 14:56:55 -07:00
pcjx
3ccab8345c Make ubuntu_setup.sh use codenames to support Ubuntu based distros (#25261)
Using codenames allows the ubuntu_setup.sh to install
properly on systems like Pop!_OS or Linux Mint.
old-commit-hash: 551d2fe511
2022-07-23 16:49:41 -07:00
Adeeb Shihadeh
04af978260 let can packer handle counter (#25240)
* let can packer handle counter

* diff is expected

* update refs

* clean that up

* bump opendbc

* fix sim
old-commit-hash: 0ca62bf7df
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh
8a7454eec3 implement string representation for Bootlog
old-commit-hash: e6e8607306
2022-07-21 14:14:34 -07:00
Dean Lee
908eb73e35 replay: add support for reading from plain logs (#25053)
* read from plain log

* reduce memory copies

* cleanup

* fix test_replay
old-commit-hash: 91eb096ac9
2022-07-15 10:53:10 -07:00
Adeeb Shihadeh
b73f02bf45 controlsd: handle radar missing + cleanup system error handling (#25179)
* controlsd: handle radar missing + cleanup system erorr handling

* fix carla

* update refs
old-commit-hash: 505bbce29d
2022-07-14 19:55:18 -07:00
Willem Melching
994b31a585 fix MacOS buid: replay frameworks (#25061)
* replay: fix macos build

* here too

* keep original frameworks
old-commit-hash: 356190f671
2022-07-07 16:13:05 +02:00
Adeeb Shihadeh
fa29abe740 always show avg power
old-commit-hash: d4f4809992
2022-07-05 14:28:54 -07:00
Maxime Desroches
4a09ab86ac tools: add support for nv12 in compressed_vipc (#24962)
reshape for nv12
old-commit-hash: 2027d5311d
2022-06-30 15:03:15 -07:00
Greg Hogan
7998c45a3f docs: ssh.comma.ai (#25000)
old-commit-hash: e643f8e681
2022-06-30 10:52:56 +02:00
Shane Smiskol
2c5e890a23 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201
2022-06-29 14:47:46 -07:00
Dean Lee
1175e76182 framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
old-commit-hash: e0cd3bf5fc
2022-06-29 11:27:37 +02:00
Dean Lee
2156e71e7a move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
old-commit-hash: fd5b3d7603
2022-06-28 16:12:42 +02:00
Shane Smiskol
aecb469f36 can replay: get logs in parallel (#24960)
* get can replay segs in parallel

* total not needed
old-commit-hash: 379dc24eca
2022-06-24 16:49:56 -07:00
ZwX1616
3e2828c9bb fix carla test fake driverState (#24959)
use driverstatev2
old-commit-hash: 6721f0ef57
2022-06-24 14:29:46 -07:00
Robbe Derks
39661f9291 use correct tty device for serial
old-commit-hash: 5cd8bef921
2022-06-24 12:37:30 +02:00
Adeeb Shihadeh
f06bb9d5f2 CANParser: invalid until valid (#24945)
* CANParser: invalid until valid

* bump opendbc

* bump opendbc

* fix counter in sim
old-commit-hash: 569a39ff76
2022-06-22 15:38:38 -07:00
Gijs Koning
5494622601 Improve laikad cpu usage. Less pos fix. Less local imports (#24887)
* Improve laikad cpu usage. Less pos fix. Not local imports

* Add laika to files_common

* Add laika to dockerfile sim

* Fix

* Fix

* undo
old-commit-hash: 1c4b145aa4
2022-06-20 14:24:11 +02:00
Adeeb Shihadeh
5fcc792527 sim: update cl kernel path
old-commit-hash: 1baf0e3f4a
2022-06-19 15:49:38 -07:00
Adeeb Shihadeh
d9d83b0225 Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
old-commit-hash: 6123ab3d1c
2022-06-19 14:43:49 -07:00
Adeeb Shihadeh
2ca457fcab zookeeper: add avg power to power_monitor.py
old-commit-hash: a27d242e3d
2022-06-18 19:02:09 -07:00
Adeeb Shihadeh
b2808768f6 little zookeeper fixes (#24861)
* little zookeeper fixes

* bump that up
old-commit-hash: 6757e235f9
2022-06-14 20:38:25 -07:00
Adeeb Shihadeh
7061996882 ui.py: update for nv12
old-commit-hash: f05166ae26
2022-06-13 13:58:22 -07:00
Adeeb Shihadeh
5425336963 misc jenkins fixups (#24840)
* bump cereal

* remove that

* pull cl image

* lil docker cleanup
old-commit-hash: 39da6912ea
2022-06-12 18:00:00 -07:00
Jeroen
75a30612b0 Updated CARLA to v0.9.13 (#24575)
* Updated CARLA to v0.9.13

* pipenv lock

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1c29b20e72
2022-06-12 09:32:18 -07:00
Adeeb Shihadeh
9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Maxime Desroches
9a003e9b29 simulator: run simulator test in ci (#24691)
* run simulator test in ci

* block navd process

* block ui

* fix jenkins

* build docker

* remove tty

* remove tty for carla

* detach carla_sim

* more retries

* only build once

* add more time for bridge

* cleanup

* use qt offscreen

* expose to docker

* block ui

* use new dockerimage

* fix

* from ubuntu20.04

* install curl

* add ssh

* add locales

* noninteractive

* syntax

* use base

* smaller image

* add git + git lfs

* kill carla

* run in parallel

* fix missing agents

* default agent?

* little cleanup

* default doesn't work

* not in ci

* fix path

* fix path

* new msg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5add0c6159
2022-06-11 15:32:12 -07:00
Shane Smiskol
e3253d87fa PlotJuggler: add torque control layout (#24726)
* add torque control PJ layout

* less custom transformation

* Use curvature, less noisy

* remove that
old-commit-hash: 6a58dd808f
2022-06-07 15:01:19 -07:00
HaraldSchafer
7c4645f227 Fix onnx model replay (#24702)
* No more C2

* Add test

* Various fixups

* Use ONNXCPU

* rm prints

* LFS pull

* Use sim docker

* Try sim docker again

* Print counter

* Make sure it can fail

* Fails correctly

* comments

* Add more install to opencl base docker

* vim not needed in base
old-commit-hash: a2c6b30c98
2022-06-03 10:43:09 -07:00
HaraldSchafer
cf0564382a CL in docker (#24718)
* Move CL to base docker

* Different docker for cl

* add cl base docker

* add to tool

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc4d4f875b
2022-06-02 18:26:12 -07:00
Adeeb Shihadeh
3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade
2022-06-02 17:02:25 -07:00
HaraldSchafer
edb35600b7 Update README.md
old-commit-hash: c2b334acb5
2022-06-02 16:45:11 -07:00
Lukas Petersson
a16a20005b process replay: logreader as bytes (#24610)
* willem's changes

* classmethod for bytes

* submodules

* submodules

* Update tools/lib/logreader.py

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

* add back files

* little cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86f73a507e
2022-06-01 22:02:42 -07:00
George Hotz
2a6ffaf71d nv12: encoderd avoids a full frame copy (#24519)
* rgb to nv12

* nv12 works (w memcpy)

* correct now

* no copy

* fix nv12 with fast debayer

* reverts of unused stuff

* ui use nv12

* comment out thumbnails for now

* rebase fix

* dm read nv12

* model read nv12

* fix ffmpeg encoder

* thumbnails from nv12

* replay to nv12

* python framereader support nv12

* remove hardcoded frame/buffer sizes

* fix build

* ffmpeg encoder fix buffers

* small cleanup

* reduce power usage test

* fix cpu usage test

* fix snapshot

* fix loggerd test

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: ea5b8cdfb1
2022-06-01 17:18:28 +02:00