Commit Graph

309 Commits

Author SHA1 Message Date
Adeeb Shihadeh
9b50379537 fix up replay docs
old-commit-hash: 07d23a1db9
2021-09-16 17:01:45 -07:00
Willem Melching
4e529f843b Hyundai radar parser (#22241)
* add radar parser for 0x5XX range

* fix speed

* enable based of fingerprint

* fix speed scale

* use proper signal names

* add to release files

* hyundai: script to enable radar points

* typo

* add comment

* fix tests

* cleanup

* add note about persistent

* Update selfdrive/car/hyundai/radar_interface.py

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

* fix bugs in hyundai enable radar points script

* accidentally removed comment

* add some other cars

* add cosine to dRel

* fw versions do not match openpilot

* bump opendbc

* include state 4

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6fd980c63e
2021-09-15 15:43:01 -07:00
George Hotz
a6c4c2768a Fix test relying on SAFETY.md being in the root
old-commit-hash: 3a6c8d4678
2021-09-14 16:02:36 -07:00
HaraldSchafer
c422cce205 Port lateral planning to ACADOS (#22080)
* lateral acados

* looks good!

* add another solve, needed for init somehow

* use copy

* init correctly

* cleanup sconstruct

* Update files_common

* update cpu usage

* reset when invalid

* fix cpu usage

* cost_set doesnt leak

* new ref

* non leaky reset

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7081ab4fb7
2021-09-13 19:06:54 -07:00
HaraldSchafer
cb1cd01bdf cleanup old nidec accel override logic (#22181)
* cleanup old nidec accel override logic

* add ref without deprecated fields

* no more override
old-commit-hash: 74b6c87254
2021-09-10 10:34:18 -07:00
HaraldSchafer
a73a820338 Change car controller interface from gas/brake to acceleration (#21911)
* retune civic

* seems smooth

* back to normal

* new ref

* fix conflict

* runs

* rm

* accel scale is 4

* toyota should be good

* more cleanup

* fixup

* better naming

* update ref

* deprecated

* sending brake when not enable causes a fault

* rm gas and brake

* unused

* update ref

* acura logic is no more

* wrong before

* revert tuning cleanup

* adress comments

* update ref

* already on master

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1ac89f14aa
2021-08-30 09:32:52 -07:00
Willem Melching
6f92abc815 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>
old-commit-hash: dddab597bc
2021-08-28 18:25:05 -07:00
Dean Lee
92881d347d add login info to serial readme for c3 (#22016)
* update comma serial README

* Update README.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7da5896af9
2021-08-23 11:32:43 -07:00
Adeeb Shihadeh
873f25bd1c fix typo
old-commit-hash: 4fd3ca5eac
2021-08-18 15:10:12 -07:00
Adeeb Shihadeh
a59a1fae26 add comma serial to tools
old-commit-hash: 2949946337
2021-08-18 15:00:51 -07:00
Comma Device
b9ffdc8a3d can replay: flashing lock
old-commit-hash: 6a5940c562
2021-08-18 14:17:02 -07:00
Adeeb Shihadeh
f0fcb68bb9 fix up can replay script
old-commit-hash: fd81a5556b
2021-08-18 14:06:06 -07:00
qadmus
8aaf2fb168 Update plotjuggler readme for streaming, and cabana url input (#21938)
* Condense plotjuggler streaming instructions

* add cabana share link to help output

* update juggle.py -h output

* redundant idiom

* Update tools/plotjuggler/juggle.py

* Update tools/plotjuggler/README.md

* Update README.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f52dcd468c
2021-08-16 22:23:42 -07:00
qadmus
87de705dc0 plotjuggler takes cabana shared links (#21899)
* plotjuggler cabana shared links

* extra newline
old-commit-hash: b9601dfe9d
2021-08-12 11:00:54 +02:00
speedking456
4895422c90 fix tools readme url typo (#21913)
old-commit-hash: 69da1a6e6e
2021-08-11 23:03:00 -07:00
Maxime Desroches
202af3bb4e tools: fix replay/camera.py crash (#21881)
* check array size before reshape

* revert

* check length directly
old-commit-hash: d90188a14e
2021-08-09 09:43:11 +02:00
Adeeb Shihadeh
9b1a7a6f01 use same env variable for loggerd, deleter, and uploader
old-commit-hash: 1d4b19f739
2021-08-07 18:58:11 -07:00
Adeeb Shihadeh
52d8c21dc7 update ssh readme for c3
old-commit-hash: 45b5df5b08
2021-08-07 11:36:34 -07:00
arfy slowy
63b3d6024b fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f8
2021-08-05 12:05:49 -07:00
grekiki
18421ab6d7 Tools: Plotjuggler reduce RAM usage (#21781)
old-commit-hash: 6048988c13
2021-07-30 09:04:31 +02:00
Adeeb Shihadeh
e513b1eb43 my.comma.ai -> connect.comma.ai (#21702)
old-commit-hash: deb170e0b2
2021-07-26 13:53:49 -07:00
Greg Hogan
eca265120f FrameIterator that uses 1+ GB less RAM (#21687)
old-commit-hash: 8f1806602c
2021-07-22 12:08:56 -07:00
Willem Melching
6e5af4de8a fix ui.py after longitudinal refactor
old-commit-hash: a85b5557ed
2021-07-13 12:01:36 +02:00
grekiki
addd1037bb plotjuggler: add segment_count arg (#21474)
old-commit-hash: b3a792305e
2021-07-06 13:57:03 -07:00
HaraldSchafer
7e87930a20 Refactor lateral lag compensation (#21334)
* add T_IDXS

* refactor

* fix test

* unused

* typo

* needs casting

* Update selfdrive/controls/lib/drive_helpers.py

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

* deprecate field

* regen all

* new segs

* add todo

* split back

* clean

* bad names

* do in controls

* add arg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6838e1c82c
2021-06-30 14:19:39 -07:00
orphen
b433129fd6 fix: sim: gracefully shutdown the bridge (#21413)
old-commit-hash: 325cabd4da
2021-06-29 13:45:34 -07:00
HaraldSchafer
34ca4a1a29 Simplify longitudinal tests (#21337)
* first pass

* passes!

* little more cleanup

* little more

* fix sim

* remove more plot stuff

* fix crash check

* fcw

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 234971203b
2021-06-24 21:03:18 -07:00
orphen
44440909dd Fix path issues in ubuntu_setup.sh and openpilot_env.sh (#21380)
* fix: fix pathing issues in ubuntu_setup.sh and openpilot_env.sh

Fixes:
- enter git tree before trying git operations in ubuntu_setup.sh
- extend PYTHONPATH instead of overwriting it in openpilot_env.sh
- fix pyenv pathing with workaround in openpilot_env.sh

This also adds a newline before .bashrc extensions to visually separate
the additions from existing content.

* Update tools/ubuntu_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6d3c587564
2021-06-23 13:31:28 -07:00
Alfonso Hernandez
4f3ad7284c Simulator: Complete GPS message from Carala State Values (#21357)
old-commit-hash: 22b632f407
2021-06-21 13:52:46 +02:00
Adeeb Shihadeh
11ca4168a9 fix typo
old-commit-hash: 8ed08af48d
2021-06-16 23:56:35 -07:00
Adeeb Shihadeh
0c79439980 tools readme improvements
old-commit-hash: 527115670f
2021-06-16 22:23:12 -07:00
Dean Lee
1a80cb3bc2 remove directory tools/clib (#21250)
old-commit-hash: 06625f3a0e
2021-06-13 19:27:11 -07:00
ShaneSmiskol
23ea456f4f Fixup joystick (#21129)
* some common changes

* rename to joystick

* add alert and update controlsd to work with joystick

* update joystickd

* Update Joystick readme

* assume we have inputs

* only send gb or steer when engaged_toggle is true

* Update instructions

* fix --ip

* Easier to understand at a glance

* much better

* -a

* receive events and send msg in same loop

* always import

* Update selfdrive/controls/lib/events.py

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

* Update selfdrive/controls/lib/events.py

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

* combine logic and clean up

* use argparse

* outdated, and use normal class

* rm

* bit of a refactor

* refactor part 2 / 3

* much better (3 / 3)

* Simplify

* bump cereal and update readme

* capitalize

* Update tools/joystick/joystickd.py

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

* Update tools/joystick/joystickd.py

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

* make joystick abstraction class clearer

* use interp, clearer without comments

* no need to use apply_deadzone

* more explicit

* define btns and axes once

* split function by use_keyboard again, but simpler

* we can use handle_button as a reset function

* need to flip sign

* remove

* invert axes map for kb, easier to read the button mapping

* apply changes from review

* new lateral log for debug mode

* bump

* add saturated

* static alert

* joystick_mode

* conditionally subscribe

* Update selfdrive/controls/controlsd.py

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

* move params instantiation

* Spoof active and enabled

* Only allow car to engage

* no startup alert if joystick

* Update controlsd.py

* Should be orange not enabled, green enabled

* no more button states

* should work

* blue

* submaster conflates, so only send when we have an update

* final change

* remove msg

* clean up a bit

sort of clean up

clean up a bit

remove msg

* this was right

* Apply suggestions from code review

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

* lowercase

* suggestions from code review

* forgot laptop

* bump to latest

* fixes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
old-commit-hash: ae77f693a2
2021-06-11 14:33:17 -07:00
Adeeb Shihadeh
ee9ac35ca5 fix route_framereader when segments are missing
old-commit-hash: 594877e4a8
2021-06-10 23:12:56 -07:00
Ross Fisher
40be12ab37 Clarify instructions in plotjuggler readme (#21158)
old-commit-hash: 4978a7fae4
2021-06-06 16:16:32 -07:00
siggie0815
35f0bcb35a CARLA: save calibration params as capnp (#21144)
old-commit-hash: c798c5f027
2021-06-04 16:05:05 -07:00
Adeeb Shihadeh
0c1c0ddcb1 unlogger: put YUV vipc send behind flag
old-commit-hash: 4b6ec3bca6
2021-06-03 21:53:16 -07:00
Josh Smith
2cae3a3799 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
old-commit-hash: 77321dbac4
2021-06-03 12:21:04 +02:00
Adeeb Shihadeh
c7c49e8e35 fix up model tests + tools (#21071)
* unlogger: send yuv stream

* fix up model test tools

* fix unlogger

* rename model replay

* bump cereal

* test in actions

* no ci for now
old-commit-hash: cf6d133638
2021-05-28 23:08:08 -07:00
Dean Lee
a436b51e84 move c++ framereader to selfdrive/ui/replay (#21053)
old-commit-hash: bb5bcc7e49
2021-05-27 16:00:11 -07:00
Willem Melching
a7ddd6ecc7 fix route framereader when using signed urls (#21029)
old-commit-hash: 476ee91845
2021-05-26 11:36:53 +02:00
Adeeb Shihadeh
c41e23070b set github username in key setup script
old-commit-hash: 732006b0bc
2021-05-25 15:45:29 -07:00
Dean Lee
7b253433f2 Refactor FrameReader (#21002)
* Refactor FrameReader

* decodeThread

* delete frame

* remove joined

* continue

* less diff

* robust cv wait

* cache fist 15 frames

* notify_all

* rename variables

* need call avformat_find_stream_info before dump_format

* get width&height from codec

* use std::string

* delete in removeSegment

* use std::mutex in lockmgr_cb

* fix wrong min/max

* no get in process

* cleanup

* always notify decodeThread to do prefetch
old-commit-hash: 5540dcae78
2021-05-24 17:01:15 -07:00
Mitchell Goff
7eed124138 Updated RouteFrameReader to work on routes with missing segments (#20971)
old-commit-hash: 0dc27e3d6d
2021-05-23 14:15:48 -07:00
ShaneSmiskol
4748885813 Remove snap installed PlotJuggler (#20989)
* use our compiled plotjuggler

* update readme

* update readme
old-commit-hash: f3d41de9d8
2021-05-21 13:28:06 -07:00
ShaneSmiskol
a14fc7c5bd Support streaming in juggle.py (#20982)
* add --stream to juggle.py

* better

* rm old code

* for loopify

* clean up

* easier to pick out

* start by default

* don't exit

* Update tools/plotjuggler/juggle.py

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

* Revert "start by default"

This reverts commit 6cb481a6fdc2b401693a46be8d17553c1c00cc0f.

* Revert "don't exit"

This reverts commit 861b423eb8e259c8353586f3314ea8bad871f15a.

* rm

* move out of juggle_route

* Update PJ README.md

* Update tools/plotjuggler/README.md

* this is in the readme

* Updates

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63e521935e
2021-05-20 20:19:06 -07:00
Cameron Reikes
5d11f5adc5 sim: get GPS data from CARLA (#20717)
* Send simulated carla GPS to OP

* Use ublox enum from cereal

* Add more fields to carla gnss packet

* use math.degrees

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fc4f27d20a
2021-05-18 19:52:09 -07:00
ShaneSmiskol
0d45e6885a Deprecate brakeLights field (#20954)
* remove all references to CS.brakeLights

* unused red

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 551091bcfa
2021-05-18 17:48:02 -07:00
Willem Melching
bdd5cd2bce fix unlog_segment.py
old-commit-hash: 679919ab1f
2021-05-18 11:14:42 +02:00
Willem Melching
efa94a89ff Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86aefbe766
2021-05-17 14:57:07 +02:00