Commit Graph

241 Commits

Author SHA1 Message Date
Igor Biletskyy f532819faf Revert "boardd: new class USBDevice (#23015)"
This reverts commit 6965aa0b903060ab38aace31c15fefdc7a0429eb.

old-commit-hash: 285addeef26d60fc7d263efae81d07defabb0171
2021-12-16 17:11:45 -08:00
Dean Lee 49c35a70b5 boardd: new class USBDevice (#23015)
* USBDevice

* merge master

* rebase master

* add to fiels_common

* inline functions

* namespace

* init err

* remove nested if

* cleanup

* bump panda for branch

* change includes

* bump panda branch

* change name

* bump master panda

Co-authored-by: Igor Biletskyy <briskspirit@users.noreply.github.com>
Co-authored-by: Igor Biletskyy <bs@privacy.im>
old-commit-hash: 4061f50da3dabff7a16e2a845d66efe00f9d7978
2021-12-16 16:53:48 -08:00
Adeeb Shihadeh 3dc321435e Remove NanoVG (#23147)
old-commit-hash: efa448d829657c3a146134f146c91b8751774d7e
2021-12-06 14:18:00 -08:00
Adeeb Shihadeh dccb8b4010 New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e679d05d9e98e267047c21c0b6b67fe9d61f8ed6
2021-11-30 19:47:33 -08:00
Adeeb Shihadeh 0781870e69 add devel
old-commit-hash: 9a87f684b58e51b2e64575452d068b4f868f026d
2021-11-29 17:50:10 -08:00
Adeeb Shihadeh 4a01386fe6 script to verify release and staging branches are the same
old-commit-hash: 8b2cb7130526baa69508b2355ca1d2240ff738ee
2021-11-29 17:42:55 -08:00
Adeeb Shihadeh 973a48acef remove dead + duplicate python code
old-commit-hash: 08f9316b56ffe2c36a5d9c23d0b4df49903ad52a
2021-11-28 14:02:06 -08:00
Adeeb Shihadeh 94d30c6c5f camerad: remove camera frame stream (#23045)
* camerad: remove camera frame stream

* fix release files
old-commit-hash: 8160cf3c1b2726709db58219c33d1616b4a8acb5
2021-11-27 21:58:21 -08:00
Dean Lee 987f87cc0e loggerd: split loggerd.cc into three files
old-commit-hash: 75dd0d6296753dea9f6817955ef975f8d543fd19
2021-11-23 17:53:49 -08:00
Robbe Derks b66e2a9f7a Tesla longitudinal control (#22561)
* tesla long squashed changes

* fix no resume from stop

* try setting accel limits to 0 to remove jerk with fast switchover

* expand radard lookup tables

* bump merged panda submodule
old-commit-hash: 4960578bdfae11689da81e80973b998b05e6fd96
2021-11-18 13:57:12 +01:00
HaraldSchafer eb40939df1 Cleanup toyota tuning (#22859)
* start cleanup

* start lateral

* finish lateral

* add file

* typo

* add enu

* remove whitespace

* cleanup safetyparam

* typo
old-commit-hash: 06844821c5b605c2018cdda6d7bee5f68b7e1408
2021-11-17 12:06:39 +01:00
Dean Lee c1a3683ccb soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0ed548bda23b9f76458a102bf7ccf5a
2021-11-09 14:18:29 -08:00
Willem Melching c619edc47a add common/markdown.py to release files
old-commit-hash: 09ad6707ef7655d30dd8898847d788385d52ef2d
2021-11-04 16:32:23 +01:00
Willem Melching dc3075790e Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
old-commit-hash: bef686f2752bcad4bb3116c2be63157ee01eab73
2021-11-04 14:32:32 +01:00
Dean Lee af7c9ccf6f replay: build on devices (#22632)
* there is no QThread::create on device

* add files to files_common

* modify SConscript

* no memory_resouce on device

* #define HAS_MEMORY_RESOURCE

* fix hangs on shutdown

* build on device with the --extra flag

* delete later

* setup -> extras

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d70e49dca5687c3a26d4b67a7a3dbf04c224e04f
2021-10-29 12:21:57 +02:00
Dean Lee 6f0377cf1a params: remove params_pxd.pxd (#22723)
old-commit-hash: 92682cb8e0396373c2ee82add96f70eb7d80964b
2021-10-28 19:10:55 +02:00
Willem Melching 67f41f32f1 Sphinx docs generation (#22697)
* add sphinx

* switch theme

* Experiment: sphinx docs generation updated (#22708)

* moved build to root gitignore, added .gitkeep

* Improved makefile doc build process

- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
  override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
  during build process so they can be easily referenced while writing
  docs (see examples in index.md)
- Wrote basic starter index.md file

TODO: Add new dependencies to Pipfile [dev-packages]

* Revert accidental modification to Pipfile

* fix command substitution

* exclude xx

* improve docs

* dont include all docs in release build

* Add dockerfile

* update title

* include normal readme

* build container in CI

* use buildkit

* add login

Co-authored-by: Chad Bailey <chadbailey904@gmail.com>
old-commit-hash: b816b5b6442c21e63a09108c70986eeedb0372b2
2021-10-28 15:14:37 +02:00
Adeeb Shihadeh 8f16462f73 fix dashcam spelling
old-commit-hash: 687925c775c375495f9827946138a724bde00b9d
2021-10-27 17:55:48 -07:00
Adeeb Shihadeh 427d76d6a1 add replay to pc release files
old-commit-hash: cf6c129f80a1608567969c8e7b0a7ec6d334d988
2021-10-27 15:22:26 -07:00
Vehicle Researcher 4f57d2c168 add tools/lib to releas files for tests
old-commit-hash: 90c6182a4b8509e9b91e03bc67193f45cf7ff167
2021-10-27 14:14:43 -07:00
Adeeb Shihadeh 997f3f0212 run onroad tests on release build (#22700)
* check startup aelrt

* release decorator

* run in jenkins

* run onroad tests

* no push

* fix release2 build

* fix path

* no overwrite

* single release build script

* make files_eon non empty

* files

* run in source

* add that for now

* print

* ignore initialzing

* print

* fetch

* run tests last

* check alert text

* revert some stuff

* fixup jenkinsfile

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7feae28705842380ec00a6c691b97feeacd3ff3c
2021-10-26 23:50:05 -07:00
Adeeb Shihadeh 782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae04d3408093381629b9d60dee81da27
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh 26e39eb441 UI: big pairing QR code (#22384)
old-commit-hash: 45409cb4fe485dc12168dc9740eb561ffedebe4c
2021-09-30 14:00:52 -07:00
HaraldSchafer d91e0604e8 Change radar-based FCW to model-based FCW (#22379)
* just use MPC for fcw checking

* thats already bad

* model FCW is always good

* better fcw

* should be good for now

* comment

* linting

* cleaner

* unused
old-commit-hash: a8b4249ebcf21c2868e298ef86ee37ac96d2715e
2021-09-29 11:55:54 -07:00
Adeeb Shihadeh 10f3f7a4af remove qpOASES (#22377)
old-commit-hash: 4394f83601eef50653609b1462906262560598be
2021-09-29 11:07:18 -07:00
HaraldSchafer 2b470f4e38 acados long merged (#22224)
* rebased

* cleaner, seems to drive better?

* more stable

* wrong import

* new way of thinking

* reports look nice

* start move back

* works at leas

* good timestamps

* step by step

* somewhat work

* tests pass

* ALL CARS STOPPED

* should work

* fake a cruise obstacle

* cleaner costs

* pretty good except cruise braking

* works pretty well now!

* cleanup

* add source

* add source

* that is needed for unit tests

* nan recovery

* little cleaner

* stop wasting arrays

* unreasonable without unfair init

* this isnt needed without the exponential

* that works too

* unused

* uses less

* new ref

* long enough

* e2e long api

* DONT PUT IN A VIEW INTO ACADOS

* new ref for outside weights

* remove debug prints
old-commit-hash: fe983a7b8ce7ad63c73663284d8b8e093a280308
2021-09-27 19:48:28 -07:00
Dean Lee b7f3d92c9b camerad: added replay camera (#21241)
* start refactor

* remove camera_frame_stream from files_common

* rename camera_pc to camera_replay

* continue

* loop one segment

* rename cam_frame_id to stream_frame_id

* apply review

* continue

* more

* publish camera state

* cleanup

* cleanup

* better comment

* delete s->pm in cameras_close()

* add function getFrameCount

* refactor loop

* fix typo

* restore freame stream

* disable roadcam

* dd

* move file

* merge master

* fix test case

* add todo

* white space

* remove from release files

* add files back to relase

* move framereader back to ui/replay

* merge master

test_replay
old-commit-hash: 9b302488f98f7fcaf52a943e98de54196375b5b8
2021-09-19 14:43:54 -07:00
HaraldSchafer 3305024cfc remove ACADO (#22247)
* remove acado

* not relevant anymore
old-commit-hash: 42d93e94df410dc38b7f96e8061cff462a97d646
2021-09-15 21:14:11 -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: 6fd980c63e803b433c25e75e423193cef9287f9c
2021-09-15 15:43:01 -07:00
George Hotz 30bd49c3b7 Update Docs (#22229)
* initial move of docs

* more cleanups

* more docs

* simpler

* more docs

* link fix

* typos

* more typos

* more info

* minor updates
old-commit-hash: 105be028bd220dc4fb33772ccc49aaf1b4f2626f
2021-09-14 15:39:31 -07:00
Willem Melching a8ce1288fd Hyundai longitudinal prerequisites (#22121)
* panda

* bring over changes

* dont check car model

* remove comment

* fix typo

* more stuff gated behind long

* not

* not used

* gate that too

* try honda tuning

* clip accel values

* fix up merge

* fix stopping

* add retry logic around knockout

* increase timeout

* keep flipping lead bit

* true for now

* less tuning

* update comment

* 0.1 s is fine now

* merge honda and hyundai knockout

* more lead fields

* another obj bit

* increase timeout

* fix stopping flag

* only lag compensate for braking

* no lead

* less tuning

* only do knockout if not readonly

* try controlling using jerk

* tuning

* try higher stopping rate

* set stopping flag at higher speed

* clip upper jerk when stopping

* remove comments

* tester present 1hz

* use positive start accel

* 1.0 to maybe improve low speed stuff

* no point going over 0

* bump panda

* bump panda

* revert that change

* update ref
old-commit-hash: c4bac6bd68ce2a91beb15bb4f4472d76525288e0
2021-09-13 22:03:08 -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: 7081ab4fb7473a5be424db4b63e6bdaacf62157f
2021-09-13 19:06:54 -07:00
Adeeb Shihadeh 947083be0b add update shim to release files
old-commit-hash: 9c5e8a2d0499389e0b7ae3d4edd85478a44a9a72
2021-09-10 17:43:28 -07:00
Adeeb Shihadeh 9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e9dbc29dcf5ea02bb257a8f576a0556
2021-09-10 17:03:54 -07:00
Dean Lee f4d8621be1 Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a034926264cd1025c69d6ceb3fe444965f960b75
2021-09-08 13:13:27 -07:00
Adeeb Shihadeh e476cc14dc no supercombo dlc in release3
old-commit-hash: 132d94371fa917f379e15602aad028ffbebcc39d
2021-09-07 17:59:03 -07:00
robbederks 22fe4c0a12 Tesla radar interface (#21932)
* tesla radar interface

* add  tesla radar dbc to release

* rerun jenkins

* forgot to clear the message set

* trigger message

* raw data points

* cleanup

* rerun jenkins
old-commit-hash: 41934c9a9b5615d8dff6f061a1ca46455839f5e1
2021-08-31 07:30:51 -07:00
Adeeb Shihadeh faee789b90 Update Honda HRV DBC (#22086)
* update honda hrv dbc

* fix release files
old-commit-hash: b4e9ab9343ff245aa3bbb2b05048092349fc0849
2021-08-30 22:14:35 -07:00
Adeeb Shihadeh 67a7abb492 android health daemon (#21965)
* androidd

* three strikes

* better logging

* persistent

* add to release files

* cleanup

* no cpu usage

* colon

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c8ca56dddd0ccf06bc85ed5e67b1b36f39006105
2021-08-19 16:00:05 -07:00
Dean Lee ee8b53a7e8 proclogd: reduce the size of the procLog message by nearly half (#21800)
* cp msg to remove the space

* no orphans

* cleanup

* parse using istringstream

* add test

* split files

* cleanup

* add parser.cc to files_common

* add test for build message

* use > 0

* cleanup

* test proc/self/stat

* more test

* dd

* fix bug

* update test

* refactor pidStat

* cleanup

* test exe

* check procs size in message

* rename pidStat->ProcStat

* don't use util::format_string

* robust pids()

* catch conversion exception

* fix softirq

* udpate test

* use istringstream

* use REQUIRE_THAT&cleanup

* reserve vector of procStats

* use istream to parse cmdline

* cleanup
old-commit-hash: d0fa98931b22d60e0e70a54d683905d8b34ffb10
2021-08-05 11:27:02 +02:00
Igor Biletskyy 19a853d532 fix files_common (#21849)
old-commit-hash: 02beaf2e071da654c21708e60f4743ce86f8f4ef
2021-08-03 19:57:23 -07:00
Adeeb Shihadeh 8172eb9e7f embed continue scripts in installer (#21846)
* embed continue scripts in installer

* cleanup
old-commit-hash: 31a4b55218b3e28b155bd34c3cca589a65f65ad7
2021-08-03 17:32:02 -07:00
Adeeb Shihadeh 02dc94b057 fix r3 version
old-commit-hash: 390bc3ca673c64d7f10c6f06297d4fb2bfc99326
2021-07-30 17:53:54 -07:00
Adeeb Shihadeh f4708c153e agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 14d26d6d891865ca14a5242edce4b14f0912854e
2021-07-29 15:57:58 -07:00
Willem Melching 2433383e1d Add swaglog to cereal/VisionIPC (#21758)
* add swaglog to VisionIPC

* add both flags

* add comment

* add cereal/logger to release

* bump cereal

* bump cereal

* link against common

* bump cereal
old-commit-hash: b69c3047482d970b8efc555251dbbba993d1284c
2021-07-29 13:13:47 +02:00
Adeeb Shihadeh 799931cf21 build release panda fw
old-commit-hash: ab63d65ae5c4bd3b8a6f128bb44d9f694c65e537
2021-07-28 22:27:16 -07:00
Adeeb Shihadeh baec214e45 build release3 in CI (#21772)
* ci pushes this now

* fix path

* cd

* push
old-commit-hash: 9ad935644b5116dd0d9821cc47abcaf19de393d7
2021-07-28 22:19:30 -07:00
Adeeb Shihadeh 4c1f19808d include whole release folder
old-commit-hash: 38499219f2181de1be82f7135fc911fadaa71b14
2021-07-28 19:38:00 -07:00
Adeeb Shihadeh 28ddda3011 remove nav sconscript hack (#21768)
* remove nav sconscript hack

* pc files
old-commit-hash: 7a5f30f16bb25d8e297a38c8489d76909d53a115
2021-07-28 17:44:01 -07:00
Adeeb Shihadeh 4a0f458616 all the files
old-commit-hash: bbb6b267dee6eb0289b45e02fe6563c929fe3d9e
2021-07-26 16:52:44 -07:00