Commit Graph

313 Commits

Author SHA1 Message Date
Adeeb Shihadeh
a20ebd16a2 faster connect 2021-09-22 12:31:48 -07:00
Alfonso Hernandez
703d0cb832 Fix throttle scaling in simulator to match gas 1.0 to NIDEC_ACCEL_MAX in Honda CarControllerParams (#22310) 2021-09-22 09:38:38 -07:00
Willem Melching
1e494a5224 unlogger.py: fix YUV replay (#22299) 2021-09-22 09:31:46 -07:00
sshane
535af87650 fix small typo in replay docs (#22305) 2021-09-21 18:55:46 -07:00
Adeeb Shihadeh
07d23a1db9 fix up replay docs 2021-09-16 17:01:45 -07:00
Willem Melching
6fd980c63e 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>
2021-09-15 15:43:01 -07:00
George Hotz
3a6c8d4678 Fix test relying on SAFETY.md being in the root 2021-09-14 16:02:36 -07:00
HaraldSchafer
7081ab4fb7 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>
2021-09-13 19:06:54 -07:00
HaraldSchafer
74b6c87254 cleanup old nidec accel override logic (#22181)
* cleanup old nidec accel override logic

* add ref without deprecated fields

* no more override
2021-09-10 10:34:18 -07:00
HaraldSchafer
1ac89f14aa 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>
2021-08-30 09:32: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
7da5896af9 add login info to serial readme for c3 (#22016)
* update comma serial README

* Update README.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-23 11:32:43 -07:00
Adeeb Shihadeh
4fd3ca5eac fix typo 2021-08-18 15:10:12 -07:00
Adeeb Shihadeh
2949946337 add comma serial to tools 2021-08-18 15:00:51 -07:00
Comma Device
6a5940c562 can replay: flashing lock 2021-08-18 14:17:02 -07:00
Adeeb Shihadeh
fd81a5556b fix up can replay script 2021-08-18 14:06:06 -07:00
qadmus
f52dcd468c 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>
2021-08-16 22:23:42 -07:00
qadmus
b9601dfe9d plotjuggler takes cabana shared links (#21899)
* plotjuggler cabana shared links

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

* revert

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

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
grekiki
6048988c13 Tools: Plotjuggler reduce RAM usage (#21781) 2021-07-30 09:04:31 +02:00
Adeeb Shihadeh
deb170e0b2 my.comma.ai -> connect.comma.ai (#21702) 2021-07-26 13:53:49 -07:00
Greg Hogan
8f1806602c FrameIterator that uses 1+ GB less RAM (#21687) 2021-07-22 12:08:56 -07:00
Willem Melching
a85b5557ed fix ui.py after longitudinal refactor 2021-07-13 12:01:36 +02:00
grekiki
b3a792305e plotjuggler: add segment_count arg (#21474) 2021-07-06 13:57:03 -07:00
HaraldSchafer
6838e1c82c 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>
2021-06-30 14:19:39 -07:00
orphen
325cabd4da fix: sim: gracefully shutdown the bridge (#21413) 2021-06-29 13:45:34 -07:00
HaraldSchafer
234971203b 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>
2021-06-24 21:03:18 -07:00
orphen
6d3c587564 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>
2021-06-23 13:31:28 -07:00
Alfonso Hernandez
22b632f407 Simulator: Complete GPS message from Carala State Values (#21357) 2021-06-21 13:52:46 +02:00
Adeeb Shihadeh
8ed08af48d fix typo 2021-06-16 23:56:35 -07:00
Adeeb Shihadeh
527115670f tools readme improvements 2021-06-16 22:23:12 -07:00
Dean Lee
06625f3a0e remove directory tools/clib (#21250) 2021-06-13 19:27:11 -07:00
ShaneSmiskol
ae77f693a2 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>
2021-06-11 14:33:17 -07:00
Adeeb Shihadeh
594877e4a8 fix route_framereader when segments are missing 2021-06-10 23:12:56 -07:00
Ross Fisher
4978a7fae4 Clarify instructions in plotjuggler readme (#21158) 2021-06-06 16:16:32 -07:00
siggie0815
c798c5f027 CARLA: save calibration params as capnp (#21144) 2021-06-04 16:05:05 -07:00
Adeeb Shihadeh
4b6ec3bca6 unlogger: put YUV vipc send behind flag 2021-06-03 21:53:16 -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
cf6d133638 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
2021-05-28 23:08:08 -07:00
Dean Lee
bb5bcc7e49 move c++ framereader to selfdrive/ui/replay (#21053) 2021-05-27 16:00:11 -07:00
Willem Melching
476ee91845 fix route framereader when using signed urls (#21029) 2021-05-26 11:36:53 +02:00
Adeeb Shihadeh
732006b0bc set github username in key setup script 2021-05-25 15:45:29 -07:00
Dean Lee
5540dcae78 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
2021-05-24 17:01:15 -07:00
Mitchell Goff
0dc27e3d6d Updated RouteFrameReader to work on routes with missing segments (#20971) 2021-05-23 14:15:48 -07:00
ShaneSmiskol
f3d41de9d8 Remove snap installed PlotJuggler (#20989)
* use our compiled plotjuggler

* update readme

* update readme
2021-05-21 13:28:06 -07:00
ShaneSmiskol
63e521935e 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>
2021-05-20 20:19:06 -07:00